/* ================================================================
   JOVANA MEDICAL — landing page
   Cinematic neon-night cyber theme, derived from the uploaded
   hero artwork (deep indigo, electric cyan, magenta neon).
   ================================================================ */

:root {
  --bg-0: #050616;
  --bg-1: #0a0a23;
  --bg-2: #11102e;
  --bg-3: #181445;

  --ink-0: #f4f3ff;
  --ink-1: #cdc7ff;
  --ink-2: #8e88c8;
  --ink-3: #5e5895;

  --neon-cyan: #5be7ff;
  --neon-violet: #9a6bff;
  --neon-magenta: #ff5cd2;
  --neon-blue: #4a78ff;
  --neon-mint: #6effc7;

  --grid: rgba(122,108,255,0.10);
  --line: rgba(154,107,255,0.30);
  --line-soft: rgba(154,107,255,0.14);

  --ff-display: "Instrument Serif", "Noto Serif TC", serif;
  --ff-body: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --ff-han: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --ff-han-serif: "Noto Serif TC", "Songti TC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink-0);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ============== Global noise + scanlines ============== */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  z-index: 1000;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(154,107,255,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 120%, rgba(91,231,255,0.12), transparent 60%);
  z-index: 999;
}

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  transition: backdrop-filter .35s ease, background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(5,6,22,0.85), rgba(5,6,22,0.55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;            /* brand box must stay at natural width — squeezing it lets the nowrap-text overflow into the exam-switcher's space */
}
.nav-logo {
  width: 38px; height: 38px;
  position: relative;
  display: grid; place-items: center;
}
.nav-logo svg { filter: drop-shadow(0 0 10px rgba(91,231,255,.6)); }
.nav-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(154,107,255,.55)) drop-shadow(0 0 18px rgba(91,231,255,.35));
}
.nav-name {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: .04em;
  white-space: nowrap;       /* "Jovana Medical" must stay on one line under any font fallback / zoom */
}
.nav-name em { font-style: italic; color: var(--neon-cyan); }
.nav-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-left: 6px;
  white-space: nowrap;       /* eyebrow ("DASHBOARD", "PRACTICE · 計時測驗") must not wrap */
}
.nav-links { display: flex; gap: 12px; min-width: 0; }
.nav-links a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color .2s;
  white-space: nowrap;       /* CJK labels must not break mid-word */
  padding: 6px 10px;         /* override styles.css's 8px 14px so the 9-item product navs (archive / practice / notebook / categories / digest) fit at 1440px without the rightmost "Answer Key" / "更新" link getting clipped */
}
.nav-links a:hover { color: var(--neon-cyan); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0; transform: scaleX(.4);
  transition: opacity .25s, transform .25s;
}
.nav-links a:hover::after { opacity: 1; transform: scaleX(1); }

/* ============== NAV DROPDOWN ============== */
.nav-links { align-items: center; }
.nav-links > .nav-flat,
.nav-links > a.nav-flat {
  text-transform: none;
  font-size: 14px;
  letter-spacing: .02em;
  font-weight: 500;
}
.nav-links > a.nav-flat[aria-current="page"] { color: var(--neon-cyan); }
.nav-links > a.nav-flat[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
  font-family: inherit;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] { color: var(--neon-cyan); }
.nav-dropdown-caret { font-size: 10px; opacity: .7; transition: transform .2s; }
.nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }

.nav-pop {
  position: absolute; top: calc(100% + 14px); left: -16px;
  min-width: 280px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(10,12,30,0.96), rgba(5,6,22,0.96));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(91,231,255,0.08) inset;
  z-index: 60;
}
.nav-pop-item {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  text-transform: none;
  transition: background .15s;
}
.nav-pop-item::after { display: none; }
.nav-pop-item:hover { background: rgba(91,231,255,0.08); }
.nav-pop-item[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.nav-pop-item-title {
  color: var(--ink-0); font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
}
.nav-pop-item-en {
  color: var(--ink-3); font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: .15em; margin-top: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--neon-cyan);
  background: linear-gradient(180deg, rgba(91,231,255,0.12), rgba(91,231,255,0.04));
  color: var(--neon-cyan);
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase;
  transition: all .25s;
  box-shadow: 0 0 0 0 rgba(91,231,255,0);
}
.nav-cta:hover {
  background: rgba(91,231,255,0.18);
  box-shadow: 0 0 24px rgba(91,231,255,0.5), inset 0 0 12px rgba(91,231,255,0.2);
  transform: translateY(-1px);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-bg-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--bg-0);
}
.hero-bg-blur {
  position: absolute;
  top: -8%; left: -8%; right: -8%; bottom: -8%;
  background-image: url("assets/landing/hero-bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(48px) brightness(.55) saturate(1.2);
  transform: scale(1.15);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/landing/hero-bg.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center;
  will-change: transform;
  transition: transform 0.05s linear;
}
/* Layered gradients to integrate copy */
.hero-bg-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(5,6,22,0.35) 55%, rgba(5,6,22,0.85) 100%),
    linear-gradient(180deg, rgba(5,6,22,0.55) 0%, transparent 25%, transparent 65%, rgba(5,6,22,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Subtle moving grid floor */
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(transparent 95%, rgba(91,231,255,0.10) 95%),
    linear-gradient(90deg, transparent 95%, rgba(154,107,255,0.10) 95%);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 60%, black 90%, transparent 100%);
  pointer-events: none;
  animation: gridDrift 18s linear infinite;
  opacity: .55;
}
@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 80px, 80px 0; }
}

