/* ===========================================================
   TOKENS
   =========================================================== */
:root{
  --bg: #0B0E14;
  --surface: #131822;
  --surface-2: #1B222E;
  --border: #232B3A;
  --text: #ECEEF2;
  --text-muted: #7C8699;
  --text-faint: #4C5568;
  --gold: #E8A33D;
  --gold-dim: #6B5730;
  --mint: #3ECF8E;
  --red: #E5484D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
svg{ display:block; }

/* subtle film-grain / noise overlay for texture */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===========================================================
   LAYOUT HELPERS
   =========================================================== */
.section{ max-width: var(--container); margin: 0 auto; padding: 120px 32px; }
.section--alt{ background: var(--surface); max-width: none; padding-left: 0; padding-right: 0; }
.section--alt > *{ max-width: var(--container); margin-left:auto; margin-right:auto; padding-left:32px; padding-right:32px; }
.section--alt > .steps{ padding-left:32px; padding-right:32px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow--center{ text-align: center; }

.section__title{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 780px;
}
.section__title--center{ text-align: center; margin: 0 auto 20px; }

.section__sub{
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin-top: 16px;
}
.section__sub--center{ text-align: center; margin-left: auto; margin-right: auto; }

/* ===========================================================
   NAV
   =========================================================== */
.nav{
  position: sticky; top:0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11,14,20,0.78);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  max-width: var(--container); margin: 0 auto; padding: 18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.wordmark{
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  letter-spacing: 0.06em; display:flex; align-items:center; gap:8px;
}
.wordmark__tick{ color: var(--gold); font-size: 12px; }
.nav__links{ display:flex; gap: 32px; }
.nav__links a{
  font-size: 14px; color: var(--text-muted); transition: color .15s ease;
}
.nav__links a:hover{ color: var(--text); }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent; cursor:pointer;
}
.btn--primary{
  background: var(--gold); color: #16130B;
}
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,163,61,0.25); }
.btn--lg{ padding: 15px 26px; font-size: 15.5px; }
.btn--sm{ padding: 9px 16px; font-size: 13.5px; }
.btn--ghost{
  border-color: var(--border); color: var(--text);
}
.btn--ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn--text{ color: var(--text-muted); padding: 12px 4px; }
.btn--text:hover{ color: var(--text); }

/* ===========================================================
   HERO
   =========================================================== */
