:root {
  --bg: #0a0b0f;
  --bg-raised: #111218;
  --bg-card: #16181f;
  --bg-card-hover: #1c1f29;
  --border: #1e2130;
  --border-bright: #2a2e40;
  --text: #e2e4ed;
  --text-dim: #7a7d8e;
  --text-muted: #4a4d60;
  --accent: #00e87c;
  --accent-dim: rgba(0, 232, 124, 0.12);
  --accent-glow: rgba(0, 232, 124, 0.25);
  --green: #00e87c;
  --red: #ff4f5e;
  --yellow: #f5c842;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.logo-bracket { color: var(--text-muted); }
.logo-name { color: var(--text); }
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sections */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow-dash {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 56px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { padding: 0 24px 0 0; }
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 24px;
}

/* Chart Container */
.hero-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.chart-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0, 232, 124, 0.04) 0%, transparent 100%);
  pointer-events: none;
}
.chart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.chart-symbol { color: var(--text); font-weight: 500; }
.chart-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chart-time { color: var(--text-muted); margin-left: auto; }

.candlestick-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  position: relative;
  padding: 8px 0;
}
.candle {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 20px;
}
.candle-green { background: var(--accent); opacity: 0.85; }
.candle-red { background: var(--red); opacity: 0.85; }
.flag-pole {
  position: absolute;
  left: 52%;
  top: 8px;
  width: 2px;
  height: 60px;
  background: var(--accent);
  opacity: 0.4;
}
.flag-marker {
  position: absolute;
  left: 52%;
  top: 8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.flag-text {
  background: var(--accent);
  color: #0a0b0f;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.flag-stem {
  width: 2px;
  height: 20px;
  background: var(--accent);
}
.chart-footer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
}
.chart-price { font-size: 20px; font-weight: 500; color: var(--text); }
.chart-change { font-size: 13px; color: var(--green); }

/* Exec Card */
.exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}
.exec-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.exec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.exec-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}
.exec-line:last-child { border-bottom: none; }
.exec-label { color: var(--text-muted); }
.exec-val { color: var(--text); }
.exec-fill { color: var(--green); }

/* How Section */
.how { padding: 80px 24px; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 20px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.step-icon {
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.step-body { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  color: var(--text-muted);
}

/* Flow Section */
.flow { padding: 80px 24px; background: var(--bg-raised); }
.flow-inner { max-width: 1100px; margin: 0 auto; }
.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  margin-bottom: 20px;
}
.pipeline-node {
  flex: 1;
  max-width: 200px;
  text-align: center;
}
.pipe-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
}
.pipe-icon-tv { background: rgba(0, 232, 124, 0.08); border: 1px solid rgba(0, 232, 124, 0.2); }
.pipe-icon-flag { background: rgba(0, 232, 124, 0.08); border: 1px solid rgba(0, 232, 124, 0.2); }
.pipe-icon-broker { background: rgba(0, 232, 124, 0.08); border: 1px solid rgba(0, 232, 124, 0.2); }
.pipe-label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.pipe-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.pipe-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 0 12px;
}
.pipe-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 3px;
}
.flow-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
}
.note-code { color: var(--text-dim); }
.note-dash { color: var(--text-muted); }

/* Features */
.features { padding: 80px 24px; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 28px 28px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-body { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* Philosophy */
.philosophy { padding: 80px 24px; background: var(--bg-raised); }
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.philosophy-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.philosophy-quote {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 24px;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.philosophy-body { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.philosophy-stat-block { display: flex; flex-direction: column; gap: 0; }
.pstat {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pstat:first-child { border-top: 1px solid var(--border); }
.pstat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.pstat-desc { font-size: 14px; color: var(--text-muted); }

/* Closing */
.closing { padding: 100px 24px; }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}
.closing-prefix, .closing-suffix { color: var(--text-muted); }
.closing-code { color: var(--accent); }
.closing-body {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.closing-dev { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.dev-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Footer */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.footer-note { font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .step-connector { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { flex-direction: column; gap: 24px; }
  .pipe-arrow { transform: rotate(90deg); }
  .pipe-arrow .pipe-tag { transform: rotate(-90deg); }
}