/* ===================== DESIGN TOKENS — ChinChin Arcade ===================== */
:root {
  /* --- Typography --- */
  --f-display: "Fredoka One", "Lilita One", cursive;
  --f-body: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* --- Layout --- */
  --w-max: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* --- Backgrounds & Surfaces --- */
  --bg: #0E3A8C;
  --bg-top: #2B89DF;
  --bg-mid: #1558C0;
  --bg-deep: #082159;
  --bg-panel: #143A78;
  --bg-panel-2: #1D54A8;
  --bg-purple: #8A2BE2;
  --bg-purple-deep: #4A148C;

  /* --- Accent & CTA --- */
  --accent: #FFD23F;
  --accent-deep: #F4A72C;
  --accent-glow: rgba(255, 210, 63, 0.30);
  --confirm: #5BC947;
  --confirm-deep: #2E8B2E;
  --destructive: #E63946;
  --destructive-deep: #B11C2B;
  --boost: #FF7A1A;

  /* --- Currency --- */
  --coin-gold: #FFC72C;
  --coin-highlight: #FFE680;
  --gem-cyan: #4DD2F0;
  --gem-highlight: #C8F1FB;
  --heart-red: #FF3B4A;
  --star-green: #49C96A;

  /* --- Text --- */
  --fg: #FFFFFF;
  --fg-muted: #B8D4F0;
  --fg-dim: #7AA3D4;
  --text-stroke: #162447;
  --text-shadow: rgba(22, 36, 71, 0.4);

  /* --- Lines & Borders --- */
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.20);
  --navy-outline: #162447;
  --outline-w: 1px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  /* --- Misc --- */
  --btn-inv-bg: #FFD23F;
  --btn-inv-fg: #162447;
  --strike-line: rgba(255, 255, 255, 0.25);
  --hero-glow: 0.45;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--bg-top), var(--bg-mid) 40%, var(--bg-deep) 80%);
  z-index: -3;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% 0;
  /* Extra height to cover movement */
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: -2;
  pointer-events: none;
  animation: siteBgDriftDown 15s ease-in-out infinite alternate;
  will-change: transform;
}



@keyframes siteBgDriftDown {
  0% {
    transform: translateY(-5%);
  }

  100% {
    transform: translateY(5%);
  }
}

::selection {
  background: var(--accent);
  color: var(--text-stroke);
}

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

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

/* ===================== TYPO UTILS ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--navy-outline);
  border-radius: 999px;
  background: var(--bg-panel);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

em {
  font-style: normal;
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

.mono {
  font-family: var(--f-mono);
  letter-spacing: .04em;
}

/* ===================== BUTTONS — Arcade Style ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 20px;
  border: var(--outline-w) solid var(--navy-outline);
  transition: all .2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  text-shadow: 1px 2px 0 var(--text-shadow);
  overflow: hidden;
  line-height: 1;
  isolation: isolate;
  transform: translateZ(0);
}

.nav-cta .btn {
  padding-top: 10px;
  padding-bottom: 10px;
}

.btn-primary::after,
.btn-ghost::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 5s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes btnShine {

  0%,
  70% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.btn-lg {
  padding: 16px 28px;
  font-size: 18px;
}

.btn-primary {
  background: linear-gradient(180deg, #FFD23F 0%, #F4A72C 100%);
  color: var(--btn-inv-fg);
  border-color: var(--navy-outline);
  box-shadow: 0 3px 0 #8B6A1A, 0 6px 16px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 2px 4px auto 4px;
  height: 45%;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 5px 0 #8B6A1A, 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:active {
  transform: scale(0.97) translateY(3px);
  box-shadow: 0 2px 0 #8B6A1A, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  background: linear-gradient(180deg, var(--confirm) 0%, var(--confirm-deep) 100%);
  color: #FFFFFF;
  border-color: var(--navy-outline);
  box-shadow: 0 3px 0 #1A5E16, 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 2px 4px auto 4px;
  height: 45%;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.btn-ghost:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 5px 0 #1A5E16, 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-ghost:active {
  transform: scale(0.97) translateY(3px);
  box-shadow: 0 2px 0 #1A5E16, 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(14, 58, 140, 0.45);
  border-bottom: 1px solid var(--navy-outline);
  transition: background .3s var(--ease);
}

.nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  color: #FFFFFF;
  text-shadow: 2px 2px 0 var(--text-shadow);
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--navy-outline);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(22, 36, 71, 0.5);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.brand-sub {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: .08em;
  margin-left: 2px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-logo-img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-cta {
  display: none !important;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  z-index: 101;
  position: relative;
}

.nav-burger span {
  display: block;
  height: 3px;
  background: var(--fg);
  border-radius: 99px;
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-burger span:nth-child(1) {
  width: 26px;
}

.nav-burger span:nth-child(2) {
  width: 16px;
}

.nav.open .nav-burger span:nth-child(1) {
  width: 26px;
  transform: translateY(4.5px) rotate(45deg);
}

.nav.open .nav-burger span:nth-child(2) {
  width: 26px;
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-ticker {
  border-top: 1px solid var(--navy-outline);
  overflow: hidden;
  position: relative;
  background: rgba(28, 78, 158, 0.6);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .12em;
  padding: 7px 0;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ===================== SECTION SHELL ===================== */