.hero{ max-width: var(--container); margin: 0 auto; padding: 88px 32px 70px; }
.hero__inner{
  display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center;
}
.hero__title{
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.1;
  margin-bottom: 22px;
}
.hero__title-accent{ color: var(--gold); }
.hero__sub{
  color: var(--text-muted); font-size: 17px; max-width: 480px; margin-bottom: 32px;
}
.hero__actions{ display:flex; align-items:center; gap: 8px; margin-bottom: 18px; }
.hero__note{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

/* hero chart card — signature element */
.hero__chart-card{
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  opacity: 0; transform: translateY(14px);
  animation: card-in .7s ease forwards .15s;
}
@keyframes card-in{ to{ opacity:1; transform:none; } }

.chart-card__head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 18px; }
.chart-card__label{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-muted); }
.chart-card__sub{ font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.ticker{
  display:flex; align-items:center; gap:6px; font-family: var(--font-mono);
  font-size: 11px; color: var(--mint); letter-spacing: 0.08em;
}
.ticker__dot{
  width:6px; height:6px; border-radius:50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(62,207,142,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(62,207,142,0.55); }
  70%{ box-shadow: 0 0 0 7px rgba(62,207,142,0); }
  100%{ box-shadow: 0 0 0 0 rgba(62,207,142,0); }
}

.chart-card__value-row{ display:flex; align-items:baseline; gap:12px; margin-bottom: 6px; }
.chart-card__value{ font-family: var(--font-mono); font-size: 30px; font-weight: 600; }
.chart-card__delta{ font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.chart-card__delta--up{ color: var(--mint); }
.chart-card__delta--down{ color: var(--red); }

.hero-svg{ width: 100%; height: 190px; margin-top: 6px; }
.chart-card__foot{
  display:flex; justify-content:space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
  padding-top: 6px; border-top: 1px solid var(--border);
}

.main-dot{ opacity: 0; animation: dot-in .4s ease forwards; }
@keyframes dot-in{ to{ opacity: 1; } }

/* ===========================================================
   STAT STRIP
   =========================================================== */
.stat-strip{ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stat-strip__inner{
  max-width: var(--container); margin: 0 auto; padding: 34px 32px;
  display:grid; grid-template-columns: repeat(4,1fr);
}
.stat{
  text-align:center; border-left: 1px solid var(--border);
  display:flex; flex-direction:column; gap:6px;
}
.stat:first-child{ border-left: none; }
.stat__value{ font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--gold); }
.stat__label{ font-size: 12.5px; color: var(--text-muted); }

/* ===========================================================
   PERFORMANCE
   =========================================================== */
.perf-card{
  margin-top: 52px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.perf-card__chart svg{ width:100%; height: auto; }
.perf-card__bars{
  display:grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 18px;
}
.month-bar{ text-align:center; }
.month-bar__track{
  height: 46px; display:flex; align-items:flex-end; justify-content:center; margin-bottom:8px;
}
.month-bar__fill{
  width: 60%; border-radius: 3px 3px 0 0; background: var(--mint);
  transform-origin: bottom; animation: grow .6s ease forwards;
  opacity: 0;
}
.month-bar__fill.is-negative{ background: var(--red); border-radius: 0 0 3px 3px; align-self:flex-start; }
@keyframes grow{ from{ transform: scaleY(0); opacity:0; } to{ transform: scaleY(1); opacity:1; } }
.month-bar__label{ font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

/* ===========================================================
   STEPS
   =========================================================== */
.steps{
  max-width: var(--container); margin: 56px auto 0;
  display:grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.step{
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
}
.step__num{
  display:block; font-family: var(--font-mono); color: var(--gold);
  font-size: 13px; margin-bottom: 14px;
}
.step h3{ font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; font-weight: 600; }
.step p{ color: var(--text-muted); font-size: 14.5px; }

/* ===========================================================
   FEATURES
   =========================================================== */
.features{
  margin-top: 48px; display:grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow:hidden;
}
.feature{ background: var(--bg); padding: 32px 28px; }
.feature__icon{ color: var(--gold); font-size: 20px; margin-bottom: 16px; }
.feature h3{ font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.feature p{ color: var(--text-muted); font-size: 14px; }

/* ===========================================================
   DOWNLOAD
   =========================================================== */
.section--download{ padding-top: 40px; }
.download-card{
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 52px; display:grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items:center;
}
.download-card__left h2{ font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 6px 0 10px; }
.download-card__sub{ color: var(--text-muted); margin-bottom: 26px; }
.download-card__version{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 14px; }

.req-list{ display:flex; flex-direction:column; gap: 12px; }
.req-list li{
  display:flex; justify-content:space-between; font-size: 13.5px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.req-list li span:first-child{ color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px; }
.req-list li span:last-child{ color: var(--text); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer{ border-top: 1px solid var(--border); padding: 56px 32px 40px; }
.footer__inner{ max-width: var(--container); margin: 0 auto; }
.footer__brand p{ color: var(--text-muted); font-size: 13.5px; margin-top: 8px; }
.wordmark--footer{ font-size: 15px; }
.disclaimer{
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-faint); max-width: 760px; line-height: 1.7;
}
.footer__copy{ margin-top: 20px; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; }
  .nav__links{ display:none; }
  .stat-strip__inner{ grid-template-columns: repeat(2,1fr); gap: 24px; }
  .stat{ border-left:none; }
  .steps{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: 1fr; }
  .download-card{ grid-template-columns: 1fr; padding: 32px; }
  .perf-card__bars{ grid-template-columns: repeat(6, 1fr); row-gap: 16px; }
}
