:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #4af0c0;
  --accent-dim: #2a9070;
  --border: #252530;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(74, 240, 192, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

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

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

/* Terminal Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: auto;
}

.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
}

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

.terminal-body .output {
  color: var(--fg-muted);
  padding-left: 1rem;
}

.terminal-body .val {
  color: var(--fg);
}

.terminal-body .cursor {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

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

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

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

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

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

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

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

/* === METRICS === */
.metrics {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.metrics-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.metrics-text .accent {
  color: var(--accent);
}

.metrics-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.metrics-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

.closing-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

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

.sig-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 600;
  color: var(--fg);
}

.footer-divider {
  color: var(--border);
}

.footer-tagline {
  color: var(--fg-muted);
}

/* === SIGNUP CTA === */
.signup-cta {
  margin: 0 auto 3rem;
  max-width: 480px;
}

.signup-label {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.signup-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.signup-input::placeholder {
  color: var(--fg-muted);
}

.signup-input:focus {
  border-color: var(--accent);
}

.signup-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.signup-button:hover {
  opacity: 0.9;
}

.signup-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signup-success {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
}

.checkout-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.checkout-divider::before { left: 0; }
.checkout-divider::after { right: 0; }

.checkout-button {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.checkout-button:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--bg);
}

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

  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

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

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

  .metrics-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }
}