:root {
  --bg: #000000;
  --bg-2: #060606;
  --bg-card: #0d0d0d;
  --bg-elevated: #111111;
  --border: #1a1a1a;
  --border-bright: #2a2a2a;
  --fg: #e2e8f0;
  --fg-dim: #64748b;
  --fg-dimmer: #334155;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ─── NAV ─── */
.terminal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent); }
.logo-name { color: var(--fg); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: #000 !important;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-grid-bg {
  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.35;
  pointer-events: none;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, #000 80%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-headline-group { }
.hero-headline {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 420px;
}

/* Terminal box */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06), 0 24px 60px rgba(0,0,0,0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  font-size: 11px;
  color: var(--fg-dimmer);
  letter-spacing: 0.04em;
}
.terminal-body { padding: 16px 20px; }
.t-line {
  color: var(--fg-dim);
  line-height: 1.9;
  font-size: 12.5px;
}
.t-gap { margin-top: 8px; }
.t-dim { color: var(--fg-dimmer); margin-right: 8px; }
.t-cmd { color: var(--fg); }
.t-success { color: var(--green); }
.t-highlight { color: var(--amber); }
.t-profit { color: var(--green); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  display: inline-block;
  padding: 14px 24px;
  color: var(--fg-dim);
  font-family: var(--font-head);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-dim); }
.btn-large { padding: 16px 36px; font-size: 15px; }

/* ─── SHARED SECTION ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 48px;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.step-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dimmer);
  margin-bottom: 20px;
}
.step-icon { margin-bottom: 16px; }
.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}
.step-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

/* ─── STATS ─── */
.stats-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat-item { padding: 16px 40px 16px 0; }
.stat-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dimmer);
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ─── SECURITY ─── */
.security-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.security-desc {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 32px;
}
.security-facts { display: flex; flex-direction: column; gap: 12px; }
.fact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-dim);
}
.fact-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.risk-meter { margin-bottom: 40px; }
.risk-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.risk-bar-wrap {
  height: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.risk-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--accent));
  border-radius: 2px;
  max-width: 10%;
}
.risk-values {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dimmer);
  letter-spacing: 0.06em;
}
.fee-breakdown {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
}
.fee-row:last-child { border-bottom: none; }
.fee-row.highlight { background: var(--bg-elevated); }
.fee-val {
  font-family: var(--font-mono);
  color: var(--fg);
  font-size: 13px;
}
.fee-row.highlight .fee-val { color: var(--amber); }

/* ─── CLOSING ─── */
.closing-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.closing-content { text-align: center; max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--fg);
}
.closing-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-cta-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dimmer);
  letter-spacing: 0.04em;
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-dim);
}
.footer-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dimmer);
  letter-spacing: 0.06em;
}
.footer-sep { color: var(--fg-dimmer); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-divider { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-divider { display: none; }
  .security-layout { grid-template-columns: 1fr; }
  .nav-links .nav-link:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 100px; }
  .hero-headline { font-size: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 12px 0; }
  .hero-terminal { font-size: 11px; }
}