/* ============================================================
   SpaceTime Parking — product-first, high-tech, dark
   Register: Stripe/Apple. The scroll demo is the one theatrical
   moment; everything else sells the product in few words.
   Palette: deep purple canvas, white + subtle silver.
   ============================================================ */

/* self-hosted fallback fonts (system sans is primary) */
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/Jost-400i.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/Jost-300.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/Jost-400.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/Jost-500.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/Jost-600.woff2') format('woff2'); }

:root {
  --ink: #0b0616;
  --night: #150a28;
  --royal: #57068c;
  --violet: #7b2fbe;
  --mist: #a78fd0;
  --silver: #c9c7d6;
  --silver-dim: #8f8ba3;
  --white: #f4f2fa;
  --glass-bg: rgba(244, 242, 250, 0.045);
  --glass-line: rgba(201, 199, 214, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--white); }
strong { color: var(--white); font-weight: 600; }
.dim { color: var(--silver-dim); }

/* ---------- product typography ---------- */
h1, h2, h3, h4 { color: var(--white); font-weight: 650; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.kicker {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mist); margin-bottom: 1rem;
}
.section-head { max-width: 820px; margin: 0 auto 3.2rem; text-align: center; padding: 0 1.5rem; }
.section-head h2 { margin-bottom: 0.9rem; }
.lede { font-size: 1.12rem; color: var(--silver); max-width: 40em; margin: 0 auto; }

