/* ==========================================================================
   Long/Short Terminal - landing page  [V2 "Tearsheet" restyle]
   Institutional research-note / quant-terminal look. Blueprint-grid texture,
   solid crisp type (no gradient fills), squared precise geometry, editorial
   index numerals, green used strictly as a FUNCTIONAL accent.
   Zero grey text (white / near-white only). Dark scrollbars. Self-hosted fonts.
   ========================================================================== */

/* ---- Self-hosted faces --------------------------------------------------- */
@font-face { font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-sans.woff2") format("woff2"); }
@font-face { font-family:"Geist Mono"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-mono.woff2") format("woff2"); }

/* ---- Design tokens ------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces - a hair deeper than V1 for a more paper-ink terminal contrast */
  --bg:      #08080b;
  --bg-1:    #0d0e12;   /* raised surface */
  --bg-2:    #12141a;   /* deeper inset */
  --line:    #1b1d24;   /* hairline */
  --line-2:  #2b2e39;   /* stronger hairline */
  --grid:    rgba(122,142,176,0.05);   /* blueprint grid line (bg only, never text) */

  /* Text (never below these) */
  --head:    #f4f6fa;
  --body:    #c8ccd4;
  --data:    #e6e8ee;

  /* Accent + semantics (functional only) */
  --up:      #2a7a4d;
  --up-br:   #4db380;
  --up-lbl:  #63cf97;   /* brighter green for small mono labels (legibility on near-black) */
  --down:    #8a3333;
  --down-br: #c56a6a;

  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 560ms;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 60px);
  --nav-h: 56px;
  --radius: 3px;        /* squared, precise - the anti-SaaS-card move */
}

/* ---- Reset / base -------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--line-2) var(--bg);
  overflow-x: hidden;
  position: relative;
}
/* Fixed blueprint grid: a fine 40px weave + a heavier 200px ledger rule.
   Extremely subtle (~5% slate), purely atmospheric, sits behind everything. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 92%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 92%);
}
body > * { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--head); margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.02; font-weight: 760; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.06; font-weight: 720; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.24; font-weight: 640; letter-spacing: -0.02em; }
p  { margin: 0; color: var(--body); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up   { color: var(--up-br); }
.down { color: var(--down-br); }

/* ---- Shared layout ------------------------------------------------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(76px, 11vh, 150px) var(--gutter);
}
.section--wide { max-width: 1300px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up-lbl);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--up-br); display: inline-block; }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--body);
  max-width: 64ch;
  line-height: 1.55;
}

/* Editorial index divider between narrative beats: an oversized numeral, the
   label, and a full-width hairline - reads like a printed research-note rule. */
.coord {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--mono);
}
.coord span:first-child {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--data);            /* legible near-white numeral (no opacity ghosting) */
  letter-spacing: -0.03em;
  line-height: 1;
}
.coord span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up-lbl);
  white-space: nowrap;
}
.coord::after { content: ""; flex: 1; height: 1px; align-self: center; background: var(--line-2); }

/* ---- Buttons: squared "terminal key" ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.01em;
  color: #06120c;
  background: var(--up-br);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { background: #5cc48f; transform: translateY(-1px); box-shadow: 0 6px 22px -12px rgba(77,179,128,0.65); }
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.secondary { color: var(--head); background: transparent; border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-1); border-color: #3a3e4d; box-shadow: none; }

/* ==========================================================================
   Top nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(8, 8, 11, 0.74);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  color: var(--head); letter-spacing: 0.02em;
}
.nav-brand .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--up-br); box-shadow: 0 0 8px 1px rgba(77,179,128,0.6); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--body); transition: color 160ms var(--ease); }
.nav-links a.nav-hide { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--head); }
.nav-cta {
  font-size: 13px !important; font-weight: 560;
  color: var(--head) !important;
  padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 160ms var(--ease), background 160ms var(--ease) !important;
}
.nav-cta:hover { border-color: var(--up-br); background: rgba(42,122,77,0.14); }
@media (max-width: 720px) { .nav-links .nav-hide { display: none; } }

/* ==========================================================================
   Scroll-progress rail (right edge)
   ========================================================================== */