.section {
  position: relative;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-number {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gem-cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 20px;
  text-wrap: balance;
  text-shadow: 3px 4px 0 var(--text-shadow);
}

.section-title em {
  color: var(--accent);
  font-style: normal;
}

.section-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.reveal-line>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
  will-change: transform;
}

.hero-title.is-in .reveal-line>span {
  transform: translateY(0);
}

.hero-title.is-in .reveal-line:nth-child(1)>span {
  transition-delay: .02s;
}

.hero-title.is-in .reveal-line:nth-child(2)>span {
  transition-delay: .12s;
}

.hero-title.is-in .reveal-line:nth-child(3)>span {
  transition-delay: .22s;
}

.hero-title.is-in .reveal-line:nth-child(4)>span {
  transition-delay: .34s;
}

.section-title .line,
.hub-title .line,
.join-title .line {
  display: block;
  overflow: hidden;
}

.section-title .line>span,
.hub-title .line>span,
.join-title .line>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  padding-bottom: 0.1em;
}

.section-title.is-in .line>span,
.hub-title.is-in .line>span,
.join-title.is-in .line>span {
  transform: translateY(0);
}

.section-title.is-in .line:nth-child(2)>span,
.hub-title.is-in .line:nth-child(2)>span,
.join-title.is-in .line:nth-child(2)>span {
  transition-delay: .1s;
}

.section-title.is-in .line:nth-child(3)>span,
.hub-title.is-in .line:nth-child(3)>span,
.join-title.is-in .line:nth-child(3)>span {
  transition-delay: .2s;
}

.accent-line span {
  color: var(--accent);
}

.muted-line span {
  color: var(--fg-muted);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(120px, 14vh, 180px) var(--pad-x) clamp(80px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--w-max);
  margin: 0 auto;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Radial ray-burst background */
.hero-rays {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(63, 169, 245, 0.06) 10deg,
      transparent 20deg,
      rgba(63, 169, 245, 0.04) 30deg,
      transparent 40deg);
  animation: raysSpin 80s linear infinite;
}

@keyframes raysSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Mascot pattern removed as requested */
.hero-pattern {
  display: none;
}

/* Floating game decorations */
.hero-deco {
  position: absolute;
  font-size: 32px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
  z-index: 1;
}

.deco-1 {
  top: 18%;
  right: 12%;
  font-size: 42px;
  animation: decoFloat 4s ease-in-out infinite;
}

.deco-2 {
  top: 35%;
  right: 6%;
  font-size: 28px;
  animation: decoFloat 5s ease-in-out 0.5s infinite;
}