/* ---------- glass = the crisp data surface ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(5, 2, 12, 0.55), inset 0 1px 0 rgba(244,242,250,0.07);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--white); color: var(--ink);
  box-shadow: 0 8px 30px rgba(244, 242, 250, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(244, 242, 250, 0.28); }
.btn-ghost { color: var(--silver); border-color: var(--glass-line); background: transparent; }
.btn-ghost:hover { color: var(--white); border-color: var(--silver); }

/* ============================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(11, 6, 22, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(11, 6, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--glass-line);
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-brand img { width: 30px; height: 30px;  }
.nav-brand span { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--silver);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { border: 1px solid var(--glass-line); border-radius: 10px; padding: 0.45rem 1rem; }
.nav-cta:hover { border-color: var(--mist); }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(52% 42% at 50% -6%, rgba(123, 47, 190, 0.34), transparent 70%),
    radial-gradient(40% 34% at 82% 68%, rgba(87, 6, 140, 0.26), transparent 70%),
    radial-gradient(36% 30% at 12% 78%, rgba(87, 6, 140, 0.18), transparent 70%),
    var(--ink);
}
/* faint engineering grid that fades toward the middle */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(201, 199, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 199, 214, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(65% 55% at 50% 42%, transparent 30%, #000 85%);
  mask: radial-gradient(65% 55% at 50% 42%, transparent 30%, #000 85%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 7rem 1.5rem 4rem; }
.hero-content h1 { margin-bottom: 1.3rem; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--silver); max-width: 36em; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.2rem; }

/* mini live-feed teaser */
.hero-panel { max-width: 620px; margin: 0 auto; padding: 1rem 1.2rem; text-align: left; }
.hp-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 650; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem;
}
.hp-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; padding: 0.45rem 0;
  border-top: 1px solid rgba(201, 199, 214, 0.08);
}
.hp-note { flex: 1; color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-amt { color: var(--white); font-weight: 600; }

/* plate + type badges (shared: hero teaser + demo feed) */
.plate {
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.78rem; color: var(--white);
  background: rgba(244,242,250,0.08); border: 1px solid var(--glass-line);
  border-radius: 4px; padding: 0.05rem 0.4rem; white-space: nowrap;
}
.kind { font-size: 0.62rem; font-weight: 650; letter-spacing: 0.12em; border-radius: 4px; padding: 0.12rem 0.4rem; white-space: nowrap; }
.kind-monthly { color: #9ecbff; border: 1px solid rgba(158, 203, 255, 0.35); }
.kind-commercial { color: #d7b8ff; border: 1px solid rgba(215, 184, 255, 0.35); }
.kind-event { color: #ffd8a8; border: 1px solid rgba(255, 216, 168, 0.35); }
.kind-transient { color: #b8f5c8; border: 1px solid rgba(184, 245, 200, 0.35); }
.kind-exit { color: var(--silver-dim); border: 1px solid rgba(143, 139, 163, 0.35); }

.live-tag {
  font-size: 0.62rem; font-weight: 650; letter-spacing: 0.18em;
  color: #b8f5c8; border: 1px solid rgba(184, 245, 200, 0.4); border-radius: 4px; padding: 0.1rem 0.4rem;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee89a; box-shadow: 0 0 10px #7ee89a; animation: pulse 1.6s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ============================================================ OUTCOMES */
.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem;
  max-width: 1100px; margin: 0 auto; padding: 6.5rem 2rem 1rem;
}
.outcome { border-top: 1px solid var(--glass-line); padding-top: 1.4rem; }
.outcome h3 { font-size: 1.45rem; margin-bottom: 0.55rem; }
.outcome p { font-size: 0.98rem; color: var(--silver); }

/* ============================================================ DEMO */
.demo-wrap { padding: 7rem 0 0; }
.demo-track { height: 1040vh; position: relative; }
.demo-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; padding: 4.6rem 2rem 1.6rem;
  background: linear-gradient(180deg, var(--demo-sky-top, #0b0616) 0%, var(--demo-sky-bot, #150a28) 100%);
  transition: background 0.5s linear;
  overflow: hidden;
}

/* centered analog clock — hands sweep as you scroll */
.demo-clockwrap {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.demo-clockwrap, .demo-grid { position: relative; z-index: 1; }
.clock-face {
  position: relative; width: 112px; height: 112px; border-radius: 50%;
  border: 1.5px solid rgba(201, 199, 214, 0.45);
  background: radial-gradient(circle at 38% 32%, rgba(244, 242, 250, 0.08), rgba(21, 10, 40, 0.75) 70%);
  box-shadow: 0 14px 40px rgba(5, 2, 12, 0.6), inset 0 1px 0 rgba(244, 242, 250, 0.1), 0 0 26px rgba(123, 47, 190, 0.25);
}
.clock-face::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-conic-gradient(from -1.5deg, rgba(233, 227, 247, 0.55) 0deg 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 45% 52%, transparent 53%);
  mask: radial-gradient(circle, transparent 0 44%, #000 45% 52%, transparent 53%);
}
.clock-hand {
  position: absolute; left: 50%; bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 3px; pointer-events: none; will-change: transform;
}
.clock-hour { width: 3.5px; height: 27px; margin-left: -1.75px; background: var(--white); }
.clock-min { width: 2px; height: 41px; margin-left: -1px; background: var(--mist); }
.clock-pin {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--white); box-shadow: 0 0 8px rgba(244, 242, 250, 0.7);
}
@media (max-height: 820px) {
  .clock-face { width: 88px; height: 88px; }
  .clock-hour { height: 20px; }
  .clock-min { height: 31px; }
}
.demo-day { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); font-weight: 600; }
.demo-progress {
  width: 130px; height: 3px; border-radius: 2px;
  background: rgba(201, 199, 214, 0.18); overflow: hidden;
}
.demo-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--white));
  border-radius: 2px;
}
.demo-hint { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim); }

/* sun & moon arc across the demo sky with the time of day */
.demo-sun, .demo-moon {
  position: absolute; top: 0; left: 0; width: 72px; height: 72px;
  border-radius: 50%; z-index: 0; pointer-events: none;
  will-change: transform, opacity; display: none;
}
.demo-sun {
  background: radial-gradient(circle at 38% 35%, #fff6d8, #ffd98a 55%, #e8a44c);
  box-shadow: 0 0 50px 18px rgba(255, 214, 140, 0.35), 0 0 150px 65px rgba(255, 190, 110, 0.14);
}
.demo-moon {
  background: radial-gradient(circle at 38% 35%, #ffffff, #e6e2f2 55%, #beb8d6);
  box-shadow: 0 0 40px 12px rgba(236, 232, 248, 0.35), 0 0 130px 55px rgba(200, 190, 235, 0.16);
}

.demo-grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 1.4rem; width: 100%; max-width: 1180px; align-items: stretch;
  min-height: 0; flex: 0 1 auto;
}
/* The panel's box height is defined by the garage column (the stable one).
   Its content lives in an absolutely positioned frame so nothing it does —
   feed rows, counters — can ever change the layout's size. */
.panel { position: relative; padding: 0; min-height: 0; }
.panel-inner {
  position: absolute; inset: 0;
  padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.panel h3 {
  font-size: 0.88rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* THEM — a slim, deliberately hazy strip under the garage */
.them-bar {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.55rem 1rem; border-radius: 10px;
  background: rgba(38, 22, 66, 0.5);
  border: 1px solid rgba(143, 139, 163, 0.12);
  filter: blur(0.5px);
  color: var(--silver-dim);
}
.them-title { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; font-weight: 600; }
.them-text { font-size: 0.9rem; font-style: italic; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* US — crisp */
.panel-us { color: var(--silver); transition: box-shadow 0.35s ease, border-color 0.35s ease; }
.panel-us.lit {
  border-color: rgba(244, 242, 250, 0.6);
  box-shadow: 0 18px 50px rgba(5, 2, 12, 0.55), 0 0 44px rgba(123, 47, 190, 0.55), inset 0 1px 0 rgba(244, 242, 250, 0.12);
}
.us-counters { display: flex; gap: 1.3rem; margin-bottom: 0.9rem; }
.us-counters > div { flex: 1; } /* fixed thirds — numbers changing width can't shift columns */
.counter-num { font-size: 1.5rem; font-weight: 650; color: var(--white); display: block; letter-spacing: -0.01em; }
.counter-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); font-weight: 600; }

/* labeled feed columns */
.feed-head {
  display: flex; gap: 0.6rem;
  font-size: 0.58rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--silver-dim);
  padding-bottom: 0.35rem; border-bottom: 1px solid var(--glass-line);
}
.fh-plate { width: 72px; }
.fh-type { width: 92px; }
.fh-note { flex: 1; }
.feed { list-style: none; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.feed li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; padding: 0.42rem 0;
  border-bottom: 1px solid rgba(201, 199, 214, 0.08);
  animation: feedin 0.45s ease both;
}
@keyframes feedin { from { opacity: 0; transform: translateY(-6px); } }
.feed .plate { width: 72px; text-align: center; }
.feed .kind { width: 92px; text-align: center; }
.feed .note { flex: 1; color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .amt { color: var(--white); font-weight: 600; white-space: nowrap; }
.feed li.system { color: var(--mist); font-style: italic; }

/* bird's-eye garage */
.garage-col { display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; min-width: 0; }
.garage-view {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1.5px solid rgba(201, 199, 214, 0.35);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(87, 6, 140, 0.16), rgba(21, 10, 40, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(201, 199, 214, 0.035) 46px 47px),
    #17092e;
  box-shadow: 0 24px 60px rgba(5, 2, 12, 0.6), inset 0 0 60px rgba(5, 2, 12, 0.5);
  overflow: hidden;
}
.aisle-mark {
  position: absolute; left: 3%; right: 3%; top: 50%; height: 0;
  border-top: 2px dashed rgba(201, 199, 214, 0.25);
  transform: translateY(-50%);
}
.gate {
  position: absolute; bottom: 2.5%;
  font-size: 0.58rem; letter-spacing: 0.22em; color: var(--mist);
  text-transform: uppercase; font-weight: 600;
}
.gate-entry { left: 3.2%; }
.gate-exit { right: 2.6%; }

.spot2 {
  position: absolute;
  border: 1px dashed rgba(201, 199, 214, 0.3);
  border-radius: 3px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.spot2.occupied { border-color: rgba(244, 242, 250, 0.5); border-style: solid; box-shadow: 0 0 12px rgba(236, 232, 248, 0.12); }

/* cars — JS positions them; base orientation = nose up */
.car2 {
  position: absolute; width: 5.2%; height: 10.5%;
  border-radius: 34% 34% 42% 42% / 22% 22% 30% 30%;
  background: linear-gradient(180deg, #e6e1f4, #a79cce);
  box-shadow: 0 0 12px rgba(236, 232, 248, 0.35);
  will-change: transform;
  pointer-events: none;
}
.car2::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 22%; height: 22%;
  border-radius: 40%; background: rgba(21, 10, 40, 0.55);
}
.car2::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 3%; height: 7%;
  border-radius: 50%;
  background: radial-gradient(circle at 15% 50%, #fff8d8 0 30%, transparent 40%),
              radial-gradient(circle at 85% 50%, #fff8d8 0 30%, transparent 40%);
}
.car2.kind-event-car { background: linear-gradient(180deg, #ffe4c0, #d9a86a); box-shadow: 0 0 12px rgba(255, 216, 168, 0.4); }

/* classifier cards: car → center screen (hold) → SpaceTime panel */
.chip {
  position: absolute; top: 0; left: 0; z-index: 6;
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.5rem 0.75rem; border-radius: 9px;
  background: rgba(21, 10, 40, 0.94);
  border: 1px solid rgba(201, 199, 214, 0.5);
  box-shadow: 0 10px 34px rgba(5, 2, 12, 0.7), 0 0 20px rgba(123, 47, 190, 0.4);
  font-size: 0.62rem; letter-spacing: 0.02em; color: var(--white);
  white-space: nowrap; pointer-events: none;
  will-change: transform, opacity;
}
.chip-row { display: flex; align-items: center; gap: 0.55rem; }
.chip-sub { font-size: 0.56rem; color: var(--silver); }
.chip .chip-plate {
  font-family: ui-monospace, 'SF Mono', monospace; color: var(--white);
  background: rgba(244, 242, 250, 0.1); border: 1px solid rgba(201, 199, 214, 0.35);
  border-radius: 4px; padding: 0.06rem 0.4rem;
}
.chip .chip-gl { font-weight: 650; letter-spacing: 0.08em; color: var(--mist); }
.chip .chip-amt { font-weight: 650; color: #b8f5c8; }
.chip-exit { border-color: rgba(143, 139, 163, 0.5); }

.garage-caption { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-dim); text-align: center; font-weight: 600; }

/* ============================================================ SECTIONS */
.section { padding: 6.5rem 2rem; max-width: 1140px; margin: 0 auto; }

/* plain-facts: deliberately unstyled — the bluntness IS the design */
.section-plain { padding-top: 5rem; padding-bottom: 4rem; }
.plain { max-width: 640px; margin: 0 auto; }
.plain h2 { font-size: 1.6rem; margin-bottom: 1.6rem; }
.plain-facts { list-style: none; }
.plain-facts li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(201, 199, 214, 0.12);
  font-size: 1.05rem; color: var(--silver); line-height: 1.5;
}
.plain-facts li:last-child { color: var(--white); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.card { padding: 1.5rem; }
.card h4 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.93rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-copy h2 { margin-bottom: 1.2rem; }
.checks { list-style: none; }
.checks li {
  position: relative; padding: 0.5rem 0 0.5rem 1.9rem;
  font-size: 1.05rem; color: var(--silver);
}
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0.45rem;
  color: #7ee89a; font-weight: 700;
}

.pnl { padding: 1.8rem; font-size: 0.95rem; position: relative; }
/* neon purple trace that travels around the P&L box */
@property --trace-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pnl::before, .pnl::after {
  content: ""; position: absolute; inset: -2px; border-radius: 16px;
  padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--trace-angle),
    transparent 0deg, transparent 306deg,
    rgba(123, 47, 190, 0.85) 334deg,
    #dcc4fb 352deg,
    rgba(244, 242, 250, 0.95) 357deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: pnl-trace 4.5s linear infinite;
}
.pnl::after { filter: blur(8px); opacity: 0.85; } /* the neon halo */
@keyframes pnl-trace { to { --trace-angle: 360deg; } }
.pnl-title {
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.1rem; display: flex; justify-content: space-between; align-items: center;
}
.pnl-tag { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--mist); border: 1px solid var(--glass-line); border-radius: 4px; padding: 0.1rem 0.45rem; }
.pnl-row { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid rgba(201, 199, 214, 0.08); }
.pnl-sub { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--glass-line); }
.pnl-total { color: var(--white); font-weight: 700; font-size: 1.05rem; border-bottom: none; padding-top: 0.8rem; }
.pnl-foot { margin-top: 1rem; font-size: 0.78rem; color: var(--silver-dim); }

.stl-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.6rem; }
.stl-item { border-left: 1px solid var(--glass-line); padding: 0.3rem 0 0.3rem 1.3rem; }
.stl-item h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.stl-item p { font-size: 0.92rem; }
.partner-line { text-align: center; font-size: 1rem; color: var(--silver); }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: 3.6rem; }
.steps li { text-align: center; padding: 0 0.6rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line);
  color: var(--white); font-size: 1.05rem; font-weight: 650; margin-bottom: 0.9rem;
  background: radial-gradient(circle at 35% 30%, rgba(123, 47, 190, 0.35), transparent 70%);
}
.steps h4 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.steps p { font-size: 0.88rem; }

