/* =========================================================
   369 TESLA — TRB Computer Instructor · Cinematic Ad
   ========================================================= */
:root {
  --bg: #05060a;
  --bg-2: #090b13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #a3abc0;
  --dim: #6b7389;
  --blue: #6f9bff;
  --violet: #9a7cff;
  --cyan: #8fdcff;
  --gold: #f0cd7b;
  --gold-2: #c99a3c;
  --ok: #46d99b;
  --warn: #ffb35c;
  --grad: linear-gradient(120deg, #8fb3ff 0%, #a58bff 55%, #d6c6ff 100%);
  --grad-gold: linear-gradient(120deg, #fff1c9 0%, #f0cd7b 45%, #c99a3c 100%);
  --glow: 0 0 0 1px rgba(143, 179, 255, 0.25), 0 10px 40px -10px rgba(111, 155, 255, 0.45);

  --f-display: "Unbounded", "Noto Sans Tamil", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ta: "Noto Sans Tamil", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --r: 20px;
  --gutter: 16px;
  --dock-h: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-gated { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ta { font-family: var(--f-ta); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Background layers ---------- */
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(143, 179, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 20%, rgba(111, 155, 255, 0.14), transparent 70%),
    radial-gradient(35% 30% at 20% 75%, rgba(154, 124, 255, 0.12), transparent 70%);
  transition: opacity 1.6s var(--ease);
}
.trails { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.trails i {
  position: absolute; height: 1px; width: 40vw; left: -45vw;
  background: linear-gradient(90deg, transparent, rgba(143, 179, 255, 0.55), transparent);
  animation: trail 14s linear infinite; opacity: .5;
}
.trails i:nth-child(1) { top: 22%; animation-delay: 0s; }
.trails i:nth-child(2) { top: 61%; animation-delay: 5s; animation-duration: 18s; }
.trails i:nth-child(3) { top: 84%; animation-delay: 9s; animation-duration: 16s; background: linear-gradient(90deg, transparent, rgba(165, 139, 255, 0.5), transparent); }
@keyframes trail { to { transform: translateX(160vw); } }
body.climax .bg-glow, body.climax .trails, body.climax .bg-grid { opacity: 0; transition: opacity 1.4s; }

/* ---------- Brand chip + navigation ---------- */
.brand-chip {
  position: fixed; top: 14px; left: var(--gutter); z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--f-display); font-size: 12px; letter-spacing: .14em; font-weight: 600;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.brand-chip svg { width: 30px; height: 30px; }

.pillnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: none; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; background: rgba(10, 12, 20, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.pillnav a, .pillnav button {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted);
  transition: color .3s, background .3s;
}
.pillnav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; transition: .3s; }
.pillnav a:hover, .pillnav button:hover { color: var(--text); }
.pillnav a.active { color: var(--text); background: rgba(143, 179, 255, 0.12); }
.pillnav a.active::before { background: var(--cyan); opacity: 1; box-shadow: 0 0 10px var(--cyan); }
.pillnav .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.pillnav button svg { width: 16px; height: 16px; }
.pillnav button[aria-pressed="true"] { color: var(--cyan); }

.navfab {
  position: fixed; top: 14px; right: var(--gutter); z-index: 41;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 12, 20, 0.6); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity .6s var(--ease);
}
.navfab span { display: grid; grid-template-columns: repeat(3, 5px); gap: 4px; }
.navfab span i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); transition: .35s var(--ease); }
.navfab[aria-expanded="true"] span i { background: var(--cyan); }
.navfab[aria-expanded="true"] span i:nth-child(odd) { transform: scale(.5); }
.navsheet {
  position: fixed; top: 70px; right: var(--gutter); z-index: 41;
  width: min(260px, calc(100vw - 32px));
  padding: 8px; border-radius: 22px;
  background: rgba(12, 14, 24, 0.92); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transform-origin: top right; transform: scale(.92); opacity: 0; visibility: hidden;
  transition: transform .35s var(--spring), opacity .25s, visibility .35s;
}
.navsheet.open { transform: none; opacity: 1; visibility: visible; }
.navsheet a, .navsheet button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; letter-spacing: .12em;
  color: var(--muted);
}
.navsheet a.active, .navsheet a:hover, .navsheet button:hover { background: var(--surface-2); color: var(--text); }
.navsheet a small { font-family: var(--f-ta); letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--dim); }
.navsheet hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.navsheet button span:last-child { font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.navsheet button[aria-pressed="true"] span:last-child { color: var(--cyan); }
body.climax .pillnav, body.climax .brand-chip, body.climax .navfab { opacity: 0; pointer-events: none; }

@media (min-width: 900px) {
  .pillnav { display: flex; }
  .navfab, .navsheet { display: none; }
}

/* ---------- Gate ---------- */
#gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px var(--gutter);
  background: radial-gradient(70% 60% at 50% 40%, rgba(20, 24, 44, .55), rgba(3, 4, 8, .92));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: opacity .9s var(--ease), visibility .9s;
}
#gate.closed { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card { width: min(460px, 100%); text-align: center; }
.gate-mark { width: 116px; height: 116px; margin: 0 auto 26px; }
.gate-kicker { font-size: 11px; letter-spacing: .32em; color: var(--muted); font-weight: 600; }
.gate-card h2 {
  margin: 10px 0 10px; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(26px, 7.4vw, 38px); line-height: 1.12; letter-spacing: -.01em;
}
.gate-card p { margin: 0 auto 30px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.gate-actions { display: grid; gap: 12px; }
.gate-note { margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 15px; letter-spacing: .02em;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: #eef1f8; color: #07080d; box-shadow: 0 12px 40px -12px rgba(143, 179, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(143, 179, 255, .9); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(143, 179, 255, .5); background: rgba(143, 179, 255, .07); }
.btn-wa { background: linear-gradient(135deg, #3fd58f, #1fa463); color: #03140b; box-shadow: 0 14px 40px -14px rgba(63, 213, 143, .7); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #1a1205; box-shadow: 0 14px 44px -14px rgba(240, 205, 123, .75); }
.btn-gold:hover { transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.scene {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 96px var(--gutter) 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .3em; font-weight: 650; color: var(--cyan); text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.h-display {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(30px, 8.6vw, 64px); margin: 14px 0 0;
}
.h-ta { font-family: var(--f-ta); font-weight: 700; line-height: 1.35; font-size: clamp(20px, 5.4vw, 30px); margin: 14px 0 0; }
.lede { color: var(--muted); font-size: clamp(15px, 4vw, 18px); max-width: 52ch; margin: 14px 0 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Reveal: blur → sharp */
.rv { opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.in .rv, .rv.lit { opacity: 1; transform: none; filter: none; }
.in .rv.d1 { transition-delay: .12s; } .in .rv.d2 { transition-delay: .24s; } .in .rv.d3 { transition-delay: .36s; } .in .rv.d4 { transition-delay: .48s; }
/* Elements that wait for narration (lit) */
.cue { opacity: 0; transform: translateY(18px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.cue.lit { opacity: 1; transform: none; filter: none; }

/* ---------- HERO / DREAM ---------- */
#home { padding-top: 88px; }
.hero { text-align: center; width: 100%; max-width: 980px; }
.hero-kicker { font-size: 11px; letter-spacing: .42em; color: var(--muted); font-weight: 600; }
.logo-big {
  position: relative; margin: 14px 0 4px; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(56px, 19vw, 168px); line-height: .9; letter-spacing: -.04em;
}
.logo-big .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-big .t { display: block; font-weight: 500; font-size: .3em; letter-spacing: .62em; margin-top: .25em; padding-left: .62em; color: var(--text); }
.logo-big .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  mix-blend-mode: overlay; opacity: 0;
}
.logo-big.lit .shine { animation: shine 2.2s var(--ease) forwards; }
@keyframes shine { 0% { opacity: 1; background-position: 150% 0; } 80% { opacity: 1; } 100% { opacity: 0; background-position: -50% 0; } }
.scene { overflow-x: clip; }
.hero-role {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 650; letter-spacing: .26em; color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.hero-role i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dream-svg { width: min(520px, 100%); margin: 22px auto 0; overflow: visible; }
.hero-lines { margin-top: 18px; display: grid; gap: 10px; min-height: 120px; }
.hero-q { font-family: var(--f-ta); font-weight: 700; font-size: clamp(20px, 5.6vw, 34px); line-height: 1.35; margin: 0; }
.hero-q em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-a { font-family: var(--f-ta); font-weight: 500; font-size: clamp(16px, 4.4vw, 22px); color: var(--muted); margin: 0; }
.hero-a b { color: var(--text); font-family: var(--f-display); font-weight: 700; letter-spacing: .02em; }
.scroll-hint { margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; color: var(--dim); }
.scroll-hint span { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Dream illustration states */
.dr-draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease); }
.dream-svg.st-class .dr-draw { stroke-dashoffset: 0; }
.dr-fan { transform-origin: 180px 18px; animation: fan 1.6s linear infinite; }
@keyframes fan { to { transform: rotate(360deg); } }
.dr-student { transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); opacity: 0; transform: translateY(10px); }
.dream-svg.st-student .dr-student { opacity: 1; transform: none; }
.dream-svg.st-teacher .dr-student { opacity: 0; transform: translate(70px, -6px) scale(.9); }
.dr-teacher { opacity: 0; transform: translate(-40px, 6px); transition: opacity 1.4s var(--ease) .3s, transform 1.6s var(--ease) .3s; }
.dream-svg.st-teacher .dr-teacher { opacity: 1; transform: none; }
.dr-board-text { opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.dream-svg.st-teacher .dr-board-text { opacity: 1; }
.dr-halo { opacity: 0; transition: opacity 2s var(--ease) .8s; }
.dream-svg.st-teacher .dr-halo { opacity: 1; }
.dr-class-fade { opacity: 0; transition: opacity 1.6s var(--ease); }
.dream-svg.st-class .dr-class-fade { opacity: 1; }

/* ---------- WHY: six nodes ---------- */
.why-grid { display: grid; gap: 28px; align-items: center; width: 100%; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hexmap { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; }
.hexmap svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { stroke: rgba(143, 179, 255, .14); stroke-width: .35; }
.wire-flow { stroke: url(#gWire); stroke-width: .6; stroke-dasharray: 3 40; stroke-dashoffset: 43; opacity: 0; stroke-linecap: round; }
.hexmap.joined .wire-flow { opacity: 1; animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.hexring { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: .3; }
.hexmap .hub {
  position: absolute; left: 50%; top: 50%; width: 31%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.86);
  border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(143, 179, 255, .18), rgba(10, 12, 22, .9) 70%);
  border: 1px solid var(--line-2); transition: transform 1s var(--spring), box-shadow 1s var(--ease);
}
.hexmap.joined .hub { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 10px rgba(143, 179, 255, .04), 0 0 80px rgba(111, 155, 255, .45); }
.hub b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 5vw, 28px); line-height: 1; }
.hub small { display: block; margin-top: 6px; font-size: clamp(9px, 2.3vw, 11px); letter-spacing: .3em; color: var(--muted); }
.hexnode {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.9);
  padding: 10px 14px; border-radius: 14px; min-width: 96px; text-align: center;
  background: rgba(12, 14, 24, .78); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .32; transition: opacity .7s var(--ease), transform .8s var(--spring), border-color .6s, box-shadow .6s;
}
.hexnode b { display: block; font-size: 13px; font-weight: 750; letter-spacing: .16em; }
.hexnode small { display: block; font-family: var(--f-ta); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hexnode .num { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-family: var(--f-mono); color: var(--cyan); background: var(--bg); padding: 0 6px; border-radius: 6px; }
.hexnode.lit { opacity: 1; transform: translate(-50%, -50%) scale(1); border-color: rgba(143, 179, 255, .55); box-shadow: 0 0 30px -6px rgba(111, 155, 255, .7); }
.why-copy .steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.why-copy .steps span { font-size: 12px; letter-spacing: .14em; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); transition: .5s var(--ease); }
.why-copy .steps span.lit { color: var(--text); border-color: rgba(143, 179, 255, .5); background: rgba(143, 179, 255, .08); }

/* ---------- ECOSYSTEM ---------- */
.eco-head { text-align: center; margin-bottom: 18px; }
.orbit {
  --size: min(560px, calc(100vw - 32px), max(320px, calc(100svh - 250px)));
  --r: calc(var(--size) * .41);
  --node: clamp(50px, calc(var(--size) * .13), 70px);
  position: relative; width: var(--size); height: var(--size); margin: 8px auto 0;
}
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings circle { fill: none; }
.orbit-spin { position: absolute; inset: 0; animation: spin 110s linear infinite; }
.orbit-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spoke { stroke: rgba(143, 179, 255, .13); stroke-width: .25; }
.spoke.lit { stroke: rgba(143, 179, 255, .7); stroke-width: .45; }
.spoke-flow { stroke: var(--cyan); stroke-width: .7; stroke-dasharray: 1.5 30; stroke-linecap: round; animation: flow 3s linear infinite; opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-node {
  position: absolute; left: 50%; top: 50%; width: var(--node); height: var(--node);
  margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.orbit-node .in-node { width: 100%; height: 100%; animation: spin 110s linear infinite reverse; }
.orbit-node a {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 30%;
  background: linear-gradient(160deg, rgba(30, 36, 60, .95), rgba(10, 12, 22, .95));
  border: 1px solid var(--line-2);
  opacity: 0; transform: scale(.4); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s var(--spring), filter .8s, box-shadow .5s, border-color .5s;
}
.orbit-node a svg { width: 46%; height: 46%; color: var(--text); }
.orbit-node .lbl {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--muted);
  display: none;
}
@media (min-width: 640px) { .orbit-node .lbl { display: block; } }
.orbit-node.shown a, .orbit-node.lit a, .orbit.all-in .orbit-node a { opacity: 1; transform: none; filter: none; }
.orbit-node.lit a { border-color: rgba(143, 179, 255, .8); box-shadow: 0 0 0 6px rgba(143, 179, 255, .08), 0 0 36px rgba(111, 155, 255, .75); }
.orbit-node.lit .lbl { color: var(--text); }
.orbit-node a:hover { transform: scale(1.1); border-color: rgba(143, 179, 255, .8); }
.orbit-hub {
  position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 0 6%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(111, 155, 255, .22), rgba(8, 10, 18, .95) 70%);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(143, 179, 255, .06), 0 0 0 18px rgba(143, 179, 255, .03), 0 0 90px -10px rgba(111, 155, 255, .55);
}
.orbit-hub svg.mark { width: 30%; height: auto; margin: 0 auto 6px; }
.orbit-hub svg.hub-ico { width: 26%; height: auto; margin: 0 auto 8px; color: var(--cyan); }
.hub-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(13px, 3.6vw, 19px); line-height: 1.1; letter-spacing: .02em; }
.hub-sub { margin-top: 4px; font-size: clamp(10.5px, 2.8vw, 12.5px); color: var(--muted); line-height: 1.3; }
.hub-swap { animation: hubIn .6s var(--ease); }
@keyframes hubIn { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }

.eco-tagline { margin: 36px auto 0; text-align: center; display: grid; gap: 4px; }
.eco-tagline span { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 5.4vw, 34px); letter-spacing: -.01em; line-height: 1.15; }
.eco-tagline span:nth-child(2) { color: var(--muted); }
.eco-tagline span:last-child { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* App cards */
.apps-head { margin: 80px 0 22px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.apps-head h3 { margin: 8px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 6vw, 34px); letter-spacing: -.01em; }
.apps { display: grid; gap: 14px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 620px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.app {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: var(--r);
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--spring), border-color .4s, box-shadow .5s var(--ease);
}
.app::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: bus 4.5s linear infinite; animation-delay: calc(var(--i) * .5s); opacity: .8;
}
@keyframes bus { 0% { background-position: -100% 0; } 100% { background-position: 300% 0; } }
.app:hover, .app:focus-within { transform: translateY(-4px) scale(1.015); border-color: rgba(143, 179, 255, .4); box-shadow: 0 24px 60px -24px rgba(111, 155, 255, .55); }
.app.lit { border-color: rgba(143, 179, 255, .55); box-shadow: 0 0 0 1px rgba(143, 179, 255, .25), 0 24px 60px -24px rgba(111, 155, 255, .7); }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(143, 179, 255, .1); border: 1px solid rgba(143, 179, 255, .22); }
.app-ico svg { width: 22px; height: 22px; }
.app-top h4 { margin: 0; font-size: 15px; letter-spacing: .1em; font-weight: 800; }
.app-top p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.app-viz { height: 118px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; position: relative; }
.app-viz svg { width: 100%; height: 100%; }
.app ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.app ul li { display: flex; gap: 8px; align-items: center; }
.app ul li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); flex: none; }
.app .explore { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; transition: .3s; }
.app .explore svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.app .explore:hover { background: #eef1f8; color: #07080d; }
.app .explore:hover svg { transform: translate(2px, -2px); }

/* mini viz pieces */
.code-win { position: absolute; inset: 0; padding: 10px 12px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; color: #cfd8f0; }
.code-win .bar { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.code-win .bar i { width: 7px; height: 7px; border-radius: 50%; background: #2c3248; }
.code-win .bar span { margin-left: 8px; font-size: 10.5px; color: var(--cyan); letter-spacing: .08em; }
.code-win pre { margin: 0; white-space: pre; overflow: hidden; }
.code-win .out { color: var(--ok); }
.code-win .caret { display: inline-block; width: 6px; height: 12px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.notes-flow { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 12px; }
.notes-flow span { font-size: 11.5px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); width: fit-content; transition: .4s var(--ease); }
.notes-flow span.on { color: var(--text); border-color: rgba(143, 179, 255, .55); background: rgba(143, 179, 255, .1); transform: translateX(4px); }
.cube-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 420px; }
.cube { width: 46px; height: 46px; position: relative; transform-style: preserve-3d; animation: cube 9s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1px solid rgba(143, 179, 255, .7); background: rgba(111, 155, 255, .07); }
.cube i:nth-child(1) { transform: translateZ(23px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(23px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(23px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(23px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(23px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(23px); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.cube-tags { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

/* SVG animation helpers (viz) */
.pulse-edge { stroke-dasharray: 2 18; animation: flow 1.8s linear infinite; }
.wave rect { transform-origin: center; transform-box: fill-box; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.packet { animation: packet 2.4s linear infinite; }
@keyframes packet { from { transform: translateX(0); } to { transform: translateX(130px); } }
.blinkcell { animation: cell 1.6s steps(1) infinite; }
@keyframes cell { 50% { fill: rgba(143, 179, 255, .75); } }
.bar-rise { transform-origin: bottom; transform-box: fill-box; animation: rise 3s var(--ease) infinite; }
@keyframes rise { 0% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.vid-prog { transform-origin: left; transform-box: fill-box; animation: vprog 5s linear infinite; }
@keyframes vprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.page-turn { transform-origin: left center; transform-box: fill-box; animation: pturn 3.4s var(--ease) infinite; }
@keyframes pturn { 0%, 30% { transform: scaleX(1); } 60%, 100% { transform: scaleX(-1); opacity: .4; } }

/* ---------- PRINT / BOOK ---------- */
.print-grid { display: grid; gap: 34px; align-items: center; width: 100%; }
@media (min-width: 960px) { .print-grid { grid-template-columns: 1fr 1fr; } }
.book-stage { perspective: 1400px; display: grid; place-items: center; padding: 20px 0; }
.book {
  --w: min(170px, 42vw); --h: calc(var(--w) * 1.36);
  position: relative; width: calc(var(--w) * 2); height: var(--h);
  transform-style: preserve-3d; transform: rotateX(16deg) rotateZ(-2deg) translateX(calc(var(--w) * -.5));
  transition: transform 1.4s var(--ease);
}
.book.open { transform: rotateX(18deg) rotateZ(-2deg); }
.book-base, .leaf { position: absolute; top: 0; left: var(--w); width: var(--w); height: var(--h); }
.book-base { border-radius: 4px 10px 10px 4px; background: linear-gradient(90deg, #d9dbe4, #f3f4f8); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.book-base-l { left: 0; border-radius: 10px 4px 4px 10px; background: linear-gradient(270deg, #d9dbe4, #f3f4f8); opacity: 0; transition: opacity .2s 1s; }
.book.open .book-base-l { opacity: 1; }
.leaf { transform-origin: left center; transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
.leaf.flipped { transform: rotateY(-180deg); }
.leaf .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 4px 10px 10px 4px; padding: 14px 14px; color: #121521;
  background: linear-gradient(90deg, #e3e5ec 0%, #fbfbfd 12%);
  display: flex; flex-direction: column; overflow: hidden;
}
.leaf .face.back { transform: rotateY(180deg); border-radius: 10px 4px 4px 10px; background: linear-gradient(270deg, #e3e5ec 0%, #fbfbfd 12%); }
.leaf.cover .face.front {
  color: #fff; background: linear-gradient(150deg, #1b2240, #0b0e1c 60%); border: 1px solid rgba(143, 179, 255, .35);
  justify-content: space-between;
}
.leaf.cover .face.front .c-mark { width: 40px; }
.leaf.cover .face.front b { font-family: var(--f-display); font-size: clamp(16px, 4.5vw, 22px); line-height: 1.05; }
.leaf.cover .face.front small { font-size: 9.5px; letter-spacing: .24em; color: var(--muted); }
.leaf.cover .face.back { background: linear-gradient(270deg, #10142a, #1b2240); }
.pg-tag { font-size: 9px; letter-spacing: .24em; font-weight: 800; color: #4a5bd6; }
.pg-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(13px, 3.6vw, 17px); line-height: 1.1; margin: 6px 0 10px; }
.pg-ta { font-family: var(--f-ta); font-size: 11px; color: #4b5068; margin-bottom: 8px; }
.pg-lines { display: grid; gap: 6px; margin-top: auto; }
.pg-lines i { height: 4px; border-radius: 4px; background: #dfe2ec; }
.pg-lines i:nth-child(2) { width: 82%; } .pg-lines i:nth-child(3) { width: 64%; } .pg-lines i:nth-child(4) { width: 88%; }
.pg-ico { width: 30px; height: 30px; color: #4a5bd6; }
.book-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateZ(60px) scale(.6) rotate(-6deg);
  padding: 10px 16px; border-radius: 12px; text-align: center; white-space: nowrap;
  background: rgba(8, 10, 18, .92); border: 1px solid var(--gold); color: var(--gold);
  font-weight: 800; font-size: clamp(11px, 3vw, 13px); letter-spacing: .18em; opacity: 0;
  transition: opacity .6s var(--ease), transform .9s var(--spring); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .8);
}
.book.merged .book-stamp { opacity: 1; transform: translate(-50%, -50%) translateZ(60px) scale(1) rotate(-6deg); }
.subj-list { display: grid; gap: 8px; margin-top: 24px; }
.subj-list li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--dim); transition: .6s var(--ease); }
.subj-list li b { font-size: 13px; letter-spacing: .14em; font-weight: 750; }
.subj-list li span { margin-left: auto; font-family: var(--f-ta); font-size: 12.5px; }
.subj-list li.lit { color: var(--text); border-color: rgba(143, 179, 255, .45); background: rgba(143, 179, 255, .06); }
.subj-list { padding: 0; }
.soft-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 10px 16px 10px 12px; border-radius: 14px; border: 1px solid rgba(240, 205, 123, .3);
  background: rgba(240, 205, 123, .05);
}
.soft-badge small { display: block; font-size: 10.5px; letter-spacing: .2em; color: var(--muted); font-weight: 700; }
.soft-badge b { font-family: var(--f-display); font-size: 20px; }
.soft-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* ---------- TRACKING DASHBOARD ---------- */
.track-grid { display: grid; gap: 28px; width: 100%; align-items: center; }
@media (min-width: 1000px) { .track-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.dash {
  border-radius: 24px; padding: 16px; position: relative;
  background: linear-gradient(170deg, rgba(20, 24, 42, .92), rgba(8, 10, 18, .92));
  border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(111, 155, 255, .45);
}
.dash-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #0b0d18; font-weight: 800; font-family: var(--f-display); font-size: 15px; }
.dash-top b { display: block; font-size: 14.5px; }
.dash-top small { display: block; font-size: 12px; color: var(--muted); font-family: var(--f-ta); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--ok); padding: 5px 9px; border-radius: 999px; background: rgba(70, 217, 155, .1); white-space: nowrap; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 1.4s steps(1) infinite; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .dash-grid { grid-template-columns: repeat(4, 1fr); } }
.tile {
  border-radius: 16px; padding: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  opacity: .28; transform: translateY(8px); transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .6s, background .6s;
  min-width: 0;
}
.tile.lit { opacity: 1; transform: none; border-color: rgba(143, 179, 255, .35); background: rgba(143, 179, 255, .05); }
.tile small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.tile b { display: block; margin-top: 4px; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.tile .sub { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.tile.wide { grid-column: span 2; }
.tile.warn b { color: var(--warn); }
.tile.next b { color: var(--cyan); }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); border-radius: 6px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.tile.lit .meter i { transform: scaleX(1); }
.spark { height: 40px; margin-top: 6px; }
.spark path.l { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease); }
.tile.lit .spark path.l { stroke-dashoffset: 0; }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 10px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .06); transition: background .4s; }
.tile.lit .heat i.h1 { background: rgba(111, 155, 255, .35); } .tile.lit .heat i.h2 { background: rgba(111, 155, 255, .6); } .tile.lit .heat i.h3 { background: rgba(143, 220, 255, .95); }
.ring-tile { display: flex; align-items: center; gap: 12px; }
.ring { width: 74px; height: 74px; flex: none; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(255, 255, 255, .08); }
.ring .val { stroke: url(#gRing); stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 2s var(--ease); }
.tile.lit .ring .val { stroke-dashoffset: calc(213.6 * (1 - var(--p))); }
.ring-tile b { font-size: 24px; }
.track-flow { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .track-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.tf-step { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.tf-step svg { width: 28px; height: 28px; flex: none; color: var(--cyan); }
.tf-step b { display: block; font-size: 12px; letter-spacing: .14em; font-weight: 800; }
.tf-step small { display: block; font-family: var(--f-ta); font-size: 12px; color: var(--muted); }
.tf-arrow { justify-self: center; color: var(--dim); width: 22px; height: 22px; transform: rotate(90deg); }
@media (min-width: 640px) { .tf-arrow { transform: none; } }

/* ---------- ONE DAY CLOCK ---------- */
.day-grid { display: grid; gap: 30px; width: 100%; align-items: center; }
@media (min-width: 960px) { .day-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.clock { width: min(420px, 100%); margin: 0 auto; overflow: visible; }
.clock .tick { stroke: rgba(255, 255, 255, .18); }
.clock .tick.major { stroke: rgba(255, 255, 255, .4); }
.clock .hand { transition: transform 1.2s var(--ease); transform-origin: 160px 160px; }
.clock .ev circle.dot { fill: #0c0f1c; stroke: rgba(143, 179, 255, .5); stroke-width: 1.5; transition: .5s var(--ease); }
.clock .ev.on circle.dot { fill: var(--cyan); stroke: #fff; filter: drop-shadow(0 0 8px var(--cyan)); }
.clock .arc { fill: none; stroke: url(#gWire); stroke-width: 6; stroke-linecap: round; opacity: .25; transition: opacity .5s; }
.clock .arc.on { opacity: 1; }
.clock-center-time { font-family: var(--f-display); font-weight: 700; font-size: 26px; fill: var(--text); }
.clock-center-lbl { font-size: 12px; fill: var(--muted); letter-spacing: .08em; font-weight: 600; }
.day-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; }
.day-list li { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1px solid transparent; color: var(--muted); transition: .45s var(--ease); }
.day-list li time { font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); }
.day-list li b { font-size: 14.5px; font-weight: 650; color: inherit; }
.day-list li svg { width: 18px; height: 18px; opacity: .6; }
.day-list li.on { color: var(--text); border-color: rgba(143, 179, 255, .35); background: rgba(143, 179, 255, .07); }
.day-list li.on time { color: var(--cyan); }

/* ---------- RESULTS ---------- */
.results-wrap { text-align: center; width: 100%; }
.big-stat { font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: -.05em; font-size: clamp(110px, 38vw, 260px); margin: 18px 0 0; }
.big-stat .plus { font-size: .5em; vertical-align: .55em; color: var(--gold); -webkit-text-fill-color: var(--gold); }
.big-stat-lbl { font-size: clamp(13px, 3.6vw, 16px); letter-spacing: .3em; font-weight: 750; margin-top: 10px; }
.results-ta { font-family: var(--f-ta); color: var(--muted); font-size: clamp(15px, 4vw, 19px); max-width: 46ch; margin: 16px auto 0; line-height: 1.6; }
.journey { margin: 34px auto 0; width: min(860px, 100%); }
.journey svg { width: 100%; height: auto; overflow: visible; }
.journey-stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.journey-stages span { font-size: 11.5px; letter-spacing: .16em; font-weight: 800; color: var(--dim); transition: .6s; }
.journey-stages span.lit { color: var(--text); }
.journey-stages span:last-child.lit { color: var(--gold); }
@media (max-width: 420px) { .journey-stages span { font-size: 10.5px; letter-spacing: .08em; } }
.rank-card {
  margin: 30px auto 0; max-width: 520px; padding: 18px 20px; border-radius: 18px; text-align: left;
  border: 1px solid rgba(240, 205, 123, .35); background: rgba(240, 205, 123, .05);
}
.rank-card[hidden] { display: none; }
.rank-card small { font-size: 11px; letter-spacing: .26em; font-weight: 800; color: var(--gold); }
.rank-card p { margin: 6px 0 0; font-family: var(--f-ta); }

/* ---------- FEES ---------- */
.fees-head { text-align: center; margin-bottom: 30px; }
.fees { display: grid; gap: 16px; width: 100%; align-items: stretch; }
@media (min-width: 960px) { .fees { grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; } }
.fee {
  position: relative; border-radius: 26px; padding: 24px 22px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transition: transform .7s var(--spring), border-color .5s, box-shadow .6s, opacity .6s;
}
.fee.lit { border-color: rgba(143, 179, 255, .35); }
.fee-main { border-color: rgba(240, 205, 123, .35); background: radial-gradient(120% 70% at 80% 0%, rgba(240, 205, 123, .1), transparent 60%), linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); }
.fee-main.lit { border-color: rgba(240, 205, 123, .7); box-shadow: 0 0 0 1px rgba(240, 205, 123, .25), 0 40px 90px -40px rgba(240, 205, 123, .45); }
.fee h3 { margin: 0; font-size: 13px; letter-spacing: .2em; font-weight: 800; }
.fee .fee-ta { margin: 4px 0 0; font-family: var(--f-ta); font-size: 13px; color: var(--muted); }
.fee .reg { margin-top: 22px; font-size: 13px; color: var(--dim); }
.fee .reg s { color: var(--muted); }
.fee .price { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(40px, 12vw, 58px); line-height: 1; margin-top: 6px; }
.fee:not(.fee-main) .price { font-size: clamp(32px, 9vw, 40px); margin-top: 22px; }
.fee .ptype { margin-top: 8px; font-size: 11.5px; letter-spacing: .22em; font-weight: 800; color: var(--gold); }
.fee .save { position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; font-weight: 800; color: #1a1205; background: var(--grad-gold); }
.fee ul { list-style: none; padding: 0; margin: 22px 0 22px; display: grid; gap: 9px; font-size: 14px; }
@media (min-width: 480px) { .fee-main ul { grid-template-columns: 1fr 1fr; column-gap: 14px; } }
.fee ul li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.fee ul li svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.fee .btn { margin-top: auto; width: 100%; }
.fees-note { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* ---------- CLIMAX / FINAL ---------- */
#join { padding-top: 80px; }
.final { text-align: center; position: relative; width: 100%; max-width: 900px; }
.final-visual { position: relative; width: min(340px, 78vw, 44svh); margin: 0 auto; aspect-ratio: 1; }
.final-visual .mark-bg { position: absolute; inset: 0; opacity: 0; transform: scale(.85); transition: opacity 2s var(--ease), transform 2.6s var(--ease); }
.final-visual.lit .mark-bg { opacity: .55; transform: none; }
.final-visual .teacher { position: absolute; left: 50%; bottom: 4%; width: 46%; transform: translateX(-50%) translateY(14px); opacity: 0; transition: opacity 2s var(--ease) .4s, transform 2.4s var(--ease) .4s; }
.final-visual.lit .teacher { opacity: 1; transform: translateX(-50%); }
.nameplate {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 18px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid rgba(240, 205, 123, .45);
  background: linear-gradient(180deg, rgba(240, 205, 123, .1), rgba(240, 205, 123, .02));
}
.nameplate small { font-family: var(--f-ta); font-size: 12px; color: var(--muted); }
.nameplate b { font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; font-size: clamp(15px, 4.4vw, 22px); }
.final-q { font-family: var(--f-ta); font-weight: 700; font-size: clamp(22px, 6vw, 38px); line-height: 1.35; margin: 26px 0 0; }
.final-a { font-family: var(--f-ta); font-weight: 600; font-size: clamp(18px, 5vw, 28px); line-height: 1.4; margin: 12px 0 0; color: var(--muted); }
.final-a b { font-family: var(--f-display); color: var(--text); font-weight: 800; letter-spacing: .02em; }
.final-role { margin-top: 22px; font-size: 12.5px; letter-spacing: .36em; font-weight: 700; color: var(--muted); }
.final-price { margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 6vw, 30px); }
.final-price small { display: block; font-family: var(--f-body); font-size: 11px; letter-spacing: .28em; color: var(--gold); margin-top: 4px; font-weight: 800; }
.final-close { font-family: var(--f-ta); font-weight: 800; font-size: clamp(22px, 6.4vw, 40px); line-height: 1.35; margin: 34px 0 0; }
.final-close span { display: block; }
.final-close span:last-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: grid; gap: 12px; margin: 32px auto 0; max-width: 520px; }
@media (min-width: 560px) { .cta-row { grid-template-columns: 1fr 1fr; } }
.wa-num { font-family: var(--f-mono); letter-spacing: .06em; }

.contact-grid { display: grid; gap: 14px; margin: 60px auto 0; width: 100%; max-width: 1000px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.ccard { position: relative; border-radius: 22px; padding: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: left; overflow: hidden; }
.ccard h3 { margin: 0; font-size: 12px; letter-spacing: .24em; font-weight: 800; color: var(--muted); }
.ccard .addr { margin: 12px 0 16px; font-size: 16px; line-height: 1.6; }
.ccard .addr b { font-family: var(--f-display); font-weight: 700; }
.pin-wrap { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; }
.pin-ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; transform-origin: 32px 50px; transform-box: view-box; animation: pinring 2.4s var(--ease) infinite; }
.pin-ring.r2 { animation-delay: 1.2s; }
@keyframes pinring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pin-body { animation: pinbob 2.4s ease-in-out infinite; }
@keyframes pinbob { 50% { transform: translateY(-3px); } }
.community { background: radial-gradient(120% 90% at 100% 0%, rgba(154, 124, 255, .16), transparent 60%), rgba(255, 255, 255, .03); }
.community h4 { margin: 10px 0 6px; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 5.4vw, 26px); }
.community p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; font-family: var(--f-ta); }
.again { margin-top: 40px; }

footer { position: relative; z-index: 1; padding: 30px var(--gutter) 130px; text-align: center; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); }
footer b { color: var(--muted); font-weight: 600; }

/* ---------- Subtitles + dock ---------- */
.subtitles {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom)); z-index: 45;
  transform: translateX(-50%); width: min(760px, calc(100vw - 24px));
  text-align: center; pointer-events: none;
}
.subtitles p {
  display: inline; margin: 0; padding: 6px 12px; border-radius: 10px;
  font-family: var(--f-ta); font-weight: 600; font-size: clamp(15.5px, 4.2vw, 19px); line-height: 1.75;
  background: rgba(4, 5, 10, .78); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.subtitles p b { color: var(--cyan); font-weight: 700; font-family: var(--f-body); }
.subtitles.swap p { animation: subIn .45s var(--ease); }
@keyframes subIn { from { opacity: 0; filter: blur(4px); } }
.subtitles[hidden] { display: none; }

.dock {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 46;
  transform: translateX(-50%); width: min(620px, calc(100vw - 20px)); height: var(--dock-h);
  display: flex; align-items: center; gap: 4px; padding: 0 6px;
  border-radius: 999px; background: rgba(10, 12, 20, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
body.is-gated .dock, body.is-gated .subtitles { opacity: 0; pointer-events: none; }
.dock button { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .25s, color .25s; }
.dock button:hover { background: var(--surface-2); color: var(--text); }
.dock button svg { width: 20px; height: 20px; }
.dock .play { background: #eef1f8; color: #07080d; }
.dock .play:hover { background: #fff; color: #07080d; }
.dock button[aria-pressed="false"].tog { color: var(--dim); }
.dock button[aria-pressed="true"].tog { color: var(--cyan); }
.prog { flex: 1; min-width: 0; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; height: 100%; touch-action: none; }
.prog-meta { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.prog-meta span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-meta time { font-family: var(--f-mono); letter-spacing: 0; color: var(--dim); flex: none; margin-left: 8px; }
.prog-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.prog-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--grad); }
.prog-ticks i { position: absolute; top: -2px; width: 1px; height: 8px; background: rgba(255, 255, 255, .25); }
.prog-knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(143, 179, 255, .9); left: 0; }
@media (max-width: 380px) { .dock button { width: 40px; height: 40px; } .dock .hide-xs { display: none; } }

.skip-intro {
  position: fixed; right: var(--gutter); bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); z-index: 47;
  display: none; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--text);
  background: rgba(10, 12, 20, .72); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
}
.skip-intro svg { width: 14px; height: 14px; }
.skip-intro.show { display: inline-flex; animation: subIn .5s var(--ease); }
@media (max-width: 620px) { .skip-intro { top: 70px; bottom: auto; right: var(--gutter); } }

.toast {
  position: fixed; left: 50%; top: 74px; z-index: 60; transform: translate(-50%, -16px);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 14px;
  font-size: 13.5px; font-family: var(--f-ta); background: rgba(14, 16, 28, .95); border: 1px solid var(--line-2);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body.rm *, body.rm *::before, body.rm *::after { animation: none !important; }
body.rm .rv, body.rm .cue { filter: none !important; transform: none !important; transition: opacity .4s !important; }
body.rm .trails { display: none; }

/* ---------- 369 logo mark (3 · 6 · 9 ring segments) ---------- */
[data-mark] { display: block; }
.brand-chip [data-mark] { display: inline-block; }
.mark .mk { transform-origin: 24px 24px; transform-box: view-box; }
.mark .mk9 { animation: spin 48s linear infinite; }
.mark .mk6 { animation: spin 30s linear infinite reverse; }
.mark .mk3 { animation: spin 18s linear infinite; }
.gate-mark svg, .mark-bg svg { width: 100%; height: 100%; }
#hubContent > span { display: block; }
@media (max-width: 420px) {
  .hexnode { min-width: 0; padding: 8px 10px; }
  .hexnode b { font-size: 11.5px; letter-spacing: .1em; }
  .hexnode small { font-size: 10.5px; }
}
/* sprite icons: stroke styling must sit on <use> to reach the cloned symbol */
svg > use { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#jDots use { stroke-width: 1.4; }
