:root {
  --home-bg: #070a10;
  --home-bg-soft: #0b0f17;
  --home-panel: #0f141d;
  --home-panel-2: #111824;
  --home-line: rgba(166, 181, 204, .16);
  --home-line-strong: rgba(180, 195, 220, .28);
  --home-text: #eef3f9;
  --home-muted: #98a5b7;
  --home-faint: #687487;
  --home-blue: #8ab4ff;
  --home-violet: #aa8dff;
  --home-teal: #35d1bc;
  --home-red: #ff667a;
  --home-max: 1240px;
  --home-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--home-bg); }
body.home-body {
  margin: 0;
  min-width: 320px;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.home-body::selection { background: rgba(138,180,255,.25); color: white; }
a { color: inherit; }
button, input, select { font: inherit; }

.home-shell { min-height: 100vh; overflow: clip; }
.home-wrap { width: min(var(--home-max), calc(100% - 48px)); margin: 0 auto; }
.home-rule { border-top: 1px solid var(--home-line); }
.home-kicker {
  margin: 0 0 16px;
  color: var(--home-blue);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.home-section-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 690;
}
.home-copy {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--home-muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}

.home-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  border-bottom: 1px solid rgba(166,181,204,.10);
  background: rgba(7,10,16,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-header .home-wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.home-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.home-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--home-line-strong);
  border-radius: 9px;
  font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #0c1119;
}
.home-brand-copy { display: grid; line-height: 1; gap: 4px; }
.home-brand-copy strong { font-size: 14px; letter-spacing: .14em; }
.home-brand-copy small { color: var(--home-faint); font-size: 10px; letter-spacing: .04em; }
.home-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.home-nav a { color: #aeb9c8; text-decoration: none; font-size: 13px; transition: color .16s ease; }
.home-nav a:hover { color: white; }
.home-header-cta {
  margin-left: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--home-line-strong);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7f9fc !important;
  background: #111823;
}
.home-menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--home-line); border-radius: 10px; background: transparent; color: white; }