.rail {
  position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transition: opacity 400ms var(--ease);
  padding-right: 4px;
}
.rail.show { opacity: 1; }
.rail-item {
  display: flex; align-items: center; gap: 11px; justify-content: flex-end;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--body); cursor: pointer; padding: 4px 0;
  transition: color 260ms var(--ease);
}
.rail-item .tick { width: 20px; height: 2px; background: var(--line-2); transition: all 260ms var(--ease); }
.rail-item .txt { width: 68px; text-align: right; text-transform: uppercase; }
.rail-item.active { color: var(--head); }
.rail-item.active .tick { width: 36px; background: var(--up-br); box-shadow: 0 0 8px rgba(77,179,128,0.55); }
.rail-item:hover { color: var(--head); }
@media (max-width: 980px) { .rail { display: none; } }

/* ==========================================================================
   Reveal-on-enter
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Terminal chrome (squared, sharper header)
   ========================================================================== */
.term {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 30px 90px -50px rgba(0,0,0,0.92);
}
.term-bar {
  display: flex; align-items: center; gap: 14px;
  height: 38px; padding: 0 14px;
  background: #0b0c11;
  border-bottom: 1px solid var(--line-2);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--line-2); display: block; }
.term-dots i:nth-child(1){ background:#5a3b3b; }
.term-dots i:nth-child(2){ background:#5a533b; }
.term-dots i:nth-child(3){ background:#3b5a45; }
.term-tabs { display: flex; gap: 3px; overflow: hidden; }
.term-tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--body); padding: 5px 11px; border-radius: 2px;
  transition: color 240ms var(--ease), background 240ms var(--ease);
  white-space: nowrap;
}
.term-tab.active { color: var(--head); background: rgba(77,179,128,0.15); box-shadow: inset 0 0 0 1px rgba(77,179,128,0.3); }
.term-status { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--body); display: flex; align-items: center; gap: 7px; }
.term-status .live { width: 6px; height: 6px; border-radius: 1px; background: var(--up-br); box-shadow: 0 0 8px var(--up-br); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.term-body { position: relative; background: var(--bg); }
.term-body img { width: 100%; display: block; }
@media (max-width: 640px) { .term-tab:nth-child(n+4) { display: none; } .term-status { display: none; } }

/* ==========================================================================
   1 - HERO (left-aligned editorial, no gradient fill, no glow blob)
   ========================================================================== */
.hero { position: relative; height: 300vh; }
/* A restrained top vignette instead of a floating radial blob. */
.hero-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 62vh; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(42,122,77,0.10), transparent 70%);
}
.hero-stage {
  position: sticky; top: 0; height: 100vh;
  display: grid; align-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  max-width: var(--maxw); margin: 0 auto; z-index: 1;
}
.hero-copy { text-align: left; max-width: 900px; margin: 0 0 26px; }
/* Editorial kicker rule above the headline */
.hero-copy::before {
  content: "// LONG-SHORT OPERATING SYSTEM";
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--up-lbl); margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
/* Kill the AI-slop gradient text-fill; solid crisp head white. */
.hero h1 .grad { background: none; -webkit-text-fill-color: currentColor; color: var(--head); }
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--body); max-width: 60ch; margin: 0 0 20px; }
.hero-sub .mono { color: var(--up-br); font-size: 0.9em; }
/* Spec strip - a bloomberg-style status line of hard numbers under the sub */
.hero-copy .hero-cta { margin-top: 24px; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

.hero-term-wrap { max-width: 1000px; width: 100%; margin: 0 auto; position: relative; }
.hero-term .term-body { min-height: 200px; }
.hero-frames { position: relative; }
.hero-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.012); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.hero-frame:first-child { position: relative; }
.hero-frame.on { opacity: 1; transform: none; z-index: 2; }
.hero-frame img { width: 100%; height: 40vh; object-fit: cover; object-position: top center; }

