/* === TOKENS === */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --bg-3: #18181c;
  --surface: #1c1c21;
  --surface-2: #242429;
  --border: #2a2a31;
  --border-2: #363640;
  --gold: #F5B800;
  --gold-dim: rgba(245, 184, 0, 0.12);
  --gold-border: rgba(245, 184, 0, 0.25);
  --text: #f0eee8;
  --text-2: #a8a69e;
  --text-3: #6b6860;
  --accent: #F5B800;
  --accent-2: #ffcb33;
  --red: #ff4d4d;
  --green: #4dff88;
  --yellow: #ffcb33;

  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 2.5rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
}
.nav-logo-text strong {
  color: var(--text);
  font-weight: 600;
}
.nav-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* === HERO === */
.hero {
  padding: 9rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 46ch;
}
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-card-1 { grid-column: 1 / -1; }
.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.2s;
}
.hero-stat-card:hover { border-color: var(--gold-border); }
.card-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.card-detail {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* === TERMINAL === */
.hero-terminal {
  margin-top: 2.5rem;
  background: #0a0a0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terminal-bar {
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-3);
}
.terminal-body {
  padding: 1.5rem 1.75rem;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  color: #c8c4b8;
}
.t-comment { color: #5a5a4e; font-style: italic; }
.t-key { color: #9d8df1; }
.t-str { color: #98d882; }
.t-num { color: #F5B800; }

/* === SYSTEMS === */
.systems {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.systems-header { text-align: center; margin-bottom: 3rem; }
.systems-header .section-title { margin-bottom: 0; }
.systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s;
}
.system-card:hover { border-color: var(--gold-border); }
.system-card-accent { border-color: var(--gold-border); background: linear-gradient(135deg, var(--surface) 0%, rgba(245,184,0,0.04) 100%); }
.system-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.system-icon { flex-shrink: 0; }
.system-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.system-platform {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.system-lang {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 500;
}
.system-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.system-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.system-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.system-features li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
}
.system-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* === PROCESS === */
.process {
  padding: 5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 3rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
}
.step-connector {
  width: 80px;
  height: 1px;
  background: var(--border-2);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1.25rem;
}

/* === TRUST === */
.trust {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.trust-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 1.25rem;
}
.trust-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* === VISION === */
.vision {
  padding: 5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.vision-body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 60ch;
  margin: 0 auto;
}

/* === CLOSING === */
.closing {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
}
.footer-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.footer-logo-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-2);
}
.footer-logo-text strong { color: var(--text); font-weight: 600; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-3);
  max-width: 48ch;
  line-height: 1.6;
}

/* === PRODUCT HERO === */
.product-hero {
  padding: 8rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(245,184,0,0.04) 0%, transparent 60%);
}
.product-hero-inner { max-width: 700px; margin: 0 auto; }
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 2rem;
}
.product-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}
.product-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.price-tag { display: flex; flex-direction: column; align-items: flex-end; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--text); }
.price-label { font-family: var(--font-display); font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-buy:hover { background: var(--accent-2); transform: translateY(-1px); }
.price-note { font-size: 0.78rem; color: var(--text-3); }

/* === BACKTEST RESULTS === */
.backtest-section {
  padding: 5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.backtest-inner { max-width: 1100px; margin: 0 auto; }
.backtest-header { text-align: center; margin-bottom: 2.5rem; }
.backtest-desc { font-size: 0.92rem; color: var(--text-2); max-width: 55ch; margin: 0.75rem auto 0; line-height: 1.65; }
.backtest-metrics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bm-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s;
}
.bm-cell:hover { border-color: var(--border-2); }
.bm-label { font-family: var(--font-display); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.bm-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.bm-value.bm-gold { color: var(--gold); }
.bm-value.bm-red { color: var(--red); }
.bm-note { font-size: 0.75rem; color: var(--text-3); }
.backtest-disclaimer { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-3); max-width: 65ch; margin: 0 auto; }

/* === INSTALL SECTION === */
.install-section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.install-header { text-align: center; margin-bottom: 3rem; }
.install-steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.install-step { flex: 1; min-width: 260px; max-width: 320px; display: flex; gap: 1.25rem; align-items: flex-start; }
.is-num { flex-shrink: 0; width: 36px; height: 36px; background: var(--gold); color: #000; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.is-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.is-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }
.is-desc kbd { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.78rem; font-family: var(--font-display); color: var(--text); }
.install-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-3); text-align: center; margin-top: 2.5rem; justify-content: center; }
.install-note a { color: var(--gold); text-decoration: none; }
.install-note a:hover { text-decoration: underline; }

/* === PRICING === */
.pricing-section { padding: 5rem 2rem; background: var(--bg-2); border-top: 1px solid var(--border); }
.pricing-inner { max-width: 420px; margin: 0 auto; }
.pricing-card { background: var(--surface); border: 1.5px solid var(--gold-border); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; }
.pc-tag { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.pc-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.pc-desc { font-size: 0.85rem; color: var(--text-2); margin-bottom: 2rem; }
.pc-price { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.pc-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text); }
.pc-type { font-family: var(--font-display); font-size: 0.8rem; color: var(--text-3); }
.pc-features { list-style: none; text-align: left; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pc-features li { font-size: 0.88rem; color: var(--text-2); padding-left: 1.25rem; position: relative; }
.pc-features li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.pc-btn { display: block; background: var(--gold); color: #000; font-family: var(--font-display); font-size: 1rem; font-weight: 700; padding: 0.9rem 2rem; border-radius: var(--radius); text-decoration: none; transition: background 0.2s, transform 0.15s; margin-bottom: 1rem; }
.pc-btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.pc-secure { font-size: 0.72rem; color: var(--text-3); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-right { grid-template-columns: 1fr 1fr; }
  .hero-card-1 { grid-column: auto; }
  .systems-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps { flex-direction: column; gap: 2rem; }
  .step-connector { width: 1px; height: 40px; align-self: center; }
  .trust-metrics { grid-template-columns: 1fr 1fr; }
  .backtest-metrics-grid { grid-template-columns: 1fr 1fr; }
  .bm-main { grid-column: auto; }
  .install-steps { flex-direction: column; align-items: center; }
  .pricing-inner { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-right { grid-template-columns: 1fr; }
  .trust-metrics { grid-template-columns: 1fr; }
  .backtest-metrics-grid { grid-template-columns: 1fr; }
}