:root {
  --bg: #06060a;
  --bg-surface: #0d0d16;
  --fg: #f0f0f5;
  --fg-muted: #6b7280;
  --accent: #00e5ff;
  --accent-dim: #00e5ff22;
  --green: #10b981;
  --yellow: #f59e0b;
  --border: #1a1a2e;
  --terminal-bg: #0a0a10;
  --terminal-border: #1e1e2e;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo {
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.nav-brand { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero-content { max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-left { max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #a0a0b5;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* TERMINAL */
.hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 600px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.08) inset;
}
.terminal-bar {
  background: #0e0e18;
  padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid var(--terminal-border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #4a4a6a;
  margin-left: 0.5rem;
}
.terminal-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.t-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}
.t-chain {
  background: rgba(0,229,255,0.15);
  color: var(--accent);
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  text-align: center;
}
.t-pool { color: #8888aa; }
.t-yield { font-weight: 600; font-size: 0.8rem; }
.t-tvl { color: #555; font-size: 0.72rem; }
.t-scan {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin-top: 0.25rem;
}
.scan-bar {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: scan 1.5s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes scan {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* METRICS */
.metrics {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.metrics-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.metric { text-align: center; }
.metric-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.metric-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
  display: block;
}
.metric-sep {
  width: 1px; height: 40px;
  background: var(--border);
}

/* FEATURES */
.features {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.features-header { margin-bottom: 3rem; }
.features-header h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.feature:hover { border-color: rgba(0,229,255,0.3); }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  background-image: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.4), transparent 70%);
}
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.7; }

/* VISION */
.vision {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.vision-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.vision-text h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.vision-text p { color: #a0a0b5; font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.vision-stats { display: flex; flex-direction: column; gap: 2rem; }
.v-stat { border-left: 2px solid var(--accent); padding-left: 1.5rem; }
.v-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg);
  letter-spacing: -0.04em;
}
.v-desc { display: block; color: var(--fg-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* CLOSING */
.closing {
  padding: 6rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.closing p { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.7; }

/* FOOTER */
.footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-logo {
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
}
.footer-name { font-weight: 600; }
.footer-tagline { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-copy { color: #3a3a4a; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .metrics-inner { justify-content: center; }
  .metric-sep { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .vision-inner { grid-template-columns: 1fr; gap: 2rem; }
  .t-row { grid-template-columns: 40px 1fr auto; }
  .t-tvl { display: none; }
  .hero-terminal { max-width: 100%; }
}