@media (max-width: 720px) {
  .hero { height: auto; }
  .hero-stage { position: static; height: auto; }
  .hero-frame img { height: auto; }
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--body); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .bar { width: 1px; height: 30px; background: linear-gradient(var(--up-br), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top;} 45%{transform:scaleY(1);transform-origin:top;} 55%{transform:scaleY(1);transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ==========================================================================
   2 - THE PROBLEM (scatter -> resolve)
   ========================================================================== */
.problem { text-align: center; }
.problem h2 { max-width: 26ch; margin: 0 auto 22px; }
.problem-tag {
  max-width: 42ch; margin: 46px auto 0;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--head); font-weight: 560; line-height: 1.4;
}
.chaos { position: relative; height: 400px; max-width: 800px; margin: 50px auto 0; }
.chaos-win {
  position: absolute;
  font-family: var(--mono); font-size: 12px; color: var(--body);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 13px;
  opacity: 0;
  transform: translate(var(--dx,0), var(--dy,0)) rotate(var(--rot,0deg)) scale(0.96);
  transition: opacity 700ms var(--ease), transform 800ms var(--ease);
  transition-delay: calc(var(--i,0) * 55ms);
  white-space: nowrap;
}
.chaos.in .chaos-win { opacity: 0.5; transform: translate(0,0) rotate(0) scale(1); }
.chaos.in .chaos-win.scatter { opacity: 0.4; }
.chaos-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.9); opacity: 0;
  background: var(--bg-1); border: 1px solid var(--up); border-radius: var(--radius);
  padding: 18px 28px;
  box-shadow: 0 0 0 1px rgba(42,122,77,0.25), 0 24px 70px -30px rgba(42,122,77,0.5);
  transition: opacity 700ms var(--ease) 500ms, transform 700ms var(--ease) 500ms;
  text-align: center;
}
.chaos.in .chaos-core { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.chaos-core .t { font-family: var(--mono); font-size: 13px; color: var(--head); letter-spacing: 0.08em; font-weight: 600; }
.chaos-core .s { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--up-lbl); margin-top: 5px; }
@media (max-width: 680px) {
  .chaos { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .chaos-win { position: static !important; transform: none !important; opacity: 0.5 !important; transition-delay: 0ms !important; }
  .chaos.in .chaos-win, .chaos.in .chaos-win.scatter { opacity: 0.5 !important; }
  .chaos-core { position: static; transform: none !important; order: 99; width: 100%; margin-top: 18px; }
  .chaos.in .chaos-core { transform: none !important; }
}

/* ==========================================================================
   3 - SIGNAL -> POSITION (sticky-pinned journey + funnel)
   ========================================================================== */
.journey { position: relative; height: 480vh; }
.journey-stage {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 26px) var(--gutter) 34px;
}
.journey-head { flex: 0 0 auto; margin-bottom: clamp(18px, 3.5vh, 42px); }
.journey-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.journey-steps { display: grid; gap: 5px; align-content: center; }
.jstep {
  display: grid; grid-template-columns: 34px 1fr; gap: 15px; align-items: baseline;
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid transparent; border-left: 2px solid transparent;
  transition: background 320ms var(--ease), border-color 320ms var(--ease);
}
.jstep .n { font-family: var(--mono); font-size: 12px; color: var(--body); font-weight: 500; }
.jstep .h { color: var(--body); font-size: 15.5px; font-weight: 560; transition: color 320ms var(--ease); }
.jstep .d { color: var(--body); font-size: 13px; margin-top: 2px; }
.jstep.active { background: var(--bg-1); border-color: var(--line); border-left-color: var(--up-br); }
.jstep.active .h { color: var(--head); }
.jstep.active .n { color: var(--up-lbl); font-weight: 600; }
.jstep.done .n { color: var(--up-lbl); font-weight: 600; }

