/* ───────────────────────────────────────────────────────────────────────────
   OBELIQ landing — LIGHT marketing surface:
   white canvas, big black display type, generous space. STRICTLY MONOCHROME —
   black on white, zero accent color. The only color on the page is the dark
   terminal frame (a picture of the app; its internal accents stay put).
   A greyscale smoke shader (cinematic.js) drifts behind the content.
   cascade.css loads first; everything below re-tokens it for light.
─────────────────────────────────────────────────────────────────────────── */

/* ── LIGHT THEME — re-token the cascade system for the marketing page ───── */
body.landing {
  --bg:          transparent;
  --surface:     rgba(247, 247, 245, 0.72);
  --surface-2:   rgba(239, 239, 236, 0.80);
  --border:      rgba(20, 20, 20, 0.10);
  --border-2:    rgba(20, 20, 20, 0.18);
  --text:        #141414;
  --text-muted:  #5B5C59;
  --text-dim:    #8A8B88;

  /* ── SPACING SCALE — single source of vertical rhythm ──────────────────
     Every section pads top+bottom with --sp-section-y, so the gap between
     any two adjacent sections is a uniform 2× beat. Inside a section:
     kicker → headline = --sp-kicker, headline → sub = --sp-sub,
     sub → content block = --sp-block, → CTA rows = --sp-cta.
     One container width (--measure), one horizontal gutter (--gutter). */
  --sp-section-y: clamp(52px, 7vh, 84px);
  --sp-page-end:  clamp(120px, 16vh, 200px);
  --sp-kicker:    16px;
  --sp-sub:       20px;
  --sp-block:     clamp(44px, 6vh, 72px);
  --sp-cta:       40px;
  --gutter:       clamp(18px, 4vw, 44px);
  --measure:      1200px;

  background: #FFFFFF; /* html/body base — smoke canvas sits over this at z-index:-1 */
  color: var(--text);
}
/* the dark cinematic overlays make no sense on white — off */
body.landing::before,
body.landing::after { content: none; }
/* greyscale smoke canvas (cinematic.js, page-aware) drifts behind everything;
   dark-page film grain stays off — the smoke carries the texture here */
body.landing #shaderBg {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
body.landing .film-grain { display: none; }
/* light scrollbars + selection */
body.landing ::-webkit-scrollbar-thumb { background: rgba(20,20,20,0.18); }
body.landing ::-webkit-scrollbar-thumb:hover { background: rgba(20,20,20,0.30); }
body.landing ::selection { background: rgba(20,20,20,0.14); }
/* cascade.css greens must never leak onto the landing chrome */
body.landing .dot-live { background: #141414; }
body.landing .hero-frame-bar .dot-live { background: #9D9E9C; } /* sits on the dark frame bar */
body.landing .field:focus-within { border-color: rgba(20,20,20,0.45); }

/* ── progressive enhancement gates ──────────────────────────────────────── */
/* hidden ONLY when the fx stack is alive; no JS → fully visible */
html.fx-init .lx-hide { opacity: 0; }
html.fx-safety .lx-hide { opacity: 1 !important; transform: none !important; }
html.fx-safety [data-split] * { opacity: 1 !important; transform: none !important; }

/* Lenis recommended base */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* native-anchor fallback (no Lenis) clears the fixed nav */
#markets, #rails, #suite, #access { scroll-margin-top: 80px; }

body.landing {
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}

.landing main { position: relative; z-index: 1; background: transparent; }

/* primary CTA — monochrome ink pill (black on white), defined here so the
   landing never touches cascade.css's green button system */
.btn-ink {
  background: #141414;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-ink:hover { background: #000000; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.btn-ink:active { background: #2A2A2A; transform: translateY(1px); }

/* shared CTA sizing on top of .btn-ink / cascade.css .btn-dark */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  will-change: transform;
}
.btn-cta .kbd {
  /* neutral keycap chip on the ink pill */
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-weight: 600;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-cta-lg { padding: 16px 30px; font-size: 15px; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
/* scrolled: paper-thin blur scrim only — no white block, smoke still visible */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(20, 20, 20, 0.06);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 24px; height: 24px; }
.logo-mark-sm svg { width: 20px; height: 20px; }
.nav-word {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-indent: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 14px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--text); }
/* active section state — scroll-spy (landing.js) sets .active */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 1.5px;
  background: var(--text);
  transition: right .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--text); }