.deco-3 {
  top: 60%;
  right: 15%;
  font-size: 36px;
  animation: decoFloat 4.5s ease-in-out 1s infinite;
}

.deco-4 {
  top: 25%;
  right: 22%;
  font-size: 24px;
  animation: decoFloat 6s ease-in-out 1.5s infinite;
  opacity: 0.6;
}

.deco-5 {
  top: 50%;
  right: 25%;
  font-size: 20px;
  animation: decoFloat 5.5s ease-in-out 2s infinite;
  opacity: 0.5;
}

@keyframes decoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 600px at 50% 45%, rgba(255, 210, 63, 0.15), transparent 55%),
    radial-gradient(600px 400px at 30% 60%, rgba(77, 210, 240, 0.08), transparent 50%);
  opacity: var(--hero-glow);
  animation: heroBreathe 6s ease-in-out infinite alternate;
}

@keyframes heroBreathe {
  0% {
    opacity: 0.3;
    transform: scale(0.98);
  }

  100% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(27px, 4.5vw, 65px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 18px 0 24px;
  text-wrap: balance;
  text-shadow: 4px 6px 0 var(--text-shadow);
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 20px);
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
}

.hero-meta>div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--navy-outline);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all .2s var(--ease);
}

.hero-meta>div:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
  border-color: var(--accent);
}

.hero-meta>div:first-child {
  /* no special override needed */
}

.hero-meta>div:last-child {
  /* Removed border-right: none to fix visual defect */
}

.meta-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--fg-dim);
}

.meta-v {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}

.meta-s {
  font-size: 13px;
  color: var(--fg-muted);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--fg-muted);
  text-transform: uppercase;
  z-index: 2;
}

.hint-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--fg-muted), transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: .25;
    transform: scaleY(.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===================== MARQUEE ===================== */
.marquee {
  border-top: 1px solid var(--navy-outline);
  border-bottom: 1px solid var(--navy-outline);
  overflow: hidden;
  background: var(--bg-panel);
}

.marquee-track {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 22px 0;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: 0;
  color: var(--fg);
  animation: marquee 38s linear infinite;
  text-shadow: 2px 3px 0 var(--text-shadow);
}

.marquee-track .dot {
  color: var(--accent);
  font-size: 14px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ===================== PROBLEM ===================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

.problem-card {
  background: var(--bg-panel);
  border: var(--outline-w) solid var(--navy-outline);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--gem-cyan);
}

.card-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.card-headline {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  color: var(--fg-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-list li {
  color: var(--fg-muted);
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--fg-dim);
}

.card-foot {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fg-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.problem-verdict {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.03), transparent);
  justify-content: center;
  gap: 14px;
}

.verdict-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.verdict-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.problem-data {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: var(--outline-w) solid var(--navy-outline);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.data-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.data-k {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
}

.data-k.accent {
  color: var(--accent);
}

.data-v {
  color: var(--fg-muted);
  font-size: 13px;
}

.data-sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

/* ===================== MODEL ===================== */
.model-matrix {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  overflow: hidden;
  margin-bottom: 56px;
}

.matrix-head,
.matrix-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  align-items: center;
  padding: 18px 28px;
}

.matrix-head {
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.matrix-col.accent {
  color: var(--accent);
}

.matrix-row {
  border-top: 1px solid var(--line);
}

.matrix-row:nth-child(2) {
  border-top: none;
}

.row-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.row-a {
  color: var(--fg-muted);
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-color: var(--strike-line);
}

.row-b {
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--f-display);
}

.model-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.principle {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: var(--bg-panel);
  transition: border-color .4s var(--ease);
}

.principle:hover {
  border-color: var(--line-2);
}

.p-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 18px;
}

.p-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.p-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ===================== HUB ===================== */
.hub {
  position: relative;
  padding-top: clamp(120px, 16vw, 200px);
  padding-bottom: clamp(120px, 16vw, 200px);
}

