:root {
  --bg: #050811;
  --surface: #0b1220;
  --surface2: #111827;
  --accent: #00E5FF;
  --accent2: #8B5CF6;
  --fg: #F0F4FF;
  --fg2: #94A3B8;
  --fg3: #475569;
  --border: rgba(255,255,255,0.07);
  --radius: 14px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ── NAV ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.12) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg2);
  max-width: 620px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.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: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg3);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-line { color: var(--fg); }
.terminal-line.muted { color: var(--fg2); }
.terminal-line.success { color: #00E5FF; }
.prompt { color: var(--accent2); margin-right: 10px; }

/* ── FEATURES ────────────────────────────────────── */
.features {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--fg2);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── HOW ────────────────────────────────────────── */
.how {
  padding: 100px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner { max-width: 1100px; margin: 0 auto; }

.how-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.how-content { }

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-bottom: 40px;
}

.comp-col { }

.comp-header {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px 10px 0 0;
  margin-bottom: 2px;
}

.old .comp-header { color: var(--fg2); }
.new .comp-header { color: var(--accent); border-bottom: 2px solid var(--accent); }

.comp-item {
  padding: 12px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.old .comp-item { color: var(--fg3); }
.new .comp-item { color: var(--fg); }

.comp-divider {
  width: 1px;
  background: var(--border);
  margin: 0 32px;
}

.how-tagline {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg2);
}

/* ── CLOSING ─────────────────────────────────────── */
.closing {
  padding: 140px 40px;
  text-align: center;
}

.closing-inner { max-width: 760px; margin: 0 auto; }

.closing-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.closing-body {
  color: var(--fg2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.closing-statement {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.7;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg3);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .features { padding: 80px 20px; }
  .how { padding: 80px 20px; }
  .comparison { grid-template-columns: 1fr; gap: 24px; }
  .comp-divider { display: none; }
  .closing { padding: 80px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