.x-glyph { width: 14px; height: 14px; }
.tg-glyph { width: 16px; height: 16px; }
/* icon links: no underline rail under the glyphs */
.nav-links a.nav-icon::after { content: none; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
/* social icons in the nav-right — explicit monochrome; no UA blue */
.nav-right .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  -webkit-text-decoration: none;
  transition: color .15s;
}
.nav-right .nav-icon:hover { color: var(--text); }
.nav-login {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s;
}
.nav-login:hover { color: var(--text); }
.nav-cta { padding: 10px 18px; font-size: 13px; }

/* ── THEME TOGGLE — sun/moon, forwards to window.OBXTheme.toggle() ──────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); }
.theme-toggle svg { width: 17px; height: 17px; }
/* show the theme you'd switch TO: moon in light, sun in dark */
.theme-toggle .tt-sun { display: none; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .theme-toggle .tt-sun { display: block; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .theme-toggle .tt-moon { display: none; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* top clears the fixed nav (deliberate, larger than the section beat) */
  padding: clamp(140px, 19vh, 220px) var(--gutter) var(--sp-section-y);
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  overflow-x: clip; /* the hero glow bleeds wide by design — never widen the page */
}
.hero-h {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0 auto;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-h em {
  font-style: normal;
  color: var(--text); /* entire headline is black — strictly monochrome */
}
.hero-body {
  margin: 24px auto 0;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-cta);
  flex-wrap: wrap;
}

/* hero product visual — the terminal as a 3D OBJECT: angled product-shot
   perspective (CSS base → works with zero JS), continuous float, cursor
   tilt (cinematic.js fx-tilt) and a long soft ground shadow beneath */
.hero-visual {
  position: relative;
  margin: clamp(56px, 9vh, 110px) auto 0; /* deliberate — hero showpiece beat */
  max-width: 1080px;
  perspective: 1600px;
  perspective-origin: 50% 30%;
}
/* the angled stage — GSAP scrubs this flat as you scroll past the hero */
.hero-angle {
  transform-style: preserve-3d;
  transform: rotateX(13deg) rotateY(-11deg);
  will-change: transform;
}
/* continuous float — the object never sits still */
.hero-float {
  transform-style: preserve-3d;
  animation: hero-bob 7.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-bob {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50%      { transform: translateY(-13px) rotateZ(0.45deg); }
}
/* the product frame stays DARK — the app on the light page (correct contrast) */
.hero-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  background: #0F0F0E;
  /* layered depth shadows — near-contact crisp, mid ambient, far throw */
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.14),
    0 18px 38px rgba(0, 0, 0, 0.16),
    0 52px 110px rgba(0, 0, 0, 0.20);
  will-change: transform;
}
/* long soft ground shadow — anchors the floating object to the page */
.hero-shadow {
  position: absolute;
  left: 6%;
  right: -10%;
  bottom: -9%;
  height: 18%;
  z-index: 0;
  background: radial-gradient(58% 62% at 46% 50%, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.07) 55%, transparent 76%);
  filter: blur(24px);
  transform: skewX(-22deg) scaleY(0.62);
  pointer-events: none;
}
/* Static demo shot is the old colour terminal (green candles) — desaturate so the
   landing stays monochrome. Red isn't load-bearing on a still image. */
