/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080B14;
  --surface: #0D1220;
  --surface2: #111827;
  --border: #1A2332;
  --green: #00FF87;
  --green-dim: rgba(0, 255, 135, 0.15);
  --orange: #FF5C35;
  --red: #FF3B3B;
  --text: #F0F4FF;
  --text-dim: #8892A4;
  --text-muted: #4A5568;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  font-size: 20px;
  color: var(--green);
}
.logo-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--green-dim);
  color: var(--green);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,255,135,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.6; box-shadow: 0 0 20px var(--green); }
}
.hero-headline {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.highlight {
  color: var(--green);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto 48px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body { padding: 20px 20px 22px; }
.terminal-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
}
.t-prompt { color: var(--green); }
.t-input { color: var(--text); }
.t-success { color: var(--green); }

/* hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat { padding: 0 28px; text-align: center; }
.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === TICKER === */
.ticker-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--surface);
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 0 24px;
  color: var(--text-dim);
}
.t-up { color: var(--green); }
.t-down { color: var(--red); }
.ticker-sep { color: var(--border); font-size: 8px; }

/* === SECTION SHARED === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.step {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px;
  font-weight: 700;
  color: var(--green-dim);
  margin-bottom: 20px;
  line-height: 1;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.step-connector {
  display: none;
}

/* === FEATURES === */
.features {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(0,255,135,0.3); }
.feature-card.featured {
  border-color: rgba(0,255,135,0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0,255,135,0.03) 100%);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* === MECHANICS === */
.mechanics {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}
.mechanics-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mech-text .section-tag { text-align: left; }
.mech-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}
.mech-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 36px;
}
.mech-facts {
  display: grid;
  gap: 20px;
}
.mech-fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mech-fact-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}
.mech-fact-label {
  font-size: 13px;
  color: var(--text-muted);
}
.mech-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.curve-svg {
  width: 100%;
  height: auto;
}
.curve-labels {
  display: flex;
  justify-content: space-between;
}
.curve-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  padding: 16px 48px;
  text-align: center;
}
.stat-big {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
}
.stat-small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* === CLOSING === */
.closing {
  padding: 120px 24px;
}
.closing-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.closing-title {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 28px;
}
.closing-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .mechanics-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stats-bar { gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .ticker-label { display: none; }
  .hero { padding: 60px 24px 80px; }
}