/* Floating particles (canvas) */
.hero-particles {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  width: 100%; height: 100%;
  display: block;
}

/* HUD frame */
.hero-hud {
  position: absolute; inset: 28px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(154,107,255,0.18);
  border-radius: 4px;
}
.hero-hud::before, .hero-hud::after,
.hero-hud > .corner {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}
.hero-hud::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-hud::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hero-hud .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.hero-hud .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero-meta-tl, .hero-meta-tr, .hero-meta-bl, .hero-meta-br {
  position: absolute;
  z-index: 5;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.hero-meta-tl { top: 64px; left: 56px; }
.hero-meta-tr { top: 64px; right: 56px; text-align: right; }
.hero-meta-bl { bottom: 64px; left: 56px; }
.hero-meta-br { bottom: 64px; right: 56px; text-align: right; }
.hero-meta-tl span, .hero-meta-tr span, .hero-meta-bl span, .hero-meta-br span {
  display: block;
  color: var(--neon-cyan);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 6;
  text-align: center;
  max-width: 880px;
  padding: 0 32px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(91,231,255,0.4);
  border-radius: 999px;
  background: rgba(91,231,255,0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}
.hero-eyebrow-top {
  position: absolute;
  top: clamp(96px, 12vh, 132px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin-bottom: 0;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--neon-cyan), transparent); }

.hero-title {
  font-family: var(--ff-han-serif);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-shadow: 0 0 40px rgba(91,231,255,0.35), 0 4px 30px rgba(0,0,0,0.6);
}
.hero-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #fff, var(--neon-cyan) 60%, var(--neon-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .1em;
}
.hero-sub {
  font-family: var(--ff-han);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400;
  color: var(--ink-1);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 28px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #0a0a23;
  box-shadow: 0 0 30px rgba(91,231,255,0.4), 0 0 60px rgba(154,107,255,0.2);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
  opacity: 0;
  transition: opacity .3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255,92,210,0.5), 0 0 80px rgba(91,231,255,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(205,199,255,0.3);
  color: var(--ink-0);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(154,107,255,0.12);
  border-color: var(--neon-violet);
  box-shadow: 0 0 24px rgba(154,107,255,0.3), inset 0 0 12px rgba(154,107,255,0.15);
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--neon-cyan));
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute; top: -10px; left: 0;
  width: 1px; height: 12px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 50px; opacity: 0; }
}

/* ============== SECTIONS ============== */
section.band {
  position: relative;
  padding: 140px 32px;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}
.section-title {
  font-family: var(--ff-han-serif);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.section-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--neon-cyan);
}
.section-title .tt-line {
  display: block;
  white-space: nowrap;
}
.features-head .section-title {
  font-size: clamp(30px, 4.2vw, 54px);
}
.section-lede {
  font-family: var(--ff-han);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-1);
  max-width: 640px;
}

