:root {
  --bg-page: #ededef;
  --bg-panel: #ececef;
  --bg-card: #f8f8fb;
  --bg-right: #f2f3f6;
  --bg-dark: #15161a;
  --bg-soft-dark: #2a2c31;
  --ink-main: #3f4b69;
  --ink-muted: #6f7687;
  --ink-light: #e9edf7;
  --accent: #f2a233;
  --accent-red: #d9481a;
  --border: #d8dce4;
  --shadow: 0 14px 30px rgba(19, 23, 35, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-page);
  color: var(--ink-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto;
}

.topbar {
  background:
    linear-gradient(rgba(12, 12, 14, 0.78), rgba(12, 12, 14, 0.78)),
    center/cover no-repeat url("./images/generated-1773128602924.png");
  color: #fff;
}

.topbar-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.brand-text {
  display: inline-block;
}

.topnav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
}

.topnav a,
.auth-links a {
  opacity: 0.94;
}

.topnav a:hover,
.auth-links a:hover {
  color: var(--accent);
}

.auth-links {
  display: flex;
  gap: 8px;
  color: #d5d8df;
  font-size: 11px;
}

.hero {
  position: relative;
  height: clamp(420px, 36vw, 640px);
  background: center top/cover no-repeat url("./images/generated-1773085096222.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(241, 242, 244, 0.18) 85%, rgba(241, 242, 244, 0.82));
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(77, 82, 91, 0.92);
  color: #d5c09c;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.hero-play:hover,
.hero-play:focus-visible {
  background: rgba(77, 82, 91, 1);
  box-shadow: 0 10px 24px rgba(18, 20, 28, 0.28);
}

.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  color: #6e4a3a;
  font-size: 18px;
  font-weight: 800;
  z-index: 2;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(6px);
}

.video-modal-dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  margin: 6vh auto 0;
  padding: 12px;
  background: #101217;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.video-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #d8dce7;
  font-size: 28px;
  cursor: pointer;
}

.video-modal-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
}

.video-frame {
  position: relative;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.portal-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 140px;
  gap: 12px;
  margin-top: clamp(-150px, -8vw, -90px);
  position: relative;
  z-index: 3;
  align-items: start;
}

.left-rail,
.center-column,
.right-rail {
  min-width: 0;
}

.left-rail {
  background: #dce0e5;
  padding: 0 0 12px;
}

.download-card,
.mini-link,
.image-button {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.download-card,
.mini-link {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.quick-link-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
}

.download-card {
  height: 88px;
  padding: 0 16px;
}

.download-card span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.2;
}