.hero-frame img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.04); }
.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #050505;
}
.hero-frame-label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9D9E9C; /* stays light — it sits on the dark frame bar */
}
.hero-glow {
  position: absolute;
  inset: -8% -14%;
  z-index: 0;
  background: radial-gradient(54% 60% at 50% 64%, rgba(20, 20, 20, 0.08), rgba(20, 20, 20, 0.025) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
}

/* ── TRUST STRIP ────────────────────────────────────────────────────────── */
.trust {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--sp-section-y) var(--gutter);
  text-align: center;
}
.trust-label { margin-bottom: var(--sp-kicker); }
.trust-row {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
  padding: 0;
}
.trust-mark {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color .25s;
  white-space: nowrap;
}
.trust-mark:hover { color: var(--text-muted); }
.trust-sep { color: var(--text-dim); opacity: 0.5; }
.trust-note { margin-top: var(--sp-kicker); font-size: 12.5px; color: var(--text-dim); }

/* ── SECTIONS (shared) ──────────────────────────────────────────────────── */
.section {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--sp-section-y) var(--gutter);
  text-align: center;
}
.section-kicker { margin-bottom: var(--sp-kicker); color: var(--text-dim); }
.section-h {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.section-sub {
  margin: var(--sp-sub) auto 0;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-muted);
  max-width: 58ch;
}

/* ── ONE ENGINE. THREE WAYS. — feature cards ────────────────────────────── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--sp-block);
  text-align: left;
}
.asset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
  padding: 30px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.asset-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px); /* no-JS fallback lift — JS tilt overrides */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.08),
    0 36px 72px rgba(0, 0, 0, 0.12);
}

/* ── 3D TILT CARDS — perspective container, content raised in Z ─────────── */
.asset-grid, .suite-grid, .flow { perspective: 1100px; }
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* inner layers rise to different Z depths on hover — depth inside the card */
.tilt-card .asset-ico,
.tilt-card h3,
.tilt-card p,
.tilt-card .asset-meta,
.tilt-card .asset-link,
.tilt-card .suite-route,
.tilt-card .suite-cta {
  transform: translateZ(0);
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tilt-card:hover .asset-ico   { transform: translateZ(36px); }
.tilt-card:hover h3           { transform: translateZ(26px); }
.tilt-card:hover p            { transform: translateZ(14px); }
.tilt-card:hover .asset-meta  { transform: translateZ(22px); }
.tilt-card:hover .asset-link  { transform: translateZ(28px); }
.tilt-card:hover .suite-route { transform: translateZ(30px); }
.tilt-card:hover .suite-cta   { transform: translateZ(28px); }
.asset-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 20px;
}
.asset-ico svg { width: 21px; height: 21px; }
.asset-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.asset-card p { font-size: 13.5px; color: var(--text-muted); min-height: 3.2em; }
.asset-meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.asset-meta .chip { padding: 5px 11px; font-size: 11px; gap: 6px; }
.chip-live { color: var(--text-muted); border-color: var(--border); }
.chip-live .dot-live { width: 6px; height: 6px; }
.lev { color: var(--text); font-weight: 600; }
/* quiet in-card link to the real page */
.asset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.asset-link span { transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1); }
.asset-link:hover span { transform: translateX(3px); }

/* ── SIGNAL → EXECUTION — flow diagram ──────────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: auto 120px auto 120px auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-block);
}
.flow-col { display: flex; flex-direction: column; gap: 18px; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.flow-ico { color: var(--text-muted); font-size: 15px; line-height: 1; }

.flow-wires { width: 120px; height: 220px; display: block; }
.flow-wires .wire {
  fill: none;
  stroke: rgba(20, 20, 20, 0.14);
  stroke-width: 1.5;
}
/* ink pulses — monochrome wire animation */
.flow-wires .pulse {
  stroke: #141414;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10 130;
  stroke-dashoffset: 140;
  opacity: 0.9;
  animation: wire-flow 2.6s linear infinite;
}
.flow-wires .pulse:nth-of-type(5) { animation-delay: 0.9s; }
.flow-wires .pulse:nth-of-type(6) { animation-delay: 1.7s; }
@keyframes wire-flow { to { stroke-dashoffset: 0; } }
.flow-wires-r .pulse { animation-duration: 3.2s; }