/* ============== STATS RIBBON ============== */
.stats-ribbon {
  position: relative;
  padding: 60px 32px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(10,10,35,0), rgba(17,16,46,0.5), rgba(10,10,35,0));
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat {
  padding: 0 20px;
  border-left: 1px solid var(--line-soft);
  min-width: 0;
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(40px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.stat-num sup {
  font-size: 14px;
  vertical-align: baseline;
  letter-spacing: 0;
  background: linear-gradient(180deg, var(--neon-violet), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.stat-cap {
  font-family: var(--ff-han);
  font-size: 14px;
  color: var(--ink-1);
  margin-top: 6px;
}

/* ============== FEATURE CARDS GRID ============== */
.features-band {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(91,231,255,0.06), transparent 60%),
    radial-gradient(800px 400px at 80% 100%, rgba(255,92,210,0.06), transparent 60%);
}
.features-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.features-head .right {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  letter-spacing: .04em;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.features-head .right span { color: var(--neon-cyan); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.feature {
  position: relative;
  background: rgba(10,10,35,0.7);
  padding: 44px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: background .35s, transform .35s;
  overflow: hidden;
  cursor: pointer;
}
.feature:hover {
  background: rgba(24,20,69,0.85);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.feature:hover::before { opacity: 1; }
.feature-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex; justify-content: space-between;
}
.feature-num .tag { color: var(--neon-cyan); }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  position: relative;
}
.feature-icon svg {
  filter: drop-shadow(0 0 10px rgba(91,231,255,.5));
}
.feature h3 {
  font-family: var(--ff-han-serif);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.feature h3 .en {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--neon-cyan);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.feature p {
  font-family: var(--ff-han);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-1);
  margin: 0 0 20px;
  flex: 1;
}
.coming-soon {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow:
    0 0 1px var(--neon-cyan),
    0 0 12px rgba(91, 231, 255, 0.55),
    0 0 28px rgba(154, 107, 255, 0.35);
  margin-bottom: 10px;
}
.coming-sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--neon-violet);
}
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.chip {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-1);
}
.chip.cyan { color: var(--neon-cyan); border-color: rgba(91,231,255,0.4); }
.chip.violet { color: var(--neon-violet); border-color: rgba(154,107,255,0.4); }
.chip.magenta { color: var(--neon-magenta); border-color: rgba(255,92,210,0.4); }
.chip.mint { color: var(--neon-mint); border-color: rgba(110,255,199,0.4); }

.feature-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .35s;
  color: var(--ink-2);
}
.feature:hover .feature-arrow {
  border-color: var(--neon-cyan);
  background: rgba(91,231,255,0.12);
  color: var(--neon-cyan);
  transform: rotate(-45deg) translateX(2px);
}

/* ============== SHOWCASE — split section ============== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase-art {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(91,231,255,0.04), rgba(154,107,255,0.06)),
    radial-gradient(circle at 30% 20%, rgba(154,107,255,0.25), transparent 60%);
  overflow: hidden;
  border-radius: 4px;
}
.showcase-art .corners::before, .showcase-art .corners::after,
.showcase-art .corners > i {
  content: "";
  position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--neon-cyan);
}
.showcase-art .corners::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.showcase-art .corners::after { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.showcase-art .corners i.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.showcase-art .corners i.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
/* Ring */
.showcase-art .ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(154,107,255,0.4);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}
.showcase-art .ring.r2 { width: 60%; border-color: rgba(91,231,255,0.4); animation-duration: 80s; animation-direction: reverse; }
.showcase-art .ring.r3 { width: 40%; border-color: rgba(255,92,210,0.4); animation-duration: 40s; }
@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
.showcase-art .core {
  position: absolute; top: 50%; left: 50%;
  width: 24%; aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-cyan), var(--neon-violet) 70%, transparent 100%);
  filter: blur(2px);
  box-shadow: 0 0 80px rgba(91,231,255,0.6), 0 0 140px rgba(154,107,255,0.5);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.08); }
}
.showcase-art .scan {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: scan 4s ease-in-out infinite;
}
@keyframes scan {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}
.showcase-art-stats {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-1);
  line-height: 1.7;
}
.showcase-art-stats span { color: var(--neon-cyan); }
.showcase-art-stats .b { color: var(--neon-magenta); }

/* ============== PIPELINE ============== */
.pipeline-band {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  border-top: 1px solid var(--line-soft);
}
.pipeline {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.step {
  background: var(--bg-1);
  padding: 40px 28px;
  position: relative;
  transition: background .3s;
}
.step:hover { background: var(--bg-2); }
.step-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--neon-violet);
  margin-bottom: 18px;
}
.step:hover .step-num {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}
.step h4 {
  font-family: var(--ff-han-serif);
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 700;
}
.step p {
  font-family: var(--ff-han);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-1);
  margin: 0;
}

/* ============== CTA FINAL ============== */
.cta-final {
  position: relative;
  padding: 120px 32px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(154,107,255,0.18), transparent 60%),
    var(--bg-0);
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(91,231,255,0.05) 24px 25px);
  pointer-events: none;
}
.cta-final h2 {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 28px;
  position: relative;
  color: var(--neon-cyan);
  text-shadow:
    0 0 1px var(--neon-cyan),
    0 0 14px rgba(91,231,255,.55),
    0 0 32px rgba(154,107,255,.4);
}
.cta-final h2 em {
  font-family: var(--ff-mono);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  color: var(--neon-magenta);
  text-shadow:
    0 0 1px var(--neon-magenta),
    0 0 14px rgba(255,92,210,.6),
    0 0 32px rgba(154,107,255,.5);
}
.cta-final p {
  font-family: var(--ff-han);
  font-size: 18px;
  color: var(--ink-1);
  max-width: 820px;
  margin: 0 auto 44px;
  line-height: 1.7;
  position: relative;
}