.hub-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hub-grid {
  position: absolute;
  inset: -20% -10% -30% -10%;
  background-image: radial-gradient(circle at 20% 30%, var(--accent-glow), transparent 40%), linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  opacity: .5;
}

.hub-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  max-width: 120vw;
  max-height: 120vw;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.r1 {
  width: 28%;
  height: 28%;
  animation: spinRight 40s linear infinite;
}

.r2 {
  width: 52%;
  height: 52%;
  animation: spinLeft 60s linear infinite;
}

.r3 {
  width: 78%;
  height: 78%;
  animation: spinRight 80s linear infinite;
}

.r4 {
  width: 100%;
  height: 100%;
  opacity: .4;
  animation: spinLeft 100s linear infinite;
}

@keyframes spinRight {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinLeft {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.hub-head {
  position: relative;
  z-index: 2;
}

.hub-title {
  font-size: clamp(40px, 6vw, 84px) !important;
  line-height: 1.15;
  letter-spacing: 0;
  text-shadow: 4px 6px 0 var(--text-shadow);
}

.hub-diagram {
  position: relative;
  margin: 64px auto;
  aspect-ratio: 8/5;
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%), var(--bg-panel);
  overflow: hidden;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--line-2);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -100;
  }
}

.hub-center,
.hub-satellite {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 140px;
}

.hub-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.02), 0 0 40px var(--accent-glow);
  padding: 18px 24px;
  min-width: 180px;
  align-items: center;
}

.node-label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.02em;
}

.node-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.sat-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
}

.sat-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -.01em;
}

.sat-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.sat-1 {
  left: 6%;
  top: 12%;
}

.sat-2 {
  right: 6%;
  top: 12%;
}

.sat-3 {
  left: 6%;
  bottom: 12%;
}

.sat-4 {
  right: 6%;
  bottom: 12%;
}

.hub-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.pillar {
  border: var(--outline-w) solid var(--navy-outline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--bg-panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.pillar-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-t {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

.pillar-b {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ===================== ROLL RAIDER ===================== */
.rollraider {
  background: linear-gradient(180deg, transparent 0%, rgba(138, 43, 226, 0.15) 30%, rgba(74, 20, 140, 0.2) 70%, transparent 100%);
}

.rr-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: 64px;
}

.rr-left .section-title {
  margin-bottom: 24px;
}

.rr-left .section-title em {
  display: block;
  margin-top: 6px;
}

.rr-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.rr-specs>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--navy-outline);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.spec-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.spec-v {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--fg);
}

.spec-v.accent {
  color: var(--accent);
}

.rr-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rr-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Showcase fan-out layout */
.rr-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
}

.showcase-bg-screen {
  position: absolute;
  width: 200px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--navy-outline);
  opacity: 0.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.showcase-bg-screen:first-child {
  left: 0;
  transform: rotate(-8deg) scale(0.85);
}

.showcase-bg-screen.showcase-right {
  right: 0;
  transform: rotate(8deg) scale(0.85);
}

.showcase-bg-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-frame {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a1d23, #0a0c10);
  padding: 10px;
  border: var(--outline-w) solid var(--navy-outline);
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.3), 0 0 80px rgba(63, 169, 245, 0.15), 0 60px 80px -40px rgba(0, 0, 0, .7);
  z-index: 2;
  animation: floatDevice 6s ease-in-out infinite;
}

@keyframes floatDevice {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.5), 0 0 100px rgba(63, 169, 245, 0.3), 0 72px 90px -40px rgba(0, 0, 0, .8);
  }
}

.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #050608;
  overflow: hidden;
  position: relative;
}

.screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rr-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 18px 24px;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
}

.hud-timer {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -.02em;
}

.hud-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hud-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(closest-side, #000, transparent 85%);
  opacity: .6;
}

.hud-die {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, #c0c6cd);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 14px;
  gap: 4px;
  animation: rollFloat 4s ease-in-out infinite;
}

