:root {
  --bg: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #1a2234;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.15);
  --accent-alt: #a78bfa;
  --border: #1e293b;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

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

/* HERO */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 5vw 4rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Hero Visual - Wireframe Container */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.container-wire {
  width: 340px;
  height: 240px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  position: relative;
  background: var(--accent-glow);
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(34, 211, 238, 0.05);
}

.wire-box {
  position: absolute;
  border: 1.5px solid rgba(34, 211, 238, 0.5);
  border-radius: 2px;
  background: rgba(34, 211, 238, 0.08);
}

.box-1 { bottom: 8px; left: 8px; width: 100px; height: 90px; }
.box-2 { bottom: 8px; left: 116px; width: 80px; height: 120px; }
.box-3 { bottom: 8px; left: 204px; width: 128px; height: 70px; }
.box-4 { bottom: 78px; left: 204px; width: 128px; height: 80px; }
.box-5 { bottom: 106px; left: 8px; width: 100px; height: 60px; }

/* PROBLEM */
.problem {
  padding: 6rem 5vw;
  border-top: 1px solid var(--border);
}

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

.problem-label,
.features-label,
.how-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.problem h2 em {
  font-style: normal;
  color: var(--accent);
}

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

.problem-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.problem-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* FEATURES */
.features {
  padding: 6rem 5vw;
  background: var(--bg-surface);
}

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

.features h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

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

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* HOW */
.how {
  padding: 6rem 5vw;
  border-top: 1px solid var(--border);
}

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

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.how-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3rem;
  line-height: 1;
  padding-top: 0.2rem;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* CLOSING */
.closing {
  padding: 8rem 5vw;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}

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

.closing h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.closing-text {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

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

/* PRICING */
.pricing {
  padding: 6rem 5vw;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

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

.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pricing-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

.pricing-tier-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-tier-label::before,
.pricing-tier-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pricing-tier-label.secondary {
  color: var(--fg-dim);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

.credit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.seat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.api-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 0.2rem;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.25rem 0;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.price-period {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 400;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.card-cta {
  display: inline-block;
  text-align: center;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.card-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card-cta.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.card-cta.primary:hover {
  background: transparent;
  color: var(--accent);
}

.card-features {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.overage-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 5vw 3rem;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .container-wire {
    width: 280px;
    height: 200px;
    transform: perspective(600px) rotateY(-5deg) rotateX(3deg);
  }

  .box-1 { width: 80px; height: 70px; }
  .box-2 { left: 96px; width: 65px; height: 100px; }
  .box-3 { left: 168px; width: 104px; height: 55px; }
  .box-4 { left: 168px; width: 104px; height: 65px; bottom: 63px; }
  .box-5 { width: 80px; height: 50px; bottom: 86px; }

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

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

  .how-step {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .credit-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .seat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    order: -1;
  }

  .seat-card-last {
    grid-column: span 2;
  }

  .api-card-last {
    grid-column: span 1;
  }
}