.home-hero {
  min-height: 830px;
  padding: 154px 0 74px;
  display: flex;
  align-items: center;
}
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); align-items: center; gap: clamp(44px, 6vw, 96px); }
.home-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(56px, 6.25vw, 96px);
  line-height: .91;
  letter-spacing: -.064em;
  font-weight: 690;
}
.home-hero h1 span { color: #a9b7c9; font-weight: 480; }
.home-hero p { margin: 28px 0 0; max-width: 610px; color: var(--home-muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.home-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.home-button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  border: 1px solid var(--home-line-strong);
  text-decoration: none;
  font-weight: 660;
  font-size: 14px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.home-button:hover { transform: translateY(-1px); border-color: rgba(203,215,234,.5); }
.home-button.primary { background: #edf4ff; color: #08101b; border-color: transparent; }
.home-button.secondary { background: #0e141d; color: #e8edf5; }
.home-hero-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--home-faint); font-size: 12px; }
.home-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--home-teal); box-shadow: 0 0 14px rgba(53,209,188,.7); }

.home-terminal-frame {
  position: relative;
  border: 1px solid var(--home-line-strong);
  border-radius: 16px;
  background: #080c13;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  overflow: hidden;
}
.home-terminal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.home-terminal-bar { height: 48px; padding: 0 15px; display: flex; align-items: center; border-bottom: 1px solid var(--home-line); background: #0a0f17; }
.home-terminal-market { display: flex; gap: 10px; align-items: center; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.home-terminal-market span { color: var(--home-faint); font-weight: 500; }
.home-terminal-status { margin-left: auto; display: flex; gap: 8px; }
.home-chip { border: 1px solid var(--home-line); border-radius: 999px; padding: 5px 8px; color: #8794a7; font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.home-chip.live { color: #8ce5d8; border-color: rgba(53,209,188,.22); }
.home-chart-stage { position: relative; height: 460px; }
.home-chart-stage canvas, .replay-canvas-wrap canvas, .phone-chart canvas { width: 100%; height: 100%; display: block; }
.home-chart-caption { position: absolute; left: 17px; bottom: 14px; color: #697688; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; pointer-events: none; }
.home-terminal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--home-line); }
.home-terminal-metrics div { padding: 15px 16px; border-right: 1px solid var(--home-line); }
.home-terminal-metrics div:last-child { border-right: 0; }
.home-terminal-metrics span { display: block; color: var(--home-faint); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.home-terminal-metrics strong { display: block; margin-top: 7px; color: #dbe5f3; font-size: 13px; font-weight: 620; }

.home-system-strip { border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-system-grid { min-height: 94px; display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); align-items: stretch; }
.home-system-grid > div { padding: 22px 24px; border-right: 1px solid var(--home-line); display: flex; flex-direction: column; justify-content: center; }
.home-system-grid > div:last-child { border-right: 0; }
.home-system-grid span { color: var(--home-faint); font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
.home-system-grid strong { margin-top: 7px; color: #cbd5e3; font-size: 13px; font-weight: 600; }
.home-system-grid .lead strong { color: white; font-size: 16px; }

.home-section { padding: 132px 0; }
.home-process { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.home-section-rail { padding-top: 5px; }
.home-section-rail .home-copy { font-size: 16px; }
.home-process-list { border-top: 1px solid var(--home-line); }
.home-process-row { display: grid; grid-template-columns: 72px .52fr 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--home-line); align-items: start; }
.home-process-row .num { color: #637083; font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.home-process-row h3 { margin: -3px 0 0; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; font-weight: 630; }
.home-process-row p { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.65; }

.home-replay { padding: 122px 0 136px; background: #080c12; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-replay-head { display: grid; grid-template-columns: 1fr .72fr; gap: 80px; align-items: end; }
.home-replay-head .home-copy { margin: 0 0 5px; }
.replay-demo { margin-top: 58px; border: 1px solid var(--home-line-strong); border-radius: 16px; background: #070b11; overflow: hidden; }
.replay-demo-head { min-height: 56px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--home-line); gap: 12px; }
.replay-demo-head strong { font-size: 13px; }
.replay-demo-head span { color: var(--home-faint); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.replay-progress { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.replay-progress i { width: 7px; height: 7px; border-radius: 50%; background: #243040; }
.replay-progress i.active { background: var(--home-blue); }
.replay-canvas-wrap { position: relative; height: 500px; }
.replay-readout { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--home-line); }
.replay-readout div { min-height: 72px; padding: 17px 20px; border-right: 1px solid var(--home-line); }
.replay-readout div:last-child { border-right: 0; }
.replay-readout span { display: block; color: var(--home-faint); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .09em; }
.replay-readout strong { display: block; margin-top: 8px; color: #dce5f2; font: 620 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.home-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.home-evidence-card { border-top: 1px solid var(--home-line-strong); padding-top: 26px; }
.home-evidence-card h3 { margin: 0 0 14px; font-size: 25px; letter-spacing: -.035em; }
.home-evidence-card p { margin: 0; color: var(--home-muted); font-size: 16px; line-height: 1.7; }
.home-metric-placeholder { margin-top: 32px; border-top: 1px solid var(--home-line); }
.home-metric-placeholder div { min-height: 68px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--home-line); }
.home-metric-placeholder span { color: #b8c2d0; font-size: 14px; }
.home-metric-placeholder strong { color: var(--home-faint); font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.home-context { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.home-context-stack { border-top: 1px solid var(--home-line); }
.home-context-item { padding: 22px 0; border-bottom: 1px solid var(--home-line); display: grid; grid-template-columns: 150px 1fr; gap: 24px; }
.home-context-item strong { color: #d5deea; font-size: 14px; font-weight: 630; }
.home-context-item p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.6; }

.home-markets { padding-top: 0; }
.market-table { margin-top: 46px; border-top: 1px solid var(--home-line-strong); }
.market-row { min-height: 84px; display: grid; grid-template-columns: 1fr 1fr .8fr; align-items: center; border-bottom: 1px solid var(--home-line); transition: background .15s ease; }
.market-row:hover { background: rgba(255,255,255,.018); }
.market-row strong { font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.market-row span { color: var(--home-muted); font-size: 14px; }
.market-row small { color: var(--home-faint); font-size: 12px; justify-self: end; }

.home-mobile-section { background: #0a0e15; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-mobile-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 110px; align-items: center; }
.home-phone-wrap { min-height: 650px; display: flex; justify-content: center; align-items: center; }
.home-phone { width: 310px; border: 1px solid #354052; border-radius: 40px; padding: 10px; background: #05070b; box-shadow: 0 30px 75px rgba(0,0,0,.38); }
.home-phone-screen { overflow: hidden; border-radius: 31px; background: #080c12; border: 1px solid rgba(255,255,255,.04); }
.phone-top { height: 50px; padding: 0 15px; display: flex; align-items: center; border-bottom: 1px solid var(--home-line); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.phone-top span { margin-left: auto; color: var(--home-teal); }
.phone-chart { height: 330px; }
.phone-readout { padding: 16px; border-top: 1px solid var(--home-line); }
.phone-readout span { color: var(--home-faint); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.phone-readout strong { display: block; margin-top: 7px; font-size: 14px; }
.phone-tabs { height: 58px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--home-line); }
.phone-tabs span { display: grid; place-items: center; color: #707e91; font-size: 9px; }
.phone-tabs span:first-child { color: #d6e4f7; }

.home-pricing { padding-bottom: 150px; }
.pricing-intro { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; }
.pricing-intro .home-copy { margin: 0; }
.pricing-grid { margin-top: 58px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; align-items: stretch; }
.price-card { border: 1px solid var(--home-line-strong); border-radius: 15px; padding: 30px; background: #0a0f16; }
.price-card.featured { background: #101722; }
.price-card .price-label { color: var(--home-faint); font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
.price-card h3 { margin: 26px 0 0; font-size: 20px; font-weight: 620; }
.price-card .price { margin-top: 16px; font-size: 54px; letter-spacing: -.05em; font-weight: 700; }
.price-card .price small { color: var(--home-muted); font-size: 14px; letter-spacing: 0; font-weight: 500; }
.price-card p { min-height: 54px; color: var(--home-muted); font-size: 14px; line-height: 1.6; }
.price-card ul { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--home-line); }
.price-card li { padding: 12px 0; border-bottom: 1px solid var(--home-line); color: #b8c3d1; font-size: 13px; }
.price-card .home-button { width: 100%; }
.pricing-note { margin-top: 18px; color: var(--home-faint); font-size: 12px; }

.home-final { padding: 100px 0 108px; border-top: 1px solid var(--home-line); }
.home-final-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.home-final h2 { margin: 0; font-size: clamp(40px, 5vw, 78px); letter-spacing: -.055em; line-height: .95; }
.home-final p { margin: 18px 0 0; color: var(--home-muted); max-width: 650px; }

.home-footer { border-top: 1px solid var(--home-line); padding: 28px 0 40px; }
.home-footer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.home-footer strong { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.home-footer p { margin: 0; color: var(--home-faint); font-size: 11px; line-height: 1.65; }
.home-footer-links { margin-top: 18px; display: flex; gap: 18px; }
.home-footer-links a { color: var(--home-muted); font-size: 12px; text-decoration: none; }

@media (max-width: 1040px) {
  .home-wrap { width: min(var(--home-max), calc(100% - 36px)); }
  .home-nav { gap: 18px; }
  .home-hero { padding-top: 132px; min-height: auto; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 800px; }
  .home-terminal-frame { max-width: 860px; }
  .home-process, .home-context, .home-evidence, .home-mobile-grid, .pricing-intro { grid-template-columns: 1fr; gap: 48px; }
  .home-replay-head { grid-template-columns: 1fr; gap: 24px; }
  .home-system-grid { grid-template-columns: 1fr 1fr 1fr; }
  .home-system-grid .lead { grid-column: span 3; border-bottom: 1px solid var(--home-line); }
  .home-phone-wrap { min-height: 540px; justify-content: flex-start; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .home-wrap { width: min(100% - 28px, var(--home-max)); }
  .home-header { height: 62px; }
  .home-brand-copy small { display: none; }
  .home-nav {
    position: fixed;
    top: 62px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--home-line-strong);
    border-radius: 13px;
    background: #0c1119;
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
  }
  .home-nav.open { display: grid; }
  .home-nav a { padding: 13px 12px; }
  .home-header-cta { margin-left: 0; }
  .home-menu { display: grid; place-items: center; }
  .home-hero { padding: 112px 0 54px; }
  .home-hero-grid { gap: 42px; }
  .home-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .home-hero p { font-size: 16px; }
  .home-actions { display: grid; grid-template-columns: 1fr; }
  .home-button { width: 100%; }
  .home-chart-stage { height: 330px; }
  .home-terminal-status .home-chip:nth-child(2) { display: none; }
  .home-terminal-metrics { grid-template-columns: 1fr 1fr; }
  .home-terminal-metrics div:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--home-line); }
  .home-system-grid { grid-template-columns: 1fr 1fr; }
  .home-system-grid .lead { grid-column: span 2; }
  .home-system-grid > div { padding: 18px 14px; }
  .home-section { padding: 88px 0; }
  .home-section-title { font-size: 42px; }
  .home-process-row { grid-template-columns: 42px 1fr; gap: 18px; }
  .home-process-row p { grid-column: 2; margin-top: -5px; }
  .home-replay { padding: 82px 0 94px; }
  .replay-canvas-wrap { height: 360px; }
  .replay-readout { grid-template-columns: 1fr 1fr; }
  .replay-readout div:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--home-line); }
  .home-context-item { grid-template-columns: 1fr; gap: 8px; }
  .market-row { grid-template-columns: .7fr 1fr; }
  .market-row small { display: none; }
  .home-phone-wrap { min-height: auto; justify-content: center; padding-top: 12px; }
  .home-phone { width: min(310px, 88vw); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card p { min-height: 0; }
  .home-final-grid, .home-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