/* ============== FOOTER ============== */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 60px 32px 32px;
  background: var(--bg-0);
}
.foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.foot h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a,
.foot-link-btn {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 14px;
}
.foot-link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: inherit;
  color: var(--ink-1);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}
.foot-link-btn:disabled { opacity: .5; cursor: default; }
.foot a:hover,
.foot-link-btn:not(:disabled):hover,
.foot-link-btn:not(:disabled):focus-visible { color: var(--neon-cyan); }
.foot-link-btn:focus-visible { outline: none; }
.foot-social { display: flex; gap: 12px; align-items: center; }
.foot-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(91, 231, 255, 0.22);
  background: rgba(91, 231, 255, 0.04);
  color: var(--neon-cyan);
  transition: border-color 180ms ease, background 180ms ease,
              box-shadow 180ms ease, transform 180ms ease;
}
.foot-social-link:hover,
.foot-social-link:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(91, 231, 255, 0.10);
  box-shadow: 0 0 24px rgba(91, 231, 255, 0.30);
  transform: translateY(-1px);
}
.foot-social-link:focus-visible { outline: none; }
.foot-contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-contact-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.foot-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-1);
  font-size: 14px;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.foot-contact-link:hover,
.foot-contact-link:focus-visible {
  color: var(--neon-cyan);
  border-color: rgba(91, 231, 255, 0.45);
}
.foot-contact-link:focus-visible { outline: none; }
.foot-contact-link svg { flex: 0 0 auto; }
.foot-contact-link span { word-break: break-all; }
.foot-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .12em;
}

/* ============== FOOT FEEDBACK BANNER ============== */
.foot-feedback {
  max-width: 1280px;
  margin: 56px auto 28px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91,231,255,0.04), rgba(154,107,255,0.04)),
    rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
}
.foot-feedback::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: .55;
}
.foot-feedback-copy {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 60ch;
}
.foot-feedback-copy strong {
  display: block;
  color: var(--ink-0);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.005em;
}
.foot-feedback-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #0a0a23;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  box-shadow: 0 0 24px rgba(91,231,255,0.3), 0 0 60px rgba(154,107,255,0.18);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.foot-feedback-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(154,107,255,0.55), 0 0 72px rgba(91,231,255,0.25);
}
.foot-feedback-cta:active { transform: translateY(0); }
@media (max-width: 720px) {
  .foot-feedback {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }
  .foot-feedback-cta { align-self: stretch; justify-content: center; }
}

/* ============== FEEDBACK MODAL ============== */
.feedback-modal-backdrop {
  position: fixed; inset: 0;
  z-index: 220;
  display: grid; place-items: center;
  background: rgba(5,6,22,0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  animation: gateIn .28s cubic-bezier(.2,.8,.2,1);
  padding: 24px;
}
.feedback-modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(17,16,46,0.95), rgba(10,10,35,0.97));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 32px 28px;
  box-shadow:
    0 0 0 1px rgba(91,231,255,0.05),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(154,107,255,0.18);
  animation: cardUp .35s cubic-bezier(.2,.8,.2,1);
}
.feedback-modal::before {
  content: "";
  position: absolute; top: -1px; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}
.feedback-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-2);
  border-radius: 4px;
  font-family: var(--ff-mono);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.feedback-modal-close:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.feedback-modal-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: .3em;
  color: var(--neon-cyan); text-transform: uppercase;
  margin-bottom: 10px;
}
.feedback-modal-title {
  font-family: var(--ff-han-serif);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.005em;
  margin: 0 0 22px;
  color: var(--ink-0);
}
.feedback-modal-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--neon-cyan);
}
.feedback-modal-status {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-2);
  padding: 24px 0;
}

.feedback-modal-form { display: grid; gap: 16px; }
.feedback-modal-from {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px dashed var(--line-soft);
  border-radius: 4px;
  background: rgba(91,231,255,0.03);
}
.feedback-modal-from-label {
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: .3em;
  color: var(--neon-cyan); text-transform: uppercase;
}
.feedback-modal-from-name {
  font-size: 14px; color: var(--ink-0);
}
.feedback-modal-from-email {
  font-family: var(--ff-mono);
  font-size: 12px; color: var(--ink-2);
}