.flow-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-card-lg);
  padding: 30px 34px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}
.flow-core-glow {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 20, 20, 0.07), rgba(20, 20, 20, 0.02) 58%, transparent 75%);
  filter: blur(14px);
  animation: bloom-pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}
.flow-core-mark { width: 40px; height: 40px; }
.flow-core-mark svg { width: 32px; height: 32px; }
.flow-core .label { color: var(--text); letter-spacing: 0.14em; }
.flow-core-sub { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }

.rails-foot { margin-top: var(--sp-cta); font-size: 13px; color: var(--text-dim); }

/* ── THE FULL SURFACE — product page grid ───────────────────────────────── */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--sp-block);
  text-align: left;
}
.suite-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card-lg);
  padding: 26px 24px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.suite-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px); /* no-JS fallback lift — JS tilt overrides */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.08),
    0 36px 72px rgba(0, 0, 0, 0.12);
}
.suite-route {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  margin-bottom: 16px;
}
.suite-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.suite-card p { font-size: 13px; color: var(--text-muted); flex: 1 1 auto; }
.suite-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.suite-cta span { transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1); }
.suite-card:hover .suite-cta span { transform: translateX(3px); }


/* ── WAITLIST ───────────────────────────────────────────────────────────── */
.waitlist { max-width: 860px; } /* deliberate — narrow measure for a single form */
.wl-form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: var(--sp-cta);
  flex-wrap: wrap;
}
.wl-field { width: min(380px, 100%); padding: 4px 4px 4px 18px; border-radius: var(--r-pill); }
.wl-field input { text-align: left; font-size: 14px; height: 40px; }
.wl-done {
  margin-top: var(--sp-cta);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.wl-err { margin-top: 16px; font-size: 13px; color: #D9304A; }

/* ── FINAL CTA ──────────────────────────────────────────────────────────── */
.final { padding-bottom: var(--sp-page-end); } /* deliberate — page-end exhale */
.final-h {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.final-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-cta);
  flex-wrap: wrap;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 1;
  background: transparent;
  border-top: 1px solid var(--border);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px var(--gutter) 56px;
  text-align: center;
}
.foot-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-social { display: flex; align-items: center; justify-content: center; gap: 20px; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.foot-social a:hover { color: var(--text); }
.foot-social .x-glyph { width: 16px; height: 16px; }
.foot-social .tg-glyph { width: 18px; height: 18px; }
.foot-map {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.foot-map a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.foot-map a:hover { color: var(--text); }
.foot-legal {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.foot-legal p { font-size: 11.5px; color: var(--text-dim); max-width: 68ch; margin: 0 auto; text-align: center; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; margin-left: 8px; }
}

@media (max-width: 1024px) {
  .asset-grid { gap: 14px; }
  .asset-card { padding: 26px 22px; }
  .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 980px) {
  /* 5 page links + 2 glyphs no longer fit beside the CTA — footer site map
     carries the same destinations */
  .nav-links { display: none; }
}

@media (max-width: 860px) {
  .asset-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .asset-card p { min-height: 0; }

  /* flow diagram stacks vertically; wires become a glowing spine */
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .flow-col { align-items: center; }
  .flow-wires { display: none; }
  .flow-in, .flow-out { position: relative; }
  .flow-core { margin: 26px 0; }
  .flow-in::after, .flow-out::before {
    content: '';
    display: block;
    width: 1.5px;
    height: 26px;
    margin: 14px auto 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.0), rgba(20, 20, 20, 0.45));
  }
  .flow-out::before { margin: 0 auto 14px; transform: scaleY(-1); }
  .flow-in::after { position: relative; }
}

@media (max-width: 760px) {
  .nav { gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav-right { gap: 12px; }
  .nav-login { display: none; }
  /* gentler product-shot angle on small screens — keeps the UI legible */
  .hero-angle { transform: rotateX(8deg) rotateY(-6deg); }
  .hero-shadow { left: 4%; right: -4%; bottom: -6%; transform: skewX(-14deg) scaleY(0.6); }
}

@media (max-width: 640px) {
  .suite-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .hero { padding-top: 118px; }
  .hero-ctas .btn-ghost, .hero-ctas .btn-cta { width: 100%; justify-content: center; }
  .final-ctas .btn-ghost, .final-ctas .btn-cta { width: 100%; justify-content: center; }
  .wl-form { flex-direction: column; align-items: stretch; }
  .wl-form .btn-cta { justify-content: center; }
  .foot-top, .foot-legal { flex-direction: column; align-items: center; }
}

/* ── reduced motion: freeze the theatrics, keep the premium look ────────── */
@media (prefers-reduced-motion: reduce) {
  .flow-wires .pulse,
  .flow-core-glow,
  .hero-float { animation: none !important; }
  .asset-card, .asset-card:hover,
  .suite-card, .suite-card:hover { transform: none; }
  .tilt-card .asset-ico, .tilt-card h3, .tilt-card p, .tilt-card .asset-meta,
  .tilt-card .asset-link, .tilt-card .suite-route, .tilt-card .suite-cta {
    transform: none !important;
    transition: none !important;
  }
  .btn-cta, .hero-frame { transition: none; }
  /* the static angled product shot stays — depth without motion */
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK THEME — html[data-theme="dark"] (set by /js/theme.js before paint).
   Same layout, same copy, near-black canvas: bg #050505, text #FFFFFF,
   muted #9D9E9C, panels #0F0F0E, borders rgba(255,255,255,0.08).
   Still strictly monochrome — white ink on black, zero accent color.
   These selectors out-rank every light rule above (incl. media queries),
   so source order never matters.
═══════════════════════════════════════════════════════════════════════════ */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing {
  --bg:          transparent;
  --surface:     rgba(15, 15, 14, 0.72);
  --surface-2:   rgba(22, 22, 23, 0.80);
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.16);
  --text:        #FFFFFF;
  --text-muted:  #9D9E9C;
  --text-dim:    #6E6F6D;
  background: #050505;
}

/* the greyscale smoke shader (cinematic.js paints grey plumes on white) is
   re-read for black in CSS only: invert flips white→black and the grey
   plumes→faint LIGHT smoke; a touch of brightness lifts the plumes so they
   still drift visibly on #050505. cinematic.js untouched. */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing #shaderBg {
  filter: invert(1) brightness(1.45);
  opacity: 0.9;
}

/* dark scrollbars + selection */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.30); }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing ::selection { background: rgba(255,255,255,0.22); }

