:root {
  --bg-deep: #0a0a0f;
  --bg-card: #111119;
  --bg-elevated: #1a1a25;
  --border: #222233;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent: #00e5a0;
  --accent-dim: #00c888;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --red: #ff4466;
  --green: #00e5a0;
  --amber: #ffbb33;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.92);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-cta {
  display: inline-block;
  padding: 9px 22px;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 16px rgba(0, 229, 160, 0.2);
}

.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.35);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px; /* extra top for fixed nav */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,160,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,229,160,0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
}

/* ---- HERO CTA ---- */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #0a0a0f;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0, 229, 160, 0.25);
}

.cta-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 229, 160, 0.4);
}

.cta-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 480px;
  width: 100%;
  text-align: left;
}

.hero-terminal .line {
  margin-bottom: 6px;
}

.hero-terminal .prompt {
  color: var(--accent);
}

.hero-terminal .val-green {
  color: var(--green);
}

.hero-terminal .val-amber {
  color: var(--amber);
}

/* ---- STATS ---- */
.stats {
  padding: 60px 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(0,229,160,0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 80px 24px 100px;
  max-width: 700px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 24px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.closing h2 .accent {
  color: var(--accent);
}

.closing p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 36px;
}

.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

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

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

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-brand {
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats {
    gap: 32px;
  }

  .hero-terminal {
    font-size: 0.75rem;
    padding: 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .features,
  .how {
    padding: 60px 16px;
  }

  .closing {
    padding: 60px 16px;
  }
}