.feedback-modal-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.feedback-modal-cat {
  flex: 1 1 auto;
  min-width: 92px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-1);
  font-family: var(--ff-han);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.feedback-modal-cat:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  color: var(--ink-0);
}
.feedback-modal-cat.is-active {
  border-color: var(--neon-cyan);
  background: rgba(91,231,255,0.10);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(91,231,255,0.25);
}
.feedback-modal-cat:disabled { opacity: .5; cursor: not-allowed; }

.feedback-modal-field { position: relative; }
.feedback-modal-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 14px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-0);
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: all .2s;
}
.feedback-modal-textarea:focus {
  border-color: var(--neon-cyan);
  background: rgba(91,231,255,0.04);
  box-shadow: 0 0 0 3px rgba(91,231,255,0.12);
}
.feedback-modal-counter {
  position: absolute;
  right: 12px; bottom: 8px;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: .15em;
  color: var(--ink-3);
  pointer-events: none;
}
.feedback-modal-counter.is-over { color: var(--neon-magenta); }

.feedback-modal-err {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: .12em;
  color: var(--neon-magenta);
  padding: 8px 12px;
  border: 1px solid rgba(255,92,210,0.35);
  background: rgba(255,92,210,0.08);
  border-radius: 4px;
}

.feedback-modal-actions {
  display: flex; gap: 10px;
  margin-top: 4px;
}
.feedback-modal-submit {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #0a0a23;
  font-family: var(--ff-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 0 24px rgba(91,231,255,0.3);
}
.feedback-modal-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(154,107,255,0.55), 0 0 60px rgba(91,231,255,0.25);
}
.feedback-modal-submit:disabled { opacity: .55; cursor: not-allowed; }
.feedback-modal-ghost {
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.feedback-modal-ghost:hover:not(:disabled) {
  color: var(--ink-0);
  border-color: var(--ink-2);
}
.feedback-modal-ghost:disabled { opacity: .5; cursor: not-allowed; }

.feedback-modal-guest {
  display: grid; gap: 18px;
}
.feedback-modal-guest p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.7;
}

.feedback-modal-sent {
  text-align: center;
  padding: 8px 0;
  display: grid; gap: 12px;
  justify-items: center;
}
.feedback-modal-sent-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(91,231,255,0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 28px; font-weight: 600;
  box-shadow: 0 0 24px rgba(91,231,255,0.35);
  margin-bottom: 6px;
}
.feedback-modal-sent h4 {
  margin: 0;
  font-family: var(--ff-han-serif);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink-0);
}
.feedback-modal-sent p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}
.feedback-modal-sent .feedback-modal-submit {
  margin-top: 8px;
  flex: 0 0 auto;
  min-width: 180px;
}

/* ============== SIGN-IN GATE ============== */
.gate {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  background: rgba(5,6,22,0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  animation: gateIn .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes gateIn { from { opacity: 0; } to { opacity: 1; } }
.gate-bg {
  position: absolute; inset: 0;
  background-image: url("assets/landing/hero-bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.4) saturate(1.3);
  z-index: -1;
}
.gate-card {
  position: relative;
  width: min(460px, 92vw);
  background: linear-gradient(180deg, rgba(17,16,46,0.92), rgba(10,10,35,0.96));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 42px 38px 38px;
  box-shadow:
    0 0 0 1px rgba(91,231,255,0.06),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(154,107,255,0.18);
  animation: cardUp .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.gate-card::before {
  content: "";
  position: absolute; top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}
.gate-corners > i {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}
.gate-corners > i.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.gate-corners > i.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.gate-corners > i.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.gate-corners > i.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.gate-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: .3em;
  color: var(--neon-cyan); text-transform: uppercase;
  margin-bottom: 12px;
}
.gate-title {
  font-family: var(--ff-han-serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.gate-title em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--neon-cyan);
}
.gate-sub {
  font-family: var(--ff-han);
  font-size: 14px;
  color: var(--ink-1);
  line-height: 1.6;
  margin: 0 0 28px;
}

.gate-form { display: grid; gap: 14px; }
.field {
  position: relative;
  display: block;
}
.field label {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-3);
  text-transform: uppercase;
  pointer-events: none;
  transition: all .2s;
}
.field input {
  width: 100%;
  padding: 26px 14px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--ink-0);
  font-family: var(--ff-body);
  font-size: 15px;
  outline: none;
  transition: all .2s;
}
.field input:focus,
.field input:not(:placeholder-shown) {
  border-color: var(--neon-cyan);
  background: rgba(91,231,255,0.04);
  box-shadow: 0 0 0 3px rgba(91,231,255,0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 9px;
  color: var(--neon-cyan);
}

.gate-actions {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 8px;
}
.gate-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #0a0a23;
  font-family: var(--ff-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: all .25s;
  box-shadow: 0 0 24px rgba(91,231,255,0.4);
}
.gate-submit:hover { box-shadow: 0 0 36px rgba(154,107,255,0.6), 0 0 60px rgba(91,231,255,0.3); transform: translateY(-1px); }
.gate-submit:disabled { opacity: .6; cursor: progress; }

.gate-divider {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .3em; color: var(--ink-3);
  text-transform: uppercase;
  margin: 6px 0;
}
.gate-divider::before, .gate-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line-soft);
}
.gate-google {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink-0);
  border-radius: 4px;
  font-family: var(--ff-body); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all .2s;
}
.gate-google:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--neon-cyan);
}
/* Real Google Identity Services button rendered transparently on top of
   the design's custom .gate-google so the visual stays faithful to the
   prototype while clicks reach Google's official handler. */