/* ---------- diagonal light beam (Stripe-style) through the security section ----
   a soft royal-purple streak sweeps the section; the headline's gradient is
   clipped into the text so the letters over the beam shift color */
.section-beam { position: relative; overflow: visible; }
/* a SPOTLIGHT cone shining down from the top right onto the headline;
   the lit words shift color, the words outside the pool of light stay white */
.beam {
  position: absolute; top: -6%; left: 8%; width: 84%; height: 130%;
  pointer-events: none;
  background: conic-gradient(from 196deg at 72% 0%,
    transparent 0deg,
    rgba(123, 47, 190, 0.16) 6deg,
    rgba(123, 47, 190, 0.5) 15deg,
    rgba(87, 6, 140, 0.55) 24deg,
    rgba(123, 47, 190, 0.14) 33deg,
    transparent 40deg);
  filter: blur(22px);
}
.beam::before { /* the lamp — bright source at the apex */
  content: ""; position: absolute; left: 72%; top: -2%;
  width: 130px; height: 46px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 242, 250, 0.7), rgba(203, 179, 239, 0.35) 55%, transparent);
  filter: blur(6px);
}
.section-beam .section-head, .section-beam .cards { position: relative; z-index: 1; }
/* words inside the pool of light glow lavender; the rest stay white */
.section-beam .section-head h2 {
  background: linear-gradient(104deg, var(--white) 28%, #e9dcff 44%, #c9a8f5 56%, #a884e0 66%, var(--white) 84%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.section-beam .section-head .lede {
  background: linear-gradient(104deg, var(--silver) 30%, #d8c6f2 55%, #b9a0e2 66%, var(--silver) 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- under the hood: code rising out of the background + glowing chart ---------- */
.section-code { position: relative; overflow: hidden; max-width: none; }
.section-code.reveal { opacity: 1; transform: none; }
.code-bg {
  position: absolute; inset: -2% -2% -2% 0; z-index: 0;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 15px; line-height: 1.9;
  color: rgba(180, 144, 234, 0.10);
  white-space: pre; overflow: hidden;
  user-select: none; pointer-events: none;
  -webkit-mask: linear-gradient(112deg, #000 0%, rgba(0,0,0,0.55) 38%, transparent 72%);
  mask: linear-gradient(112deg, #000 0%, rgba(0,0,0,0.55) 38%, transparent 72%);
}
.code-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.2rem; align-items: center;
  max-width: 1140px; margin: 0 auto;
}
.code-copy h2 { margin-bottom: 1.4rem; }
.code-card { padding: 1.2rem 1.4rem; overflow-x: auto; }
.code-card code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.86rem; line-height: 1.75; color: var(--silver);
}
.code-card .ck { color: #b490ea; }   /* keywords */
.code-card .cs { color: #b8f5c8; }   /* strings */
.code-card .cc { color: var(--silver-dim); font-style: italic; } /* comments */
.code-note { margin-top: 1rem; font-size: 0.95rem; color: var(--silver); }

.chart-card { padding: 1.4rem 1.5rem 1.1rem; }
.chart-title {
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
}
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: rgba(201, 199, 214, 0.10); stroke-width: 1; }
.chart .ticks text, .chart .months text {
  font-family: var(--font-sans); font-size: 11px; fill: var(--silver-dim);
}
.chart .ticks text { text-anchor: end; }
.chart .months text { text-anchor: middle; }
.chart .end-label {
  font-family: var(--font-sans); font-size: 13px; font-weight: 650;
  fill: var(--white); text-anchor: end;
}
.chart-line {
  fill: none; stroke: #b490ea; stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(180, 144, 234, 0.55));
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.8s ease 0.2s;
}
.section-code.in .chart-line { stroke-dashoffset: 0; }
.chart-area { opacity: 0; transition: opacity 1.2s ease 1.2s; }
.section-code.in .chart-area { opacity: 1; }
/* light-up marbles */
.marble {
  fill: url(#marble);
  filter: drop-shadow(0 0 7px rgba(220, 196, 251, 0.85));
  opacity: 0; transform: scale(0.4); transform-origin: center; transform-box: fill-box;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.5, 0.5, 1);
}
.section-code.in .marble { opacity: 1; transform: scale(1); }
.marble-hit { fill: transparent; cursor: pointer; }
.marble-hit:hover + .marble, .marble.hot {
  filter: drop-shadow(0 0 14px rgba(244, 242, 250, 0.95));
}
.chart-tip {
  position: absolute; z-index: 2; pointer-events: none;
  background: rgba(21, 10, 40, 0.95);
  border: 1px solid rgba(201, 199, 214, 0.45); border-radius: 7px;
  padding: 0.3rem 0.6rem; font-size: 0.78rem; color: var(--white);
  transform: translate(-50%, -130%); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(5, 2, 12, 0.6);
}

/* ---------- aurora backdrop for the getting-started/contact section ----------
   calm, slightly wavy, multi-color (royal purple / violet / silver / white);
   fades in when the section scrolls into view */
.section-aurora { position: relative; overflow: hidden; max-width: none; }
.section-aurora.reveal { opacity: 1; transform: none; } /* the section itself never hides — only its backdrop fades */
.section-aurora > *:not(.aurora-bg) { position: relative; z-index: 1; max-width: 1140px; margin-left: auto; margin-right: auto; }
.aurora-bg {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s ease;
  background: linear-gradient(180deg, var(--ink) 0%, #1c0e38 22%, #251349 55%, #180a2e 100%);
}
.section-aurora.in .aurora-bg { opacity: 1; }
.ab {
  position: absolute; border-radius: 50%;
  filter: blur(85px); will-change: transform;
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
.ab1 { width: 58vw; height: 42vh; left: -12vw; top: 8%; background: var(--royal); opacity: 0.5; }
.ab2 { width: 48vw; height: 36vh; right: -8vw; top: 34%; background: var(--violet); opacity: 0.32; animation-delay: -9s; animation-duration: 32s; }
.ab3 { width: 44vw; height: 30vh; left: 26vw; bottom: 4%; background: var(--silver); opacity: 0.10; animation-delay: -17s; animation-duration: 38s; }
.ab4 { width: 26vw; height: 20vh; left: 52vw; top: 12%; background: var(--white); opacity: 0.07; animation-delay: -23s; animation-duration: 30s; }
@keyframes aurora-drift {
  from { transform: translate(-3%, 2%) scale(1); }
  to { transform: translate(4%, -3%) scale(1.08); }
}
.aurora-wave {
  position: absolute; left: 0; width: 200%; height: 90px;
  animation: aurora-roll 42s linear infinite;
}
.aurora-wave path { stroke-width: 1.5; }
.aw1 { top: 16%; }
.aw1 path { stroke: rgba(201, 199, 214, 0.22); }
.aw2 { bottom: 12%; animation-duration: 55s; animation-direction: reverse; }
.aw2 path { stroke: rgba(167, 143, 208, 0.20); }
@keyframes aurora-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* contact form */
.contact { max-width: 620px; margin: 0 auto; padding: 2.3rem; text-align: center; }
.contact h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; text-align: left; }
.form-wide { grid-column: 1 / -1; }
.contact label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.contact input {
  display: block; width: 100%; margin-top: 0.4rem;
  background: rgba(244, 242, 250, 0.05);
  border: 1px solid var(--glass-line); border-radius: 10px;
  color: var(--white); font-family: var(--font-sans); font-size: 1rem;
  padding: 0.7rem 0.9rem; outline: none;
  transition: border-color 0.25s;
}
.contact input:focus { border-color: var(--mist); }
.form-note { margin-top: 1.1rem; font-size: 0.84rem; color: var(--silver-dim); }
.form-note a { color: var(--silver); }

/* ============================================================ FOOTER */
.footer { text-align: center; padding: 4rem 2rem 3rem; border-top: 1px solid rgba(201, 199, 214, 0.1); }
.footer img { width: 36px; border-radius: 8px; margin-bottom: 0.7rem; }
.footer p { font-size: 0.92rem; font-weight: 600; color: var(--silver); }
.footer .dim { font-weight: 400; margin-top: 0.4rem; font-size: 0.8rem; }

/* ============================================================ reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ responsive */
@media (max-width: 960px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .code-grid { grid-template-columns: 1fr; gap: 2rem; }
  .demo-track { height: 1200vh; }
  .demo-grid { grid-template-columns: 1fr; }
  .panel { height: 34vh; } /* stacked layout: garage no longer defines the row, so fix it */
  .outcomes, .stl-strip, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hp-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .ab, .aurora-wave { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* matrix-style binary field in the hero — above the glow, below the text */
.hero-binary { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