@keyframes rollFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.hud-die .pip {
  background: #0a0c10;
  border-radius: 50%;
}

.hud-die[data-face="5"] .pip:nth-child(1) {
  grid-area: 1/1;
}

.hud-die[data-face="5"] .pip:nth-child(2) {
  grid-area: 1/3;
}

.hud-die[data-face="5"] .pip:nth-child(3) {
  grid-area: 2/2;
}

.hud-die[data-face="5"] .pip:nth-child(4) {
  grid-area: 3/1;
}

.hud-die[data-face="5"] .pip:nth-child(5) {
  grid-area: 3/3;
}

.hud-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-sparks span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: spark 3s ease-in-out infinite;
}

.hud-sparks span:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: .2s;
}

.hud-sparks span:nth-child(2) {
  top: 70%;
  left: 80%;
  animation-delay: .8s;
}

.hud-sparks span:nth-child(3) {
  top: 30%;
  left: 75%;
  animation-delay: 1.4s;
}

.hud-sparks span:nth-child(4) {
  top: 80%;
  left: 20%;
  animation-delay: 2s;
}

.hud-sparks span:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 2.5s;
}

@keyframes spark {

  0%,
  100% {
    opacity: 0;
    transform: scale(.4);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.hud-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
}

.hud-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.hud-bar span {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 3px;
}

.device-caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fg-dim);
}

.rr-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.strip-item {
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--navy-outline);
  border-radius: var(--radius-md);
  position: relative;
  transition: all .2s var(--ease);
}

.strip-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Removed last-child border override to fix frame defects */

.s-k {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.s-v {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ===================== WHY ===================== */
.why-list {
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  gap: 40px;
  align-items: baseline;
  transition: background .3s var(--ease);
}

.why-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.why-no {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.01em;
  color: var(--fg-muted);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.why-no .x {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 14px;
}

.why-yes {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.01em;
  color: var(--fg);
}

.why-quote {
  margin: 0;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  border: var(--outline-w) solid var(--navy-outline);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0;
  line-height: 1.2;
  position: relative;
  text-shadow: 2px 3px 0 var(--text-shadow);
}

.why-quote em {
  color: var(--accent);
  font-style: normal;
}

.quote-mark {
  position: absolute;
  top: -22px;
  left: 32px;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  font-family: var(--f-display);
}

/* ===================== VISION ===================== */
.future {
  position: relative;
  overflow: hidden;
}

.future-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 80% 10%, var(--accent-glow), transparent 55%);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}

.future-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-bottom: 64px;
}

.f-col {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-col:last-child {
  border-right: none;
}

.f-stage {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.f-then {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--fg-muted);
  line-height: 1.3;
}

.f-arrow {
  color: var(--accent);
  font-size: 22px;
  font-family: var(--f-display);
}

.f-now {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--fg);
}

.future-statement {
  max-width: 960px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.future-statement p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}

/* ===================== JOIN ===================== */
.join {
  padding-top: clamp(100px, 14vw, 160px);
  padding-bottom: clamp(100px, 14vw, 160px);
}

.join-inner {
  max-width: 960px;
}

.join-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 24px 0;
}

.join-title .line {
  display: block;
  overflow: hidden;
}

.join-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-muted);
  max-width: 58ch;
  margin: 0 0 32px;
}

.join-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.join-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.channel {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -.01em;
  transition: background .3s var(--ease), color .3s var(--ease);
}

.channel:last-child {
  border-right: none;
}

.channel:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}

.ch-arr {
  color: var(--fg-muted);
  font-family: var(--f-mono);
}

.channel:hover .ch-arr {
  color: var(--accent);
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--navy-outline);
  padding: 48px var(--pad-x) 32px;
  background: rgba(14, 58, 140, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer>* {
  width: 100%;
  max-width: var(--w-max);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
}

.footer-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.footer-cols>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-cols a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color .2s var(--ease);
}