.mini-link {
  height: 36px;
  margin-top: 4px;
  background: center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.download-card:hover,
.download-card:focus-visible,
.mini-link:hover,
.mini-link:focus-visible {
  transform: scale(1.035);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.showcase-card {
  position: relative;
  height: 158px;
  margin-top: 4px;
  background: center/cover no-repeat;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover,
.showcase-card:focus-visible {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7b818e;
  font-size: 20px;
  cursor: pointer;
}

.showcase-arrow-left {
  left: 4px;
}

.showcase-arrow-right {
  right: 4px;
}

.image-button {
  height: 66px;
  margin-top: 6px;
  background: center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.image-button:hover,
.image-button:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.24);
}

.ally-box {
  margin-top: 6px;
  background: var(--bg-soft-dark);
  padding: 10px;
  color: #c6cad3;
}

.ally-rule {
  display: block;
  width: 100%;
  background: #343740;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.ally-rule:hover,
.ally-rule:focus-visible,
.ally-rule:active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
  transform: translateY(-1px);
}

.ally-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.ally-rule-middle {
  margin-top: 10px;
}

.ally-icon {
  height: 44px;
  border-radius: 4px;
  background: #343740;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #e8edf8;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.ally-icon:hover,
.ally-icon:active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
  transform: translateY(-1px);
}


.ally-desc {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10px;
}

.center-column {
  background: var(--bg-card);
  padding: 0;
}

.news-card {
  background: #f8f8fb;
  border: 1px solid var(--border);
  margin: 0 10px 10px;
}

.news-head {
  padding: 10px 12px 0;
}

.news-head h2 {
  margin: 0;
  font-size: 13px;
  color: #4f5a72;
}

.news-head-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: #4f5a72;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.news-head-trigger:hover,
.news-head-trigger:focus-visible {
  color: var(--accent);
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
  padding: 8px 12px 12px;
}

.news-items {
  display: grid;
  gap: 4px;
}

.news-items a,
.news-dates span {
  font-size: 11px;
  color: #5d657a;
}

.news-items a:hover,
.news-items a:focus-visible {
  color: var(--accent);
}

.news-dates {
  display: grid;
  gap: 4px;
  text-align: right;
}

.news-tabs-panel {
  border: 1px solid var(--border);
  background: #fff;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.news-tab {
  border: 0;
  background: transparent;
  color: #6c7283;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 160ms ease, color 160ms ease;
}

.news-tab:hover,
.news-tab:focus-visible {
  background: #e9edf3;
  color: #445170;
}

.news-tab.is-active {
  background: #dde2ea;
  color: #3f4b69;
}

.news-detail-panel {
  margin: 0 10px 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  border: 1px solid var(--border);
  background: #f8f8fb;
}

.news-detail-main,
.news-detail-side {
  min-width: 0;
}

.news-detail-back {
  border: 0;
  padding: 0;
  background: transparent;
  color: #6b7285;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.news-detail-back:hover,
.news-detail-back:focus-visible {
  color: var(--accent);
}

.news-detail-kicker {
  margin: 12px 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-detail-title {
  margin: 0;
  color: #33415f;
  font-size: 24px;
  line-height: 1.2;
}

.news-detail-date {
  margin: 8px 0 0;
  color: #7a8092;
  font-size: 12px;
  font-weight: 700;
}

.news-detail-body {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  color: #4f5870;
  font-size: 14px;
  line-height: 1.75;
}

.news-detail-body p {
  margin: 0;
}

.news-detail-side {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.news-detail-side-title {
  margin: 0 0 12px;
  color: #33415f;
  font-size: 13px;
  font-weight: 800;
}

.news-detail-side-list {
  display: grid;
  gap: 8px;
}

.news-detail-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #4f5870;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.news-detail-link:hover,
.news-detail-link:focus-visible,
.news-detail-link.is-active {
  color: var(--accent);
  border-color: rgba(242, 162, 51, 0.4);
  box-shadow: 0 10px 20px rgba(17, 20, 31, 0.08);
  transform: translateY(-1px);
}

.news-detail-link-title {
  font-size: 12px;
  font-weight: 700;
}

.news-detail-link-date {
  font-size: 10px;
  color: #8a91a2;
}

.banner-block {
  position: relative;
  padding: 10px;
}

.banner-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #7a8092;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.banner-dot:hover,
.banner-dot:focus-visible,
.banner-dot.is-active {
  background: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.feature-story {
  padding: 0 10px 10px;
}

.feature-story-visual {
  position: relative;
}

.story-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.story-filters button {
  border: 0;
  background: #8a8f9c;
  color: #fff;
  padding: 6px 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.story-filters button:hover,
.story-filters button:focus-visible,
.story-filters button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
}

.feature-story img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.feature-story-view {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 132px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 21, 29, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(14, 19, 28, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.feature-story-view:hover,
.feature-story-view:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(242, 162, 51, 0.92);
  box-shadow: 0 18px 32px rgba(242, 162, 51, 0.24);
}

.guide-grid,
.updates-grid {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.guide-grid {
  grid-template-columns: repeat(4, 1fr);
}

.updates-grid {
  grid-template-columns: repeat(3, 1fr);
}

.guide-card,
.update-card {
  background: #fff;
  display: block;
  overflow: hidden;
}

.guide-label,
.update-label {
  display: block;
  background: #8a8f9c;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.guide-card,
.update-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover,
.guide-card:focus-visible,
.guide-card:focus-within,
.update-card:hover,
.update-card:focus-visible,
.update-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 20, 31, 0.12);
}

.guide-card:hover .guide-label,
.guide-card:active .guide-label,
.guide-card:focus-within .guide-label,
.update-card:hover .update-label,
.update-card:active .update-label,
.update-card:focus-within .update-label {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(242, 162, 51, 0.28);
}

.guide-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease, filter 220ms ease;
}

.update-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease, filter 220ms ease;
}

.guide-card:hover img,
.guide-card:focus-visible img,
.guide-card:focus-within img,
.update-card:hover img,
.update-card:focus-visible img,
.update-card:focus-within img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.right-rail {
  background: var(--bg-right);
  padding: 0;
  display: grid;
  gap: 8px;
}

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 8px;
}

.icon-box {
  padding: 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.icon-cell {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #eceef3;
  color: #6b7085;
  text-align: center;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-cell:hover,
.icon-cell:focus-visible {
  color: var(--accent);
  background: #ffffff;
  transform: translateY(-1px);
}

.icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
}

.icon-facebook {
  font-size: 30px;
  font-weight: 800;
}

.icon-youtube {
  font-size: 28px;
}

.icon-label {
  font-size: 13px;
  font-weight: 500;
}

.info-box h3 {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 10px;
  padding: 0 10px;
  background: #8a8f9c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.info-box ul {
  list-style: square;
  margin: 0;
  padding-left: 16px;
  color: #7a8092;
}

.info-box li {
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1.35;
  transition: color 160ms ease;
  cursor: pointer;
}

.info-box li a {
  display: block;
}

.info-box li:hover,
.info-box li:focus-within,
.info-box li:hover::marker {
  color: var(--accent);
}

.tall-box li {
  margin-bottom: 7px;
}

.site-footer {
  position: relative;
  min-height: 160px;
  margin-top: 22px;
  background: center/cover no-repeat url("./images/generated-1773377549230.png");
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 21, 26, 0.28), rgba(20, 21, 26, 0.75));
}

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 0 26px;
}

.footer-brand {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.footer-links {
  margin: 10px 0 0;
  color: #e0e2e8;
  font-size: 11px;
}

.footer-copy {
  margin: 10px 0 0;
  color: #838894;
  font-size: 10px;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .topnav {
    order: 3;
    flex-wrap: wrap;
  }

  .portal-layout {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .left-rail,
  .right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .center-column {
    order: -1;
  }

  .showcase-card,
  .ally-box {
    grid-column: span 2;
  }

  .story-filters {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 16px, 100%);
  }

  .hero {
    height: 280px;
  }

  .hero-caption {
    width: calc(100% - 20px);
    font-size: 14px;
    text-align: center;
  }

  .left-rail,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .ally-box {
    grid-column: auto;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-dates {
    text-align: left;
    grid-auto-flow: column;
    overflow: auto;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-panel {
    grid-template-columns: 1fr;
  }

  .news-detail-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
}