.funnel { display: grid; gap: 11px; align-content: center; }
.funnel-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--up-lbl); letter-spacing: 0.1em; margin-bottom: 4px; text-transform: uppercase; }
.fbar {
  position: relative; height: 62px; border-radius: var(--radius);
  background: var(--bg-1); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  overflow: hidden; transition: border-color 340ms var(--ease);
}
.fbar::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(42,122,77,0.22), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease);
}
.fbar.on::before { transform: scaleX(var(--fill,0)); }
.fbar.on { border-color: var(--line-2); }
.fbar .fk { position: relative; font-size: 14px; color: var(--head); font-weight: 560; }
.fbar .fv { position: relative; font-family: var(--mono); font-size: 15px; color: var(--data); font-weight: 500; }
.fbar.final { border-color: var(--up); }
.fbar.final .fv { color: var(--up-br); }
.fbar:nth-child(2){ width: 100%; }
.fbar:nth-child(3){ width: 86%; }
.fbar:nth-child(4){ width: 66%; }
.fbar:nth-child(5){ width: 44%; }
.journey-foot { flex: 0 0 auto; margin-top: clamp(14px, 2.5vh, 26px); text-align: center; font-family: var(--mono); font-size: 13px; color: var(--head); letter-spacing: 0.06em; }
.journey-foot .g { color: var(--up-lbl); font-weight: 600; }
@media (max-width: 860px) {
  .journey { height: auto; }
  .journey-stage { position: static; height: auto; padding-top: 40px; padding-bottom: 40px; }
  .journey-head { margin-bottom: 26px; }
  .journey-body { grid-template-columns: 1fr; }
  .jstep, .fbar { opacity: 1 !important; transform: none !important; }
  .fbar::before { transform: scaleX(var(--fill,0)) !important; }
  .funnel { margin-top: 30px; }
  .journey-foot { margin-top: 30px; }
}

/* ==========================================================================
   4 - PRODUCT SHOWCASE (alternating rows)
   ========================================================================== */
.showcase { display: grid; gap: clamp(70px, 11vh, 140px); }
.show-row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.show-row.flip .show-text { order: 2; }
.show-text .num { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--up-lbl); letter-spacing: 0.12em; }
.show-text h3 { margin: 12px 0 12px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 680; }
.show-text p { color: var(--body); font-size: 15.5px; }
.show-text .pts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.show-text .pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.show-text .pts li::before { content: "+"; color: var(--up-br); font-family: var(--mono); font-weight: 700; }
.show-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--up-lbl);
  background: rgba(42,122,77,0.12);
  border: 1px solid rgba(42,122,77,0.34); border-radius: var(--radius);
  padding: 4px 10px; margin-top: 16px;
}
@media (max-width: 860px) {
  .show-row, .show-row.flip { grid-template-columns: 1fr; }
  .show-row.flip .show-text { order: 0; }
}

/* ==========================================================================
   5 - FEATURE 2x2 (squared, top-accent on hover)
   ========================================================================== */