.gate-google-shell { position: relative; width: 100%; }
.gate-google-shell .gate-google { pointer-events: none; }
.gate-google-shell:hover .gate-google {
  background: rgba(255,255,255,0.06);
  border-color: var(--neon-cyan);
}
.gate-google-real {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.gate-google-real > div { width: 100% !important; }
.gate-google-real iframe { width: 100% !important; }

.gate-foot {
  margin-top: 22px;
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.gate-foot a { color: var(--ink-2); text-decoration: none; }
.gate-foot a:hover { color: var(--neon-cyan); }

.gate-status {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--neon-cyan);
  display: flex; align-items: center; gap: 8px;
  min-height: 16px;
}
.gate-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ============== Responsive ============== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-meta-tl, .hero-meta-tr, .hero-meta-bl, .hero-meta-br { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature { min-height: 280px; padding: 32px 24px; }
  .features-head { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat { padding: 16px; border-left: none; border-top: 1px solid var(--line-soft); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .pipeline { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section.band { padding: 90px 22px; }
}

/* ============================================================================
 * AvatarMenu — shared right-side nav widget. JSX in landing-sections.jsx.
 * Replaces the older `.dash-user` text pill + `.dash-signout` button on the
 * dashboard and practice nav with a single avatar circle that opens a small
 * popover containing the user's name / email and a sign-out action.
 * ========================================================================== */

.nav-user-cluster {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav-cta--dashboard {
  text-decoration: none;
}

.nav-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;            /* never clip the avatar off the right edge — it's a primary affordance (sign-out / account) */
}

.nav-avatar-btn {
  appearance: none; -webkit-appearance: none;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(154, 107, 255, 0.06);
  cursor: pointer;
  overflow: hidden;
  display: grid; place-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nav-avatar-btn:hover,
.nav-avatar-btn[aria-expanded="true"] {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(91, 231, 255, 0.4);
}
.nav-avatar-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-initial {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(91, 231, 255, 0.92), rgba(154, 107, 255, 0.92));
}
.nav-avatar-initial--lg { font-size: 22px; border-radius: 999px; width: 44px; height: 44px; }

.nav-avatar-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 260px;
  max-width: 320px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(11, 10, 41, 0.96), rgba(5, 6, 22, 0.98));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(91, 231, 255, 0.10);
  z-index: 100;
  animation: nav-avatar-pop-in 0.18s ease-out;
}
@keyframes nav-avatar-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-avatar-pop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.nav-avatar-pop-head img {
  width: 44px; height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.nav-avatar-pop-meta { min-width: 0; flex: 1; }
.nav-avatar-pop-name {
  font-family: var(--ff-display);
  color: var(--ink-0);
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.nav-avatar-pop-email {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-avatar-pop-action {
  appearance: none; -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 92, 210, 0.32);
  background: rgba(255, 92, 210, 0.06);
  color: var(--neon-magenta);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-avatar-pop-action:hover {
  background: rgba(255, 92, 210, 0.16);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 18px rgba(255, 92, 210, 0.4);
}
/* Non-destructive menu link (Settings, etc.) — same shape as the
   sign-out action but cyan instead of magenta so the destructive item
   stays visually unique. */
.nav-avatar-pop-link {
  appearance: none; -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(91, 231, 255, 0.28);
  background: rgba(91, 231, 255, 0.05);
  color: var(--neon-cyan, #5be7ff);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-avatar-pop-link:hover {
  background: rgba(91, 231, 255, 0.14);
  border-color: var(--neon-cyan, #5be7ff);
  box-shadow: 0 0 16px rgba(91, 231, 255, 0.35);
}
.nav-avatar-pop-divider {
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
  border: 0;
}

@media (max-width: 980px) {
  .nav-avatar-btn { width: 34px; height: 34px; }
  .nav-avatar-initial { font-size: 12px; }
  .nav-avatar-pop { min-width: 220px; right: -8px; }
}

/* ============================================================================
 * Hub link — explicit ⌂ Dashboard entry at the start of the module nav on
 * internal pages, visually separated from the module list by a thin
 * vertical divider so it reads as "home" rather than as a sibling module.
 * ========================================================================== */

.nav-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-cyan) !important;
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, text-shadow 0.2s, background 0.2s;
}
.nav-hub:hover {
  text-shadow: 0 0 10px rgba(91, 231, 255, 0.55);
  background: rgba(91, 231, 255, 0.05);
}
/* Cancel the default underline-on-hover that .nav-links a uses,
 * since the hub item already has its own hover treatment. */
.nav-links a.nav-hub::after { display: none; }

.nav-hub-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(91, 231, 255, 0.55));
}

.nav-links-divider {
  width: 1px;
  height: 18px;
  background: var(--line-soft);
  margin: 0 5px;
  align-self: center;
}

/* Progressive nav shrink for the 9-item product navs (archive / practice /
 * notebook / categories / digest). User preference: keep every link visible,
 * shrink type instead of collapsing into a dropdown. Two breakpoints sit
 * above the existing 980px mobile rule so the cascade reads wide → narrow. */
@media (max-width: 1340px) {
  .nav { padding: 12px 18px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 11px; padding: 5px 8px; letter-spacing: .02em; }
  .nav-links-divider { margin: 0 3px; height: 14px; }
  .nav-meta { font-size: 9px; letter-spacing: .16em; }
}

@media (max-width: 1120px) {
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 10.5px; padding: 4px 6px; letter-spacing: .01em; }
  .nav-links-divider { margin: 0 2px; }
  .nav-meta { display: none; }
  .nav-hub { font-size: 11px; padding: 2px 6px; gap: 4px; }
  .nav-hub-icon { font-size: 13px; }
  .exam-switcher { margin-left: 12px; }
  .exam-switcher-btn { padding: 6px 10px; font-size: 10px; gap: 6px; }
  .exam-switcher-btn .es-value { font-size: 14px; }
}

@media (max-width: 980px) {
  .nav-hub { font-size: 11px; padding: 2px 6px; }
  .nav-hub-icon { font-size: 14px; }
  .nav-links-divider { margin: 0 4px; }
}

/* ============================================================================
 * MOBILE-ONLY HERO + LAYOUT REFINEMENTS  (≤ 640 px / phone)
 *
 * Adopts the deep-void neon-HUD aesthetic from the immersive reference:
 * stronger vignette, heartbeat radial pulse, vertical scan-beam, notched
 * HUD-card silhouettes on the CTAs — without altering desktop or tablet.
 * Below the Hero, tightens padding and stacks the foot grid for narrow
 * viewports.
 *
 * IMPORTANT: this block ONLY targets phones. Anything ≥ 641 px keeps the
 * existing desktop / tablet behaviour from the rules above.
 * ========================================================================== */
@media (max-width: 640px) {

  /* ───────────── Hero shell ───────────── */
  .hero {
    height: auto;
    min-height: 100svh;
    justify-content: center;
    padding: clamp(96px, 14vh, 132px) 20px clamp(72px, 10vh, 96px);
  }

  /* Fill the viewport with the cityscape art, dimmed so the JN logo
     reads as atmosphere rather than competing with the headline copy */
  .hero-bg {
    background-size: cover;
    background-position: 50% 72%;
    filter: brightness(.42) saturate(.95) contrast(1.02);
  }
  .hero-bg-blur {
    filter: blur(72px) brightness(.4) saturate(1.3);
    opacity: .95;
  }

  /* Stronger void-purple vignette + a dark "plate" through the vertical
     band where the title / subtitle / CTAs live, so text contrast wins
     even when the JN logo glyph is directly behind it. */
  .hero-bg-wrap::before {
    background:
      /* center dark plate behind the headline copy */
      linear-gradient(180deg,
        transparent 0%,
        rgba(5,6,22,0.72) 32%,
        rgba(5,6,22,0.78) 60%,
        rgba(5,6,22,0.55) 82%,
        transparent 100%),
      /* outer void vignette */
      radial-gradient(ellipse at center,
        transparent 0%,
        rgba(5,6,22,0.6) 50%,
        rgba(5,6,22,0.97) 100%),
      /* top + bottom gradient bookends */
      linear-gradient(180deg,
        rgba(5,6,22,0.85) 0%,
        transparent 20%,
        transparent 60%,
        rgba(5,6,22,0.98) 100%);
  }

  /* Heartbeat radial-glow behind the title (mirrors reference .logo-pulse) */
  .hero-bg-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 38%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
      rgba(255,92,210,0.32) 0%,
      rgba(154,107,255,0.22) 32%,
      transparent 62%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    animation: heroHeartbeat 1.4s ease-in-out infinite;
  }

  /* Vertical scan-beam sweep (mirrors reference .scan-beam / scan-down) */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
      transparent 0%,
      transparent 46%,
      rgba(91,231,255,0.16) 50%,
      transparent 54%,
      transparent 100%);
    mix-blend-mode: screen;
    z-index: 3;
    animation: heroScanBeam 6s linear infinite;
  }

  /* Slightly more visible grid floor under the new darker overlay */
  .hero-grid { opacity: .7; }

  /* ───────────── Hero HUD frame ───────────── */
  .hero-hud {
    inset: 14px;
    border-color: rgba(154,107,255,0.14);
  }
  .hero-hud::before,
  .hero-hud::after,
  .hero-hud > .corner {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 3px var(--neon-cyan));
  }

  /* ───────────── Eyebrow (fix the 3-line wrap) ───────────── */
  .hero-eyebrow-top {
    top: clamp(80px, 11vh, 104px);
    font-size: 9.5px;
    letter-spacing: .14em;
    padding: 6px 12px;
    gap: 8px;
    white-space: nowrap;
  }
  .hero-eyebrow-top::before,
  .hero-eyebrow-top::after { width: 18px; }

  /* ───────────── Hero copy ───────────── */
  .hero-content {
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
  }
  .hero-title {
    font-size: clamp(40px, 11vw, 60px);
    line-height: 1.06;
    margin: 0 0 14px;
    text-shadow:
      0 0 18px rgba(91,231,255,.45),
      0 0 36px rgba(154,107,255,.35),
      0 4px 24px rgba(0,0,0,.7);
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 36ch;
    margin: 0 auto 22px;
    color: #e9e6ff;
    text-shadow:
      0 0 14px rgba(91,231,255,.22),
      0 1px 2px rgba(0,0,0,.95),
      0 2px 18px rgba(0,0,0,.85);
  }

  /* ───────────── CTAs: stacked, full-width, notched HUD silhouette ───────────── */
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-ctas .btn {
    width: 100%;
    padding: 15px 22px;
    font-size: 12.5px;
    letter-spacing: .22em;
    justify-content: center;
    border-radius: 0;
    clip-path: polygon(
      0 0,
      calc(100% - 10px) 0,
      100% 10px,
      100% 100%,
      10px 100%,
      0 calc(100% - 10px)
    );
  }
  .hero-ctas .btn-primary {
    box-shadow:
      0 0 36px rgba(91,231,255,0.42),
      0 0 72px rgba(154,107,255,0.25);
  }

  /* ───────────── Scroll cue ───────────── */
  .scroll-cue { bottom: 18px; gap: 6px; font-size: 9px; }
  .scroll-cue .line { height: 32px; }

  /* ============================================================
   * Below-Hero — phone audit fixes
   * (existing 980 px breakpoint already collapses grids; these
   * overrides only tighten padding / sizing for narrow viewports)
   * ========================================================== */

  section.band { padding: 64px 18px; }

  /* Stats ribbon */
  .stats-ribbon { padding: 40px 18px; }
  .stat { min-width: 0; }
  .stat-num { font-size: clamp(34px, 9vw, 48px); }

  /* Features */
  .features-head { gap: 16px; margin-bottom: 40px; }
  .features-head .right {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
  .feature {
    min-height: 240px;
    padding: 28px 20px;
    min-width: 0;
  }
  .feature h3 { font-size: 22px; }
  .feature h3 .en { font-size: 14px; }
  .feature p { font-size: 13.5px; }
  .feature-arrow {
    bottom: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
  }
  .coming-soon { font-size: 22px; }

  /* Showcase */
  .showcase { gap: 32px; }
  .showcase-art { aspect-ratio: 1 / 1; }
}

/* Footer collapses to a single column on the narrowest phones */
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* New keyframes for the mobile Hero (prefixed `hero*` to avoid collisions) */
@keyframes heroHeartbeat {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  14%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
  28%      { opacity: .65; transform: translate(-50%, -50%) scale(1); }
  42%      { opacity: .85; transform: translate(-50%, -50%) scale(1.07); }
  70%      { opacity: .55; transform: translate(-50%, -50%) scale(1); }
}
@keyframes heroScanBeam {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