/* monochrome chrome — live dots go light; frame-bar dot already sits on dark */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .dot-live { background: #FFFFFF; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .hero-frame-bar .dot-live { background: #9D9E9C; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .field:focus-within { border-color: rgba(255,255,255,0.45); }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .wl-err { color: #FF5566; }

/* primary CTA inverts: white ink pill on black */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .btn-ink { background: #FFFFFF; color: #050505; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .btn-ink:hover { background: #E9E9E7; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55); }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .btn-ink:active { background: #D6D6D4; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .btn-cta .kbd {
  background: rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.22);
  color: #050505;
}

/* nav stays transparent in dark theme — smoke (inverted to light plumes) shows through */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .nav { background: transparent; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .nav.scrolled {
  background: rgba(5, 5, 5, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* product frames stay dark in BOTH themes (they're app screenshots) —
   only their rims adapt so they don't melt into the black canvas */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .hero-frame { border-color: rgba(255, 255, 255, 0.14); }

/* ink-on-white glows + wires re-inked white-on-black */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .hero-glow {
  background: radial-gradient(54% 60% at 50% 64%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 55%, transparent 75%);
}
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-wires .wire { stroke: rgba(255, 255, 255, 0.16); }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-wires .pulse { stroke: #FFFFFF; }
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-core-glow {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 58%, transparent 75%);
}
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-core { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
/* stacked mobile flow spine */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-in::after,
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .flow-out::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.45));
}

/* black drop-shadows vanish on black — borders carry the card lift instead */
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .asset-card:hover,
:is(html[data-theme="dark"],html[data-theme="matrix"],html[data-theme="tron"],html[data-theme="akira"]) body.landing .suite-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.40), 0 14px 28px rgba(0, 0, 0, 0.50);
}

