:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --fg-primary: #e8e8ec;
  --fg-secondary: #8a8a9a;
  --fg-muted: #5a5a6a;
  --accent: #00e87b;
  --accent-dim: #00c466;
  --accent-glow: rgba(0, 232, 123, 0.15);
  --accent-glow-strong: rgba(0, 232, 123, 0.25);
  --border: #1e1e2a;
  --border-accent: rgba(0, 232, 123, 0.2);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}

/* === THE LOOP === */
.loop-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.loop-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.loop-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 3.5rem;
}

.loop-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.loop-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  min-width: 60px;
  line-height: 1;
  padding-top: 0.15rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

.loop-connector {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-glow-strong), transparent);
  margin-left: 30px;
}

/* === FEATURES === */
.features-section {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.feature-card-large {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 232, 123, 0.03) 100%);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}

/* === CLOSING === */
.closing-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.closing-rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.closing-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
}

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

/* === RESPONSIVE === */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .loop-step {
    flex-direction: column;
    gap: 0.75rem;
  }
  .step-number {
    font-size: 1.5rem;
  }
  .loop-connector {
    margin-left: 0;
  }
  .loop-section,
  .features-section,
  .closing-section {
    padding: 4rem 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}