.feats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 46px; }
.fcard {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; overflow: hidden;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.fcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--up-br); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fcard:hover::before { transform: scaleX(1); }
.fcard .ic { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--up-lbl); letter-spacing: 0.1em; margin-bottom: 12px; }
.fcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fcard p { font-size: 14px; color: var(--body); }
.fcard .thumb { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fcard .thumb img { width: 100%; }
@media (max-width: 720px) { .feats-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   6 - PRICING (squared cards; Pro = solid green top rule, not a glow)
   ========================================================================== */
.pricing { text-align: center; }
.pricing h2 { margin-bottom: 14px; }
.pricing .lead { margin: 0 auto 8px; }
.price-toggle-note { font-family: var(--mono); font-size: 12px; color: var(--body); letter-spacing: 0.06em; margin-bottom: 40px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.price-card.pro {
  border-color: var(--line-2);
  background: var(--bg-1);
  box-shadow: inset 0 2px 0 0 var(--up-br), 0 24px 70px -50px rgba(42,122,77,0.6);
}
.price-badge {
  position: absolute; top: -10px; left: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #06120c; background: var(--up-br);
  padding: 4px 11px; border-radius: 2px; font-weight: 600;
}
.price-name { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--data); }
.price-card.pro .price-name { color: var(--up-lbl); }
.price-tag { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-tag .amt { font-size: 2.7rem; font-weight: 720; color: var(--head); letter-spacing: -0.04em; }
.price-tag .per { font-family: var(--mono); font-size: 13px; color: var(--body); }
.price-desc { font-size: 13.5px; color: var(--body); min-height: 40px; margin-bottom: 20px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.price-feats li::before { content: "\2713"; color: var(--up-br); font-family: var(--mono); font-weight: 700; }
.price-feats li.off { text-decoration: line-through; text-decoration-color: var(--line-2); }
.price-feats li.off::before { content: "\2013"; color: var(--line-2); text-decoration: none; }
.price-card .btn { width: 100%; justify-content: center; }
.price-card:not(.pro) .btn { color: var(--head); background: transparent; border-color: var(--line-2); }
.price-card:not(.pro) .btn:hover { background: var(--bg-2); border-color: var(--up-br); box-shadow: none; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ==========================================================================
   7 - FINAL CTA + footer
   ========================================================================== */
.final { text-align: center; }
.final h2 { max-width: 22ch; margin: 0 auto 22px; }
.final .lead { margin: 0 auto 32px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.video {
  position: relative; max-width: 900px; margin: 60px auto 0;
  aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: #000;
  box-shadow: 0 30px 90px -60px rgba(0,0,0,0.9);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.footer { border-top: 1px solid var(--line-2); margin-top: 40px; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .nav-brand { font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12.5px; }
.footer-links a { color: var(--body); transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--head); }
.footer-copy { font-family: var(--mono); font-size: 11.5px; color: var(--body); }
.footer-disclaimer { flex-basis: 100%; margin-top: 6px; font-size: 11px; line-height: 1.55; color: var(--body); }
.footer-disclaimer a { color: var(--up-br); }

/* ==========================================================================
   Portfolio mock
   ========================================================================== */
.pf-mock { font-family: var(--mono); background: var(--bg); }
.pf-exp { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pf-exp .cell { padding: 14px 16px; border-right: 1px solid var(--line); }
.pf-exp .cell:last-child { border-right: 0; }
.pf-exp .k { font-size: 10.5px; letter-spacing: 0.1em; color: var(--body); text-transform: uppercase; }
.pf-exp .v { font-size: 19px; color: var(--data); margin-top: 5px; font-weight: 500; }
.pf-rows { padding: 6px 0; }
.pf-r { display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr 0.9fr; align-items: center; padding: 8px 16px; font-size: 12.5px; }
.pf-r:nth-child(odd) { background: #08080c; }
.pf-r:nth-child(even) { background: #0d0e12; }
.pf-r .sym { color: var(--head); font-weight: 500; }
.pf-r .side-l { color: var(--up-br); }
.pf-r .side-s { color: var(--down-br); }
.pf-r .num { color: var(--data); text-align: right; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero, .journey { height: auto !important; }
  .hero-stage, .journey-stage { position: static !important; height: auto !important; }
  .hero-frame { position: relative !important; opacity: 1 !important; transform: none !important; }
  .hero-frame:nth-child(n+2) { display: none; }
  .jstep, .fbar, .chaos-win { opacity: 1 !important; transform: none !important; }
  .fbar::before { transform: scaleX(var(--fill,0)) !important; }
  .chaos-core { opacity: 1 !important; transform: translate(-50%,-50%) !important; }
  .term-status .live, .scroll-hint .bar { animation: none !important; }
  .lightbox { transition: none !important; }
}

/* ==========================================================================
   Click-to-enlarge lightbox
   ========================================================================== */
.term-body img, .thumb img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(3, 3, 5, 0.93); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.22s var(--ease); }
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.98); transition: transform 0.22s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; color: var(--head);
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.lightbox-close:hover { border-color: var(--head); background: var(--line); }

/* ==========================================================================
   Compare-plans deep link
   ========================================================================== */
.compare-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 34px auto 0;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--up-lbl);
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.compare-link:hover { color: #7fdcaa; gap: 12px; }
.compare-link .arrow { transition: transform 220ms var(--ease); }
.compare-link:hover .arrow { transform: translateX(3px); }