/* footer legal links row */
.foot-legal-links { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; margin:18px 0 8px; }
.foot-legal-links a { color:var(--text-muted); text-decoration:none; font-size:13px; transition:color .15s; }
.foot-legal-links a:hover { color:var(--text); }

/* ── pricing tiers ────────────────────────────────────────────────────── */
.pricing { text-align: center; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; margin: 44px auto 0; perspective: 1100px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; } }
/* raised 3D stone — mirrors the .asset-card / tilt-card treatment */
.price-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 28px 24px; border-radius: var(--r-card-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.04), 0 18px 40px -24px rgba(10,12,20,0.30);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.price-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 4px rgba(0,0,0,0.05), 0 14px 28px rgba(0,0,0,0.08), 0 40px 78px -34px rgba(10,12,20,0.34);
}
.price-card.featured { border-color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 26px 64px -30px rgba(10,12,20,0.34); }
/* inner layers rise in Z on hover — depth inside the card */
.price-card .price-name, .price-card .price-amt, .price-card .price-tag,
.price-card .price-feats, .price-card .price-cta, .price-card .price-badge {
  transform: translateZ(0); transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.price-card:hover .price-name { transform: translateZ(30px); }
.price-card:hover .price-amt  { transform: translateZ(34px); }
.price-card:hover .price-tag  { transform: translateZ(16px); }
.price-card:hover .price-feats { transform: translateZ(20px); }
.price-card:hover .price-cta  { transform: translateZ(28px); }
.price-card:hover .price-badge { transform: translateZ(40px); }
.price-badge { position: absolute; top: -11px; left: 24px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--text); color: var(--bg); }
.price-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.price-amt { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin: 8px 0 2px; line-height: 1; }
.price-amt span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-tag { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 18px; }
.price-feats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); }
.price-feats li::before { content: '✓'; position: absolute; left: 2px; top: 0; color: var(--text); font-weight: 800; }
.price-feats strong { color: var(--text); }
.price-cta { width: 100%; justify-content: center; }

/* ── Pro / Lite preview showcase ──────────────────────────────────────── */
.showcase { text-align: center; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1040px; margin: 44px auto 0; }
@media (max-width: 820px) { .showcase-grid { grid-template-columns: 1fr; max-width: 560px; } }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot-btn { position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; border-radius: var(--r-card-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.04), 0 22px 48px -28px rgba(10,12,20,0.34);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.shot-btn img { display: block; width: 100%; height: auto; }
.shot-btn:hover { transform: translateY(-4px); border-color: var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 4px rgba(0,0,0,0.05), 0 36px 72px -34px rgba(10,12,20,0.4); }
.shot-zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(8,9,12,0.62); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); opacity: 0; transform: scale(0.85); transition: opacity .2s, transform .2s; }
.shot-zoom svg { width: 17px; height: 17px; }
.shot-btn:hover .shot-zoom { opacity: 1; transform: scale(1); }
.shot figcaption { font-size: 13px; color: var(--text-muted); }
.shot figcaption b { color: var(--text); font-weight: 600; }

/* lightbox */
.lbx { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center;
  padding: 4vmin; background: rgba(4,5,7,0.86); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .22s ease; cursor: zoom-out; }
.lbx[hidden] { display: none; }
.lbx.show { opacity: 1; }
.lbx-img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
  transform: scale(0.97); transition: transform .22s ease; }
.lbx.show .lbx-img { transform: scale(1); }
.lbx-close { position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(20,22,28,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.16); cursor: pointer; }
.lbx-close:hover { background: rgba(40,42,50,0.85); }
.lbx-close svg { width: 20px; height: 20px; }