.footer-cols a:hover {
  color: var(--fg);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .1em;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  /* Extreme Mobile Performance Optimizations */
  body::before {
    display: none !important;
  }
  .hero-rays, .hero-glow, .hub-rings, .hub-lines {
    display: none !important;
  }
  .device-frame {
    animation: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }
  .btn::after {
    display: none !important;
  }
  .hero-deco {
    animation: none !important;
    filter: none !important;
    opacity: 0.2 !important;
  }
  .marquee-track {
    text-shadow: none !important;
    will-change: transform;
    transform: translateZ(0);
  }

  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(14, 58, 140, 0.98);
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .brand-logo-img {
    height: 22px;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--navy-outline);
    padding: 24px var(--pad-x) 32px;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .nav.open .nav-links a {
    padding: 16px 20px;
    font-size: 18px;
    font-family: var(--f-display);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav.open .mobile-menu-cta {
    display: inline-flex !important;
    align-self: center;
    margin-top: 16px;
    padding: 14px 32px;
    font-size: 18px;
    color: #000000 !important;
    border-bottom: none !important;
  }

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

  .problem-data {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(27px, 4.5vw, 65px);
  }

  .data-sep {
    width: auto;
    height: 1px;
  }

  .matrix-head,
  .matrix-row {
    grid-template-columns: 110px 1fr 1fr;
    padding: 14px 18px;
    font-size: 13px;
  }

  .row-a,
  .row-b {
    font-size: 14px;
  }

  .model-principles {
    grid-template-columns: 1fr 1fr;
  }

  .hub-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .hub-diagram {
    aspect-ratio: 4/5;
  }

  .hub-center {
    min-width: 120px;
    padding: 12px 16px;
  }

  .hub-satellite {
    min-width: 100px;
    padding: 10px 12px;
  }

  .sat-1,
  .sat-3 {
    left: 4%;
  }

  .sat-2,
  .sat-4 {
    right: 4%;
  }

  .sat-title {
    font-size: 14px;
  }

  .rr-header {
    grid-template-columns: 1fr;
  }

  .rr-left {
    display: flex;
    flex-direction: column;
  }

  .rr-ctas {
    order: 4;
    margin: 24px 0;
  }

  .rr-specs {
    order: 5;
    margin-top: 0;
  }

  .rr-right {
    order: -1;
  }

  .device-frame {
    width: 260px;
    height: 540px;
  }

  .showcase-bg-screen {
    display: none;
  }

  .rr-showcase {
    padding: 0;
  }

  .hero-deco {
    font-size: 20px !important;
    opacity: 0.4 !important;
  }

  .rr-specs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .rr-strip {
    grid-template-columns: 1fr 1fr;
  }

  .strip-item {
    padding: 24px 20px;
    border: 1px solid var(--navy-outline) !important;
    border-radius: var(--radius-md);
  }

  .why-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .future-cols {
    grid-template-columns: 1fr;
  }

  .f-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .f-col:last-child {
    border-bottom: none;
  }

  .join-channels {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(35px, 9vw, 44px);
    line-height: 1.1;
  }

  .eyebrow {
    font-size: 9px;
    padding: 6px 10px;
    gap: 6px;
    margin-top: 40px;
  }

  .eyebrow-dot {
    width: 5px;
    height: 5px;
  }

  .model-principles {
    grid-template-columns: 1fr;
  }

  .hub-pillars {
    grid-template-columns: 1fr;
  }

  .join-channels {
    grid-template-columns: 1fr;
  }

  .channel {
    border-right: none;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .join-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    flex: 0 1 auto;
    padding: 14px 24px;
    font-size: 17px;
    gap: 8px;
  }

  .btn {
    justify-content: center;
  }

  .matrix-head,
  .matrix-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .matrix-head span:first-child,
  .matrix-row span:first-child {
    color: var(--fg-dim);
    font-size: 11px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-line>span,
  .section-title .line>span,
  .hub-title .line>span,
  .join-title .line>span {
    opacity: 1 !important;
    transform: none !important;
  }
}