:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e6e3;
  --fg-muted: #8a8899;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-secondary: #a29bfe;
  --green: #00b894;
  --green-glow: rgba(0, 184, 148, 0.2);
  --coral: #fd79a8;
  --yellow: #fdcb6e;
  --red: #ff6b6b;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== TERMINAL ===== */
.hero-visual {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.terminal {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-muted);
}

.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
}

.terminal-line {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}

.terminal-line.active {
  opacity: 1;
}

.t-prompt {
  color: var(--accent);
  font-weight: 600;
}

.t-action {
  color: var(--fg);
  flex: 1;
}

.t-check {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.t-spinner {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PROBLEM ===== */
.problem {
  padding: 120px 24px;
  background: var(--bg);
}

.problem-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.problem-text {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.problem-card.highlight {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 184, 148, 0.1));
  border-color: var(--accent);
}

.problem-icon {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg-muted);
}

.problem-card.highlight .problem-icon {
  color: var(--accent);
}

.problem-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.problem-cost {
  color: var(--fg-muted);
  font-size: 14px;
}

.problem-card.highlight .problem-cost {
  color: var(--green);
  font-weight: 600;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 24px;
  background: var(--bg-elevated);
}

.features-header {
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.features-sub {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 560px;
  line-height: 1.7;
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
}

.feature-card.large {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.08) 100%);
  border-color: rgba(108, 92, 231, 0.15);
  display: grid;
  grid-template-rows: auto auto auto;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.12);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== NUMBERS ===== */
.numbers {
  padding: 100px 24px;
  background: var(--bg);
}

.numbers-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-secondary), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.closing-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.closing-sub {
  color: var(--fg-muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .feature-card.large {
    grid-column: span 1;
  }

  .numbers-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .terminal-body {
    font-size: 12px;
    padding: 14px;
  }

  .hero {
    padding: 100px 20px 60px;
  }
}