:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --fg: #e8e8e8;
  --fg-muted: #888;
  --fg-dim: #555;
  --accent: #22d67a;
  --accent-dim: rgba(34, 214, 122, 0.12);
  --accent-glow: rgba(34, 214, 122, 0.25);
  --red: #ff4d4d;
  --red-dim: rgba(255, 77, 77, 0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1100px;
  --radius: 12px;
}

* { 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: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px; /* extra top padding for fixed nav */
  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;
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 214, 122, 0.2);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.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; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 750px;
  position: relative;
  z-index: 1;
}

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

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* Hero CTA buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hero-btn-primary:hover {
  background: #1cc46e;
  transform: translateY(-1px);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-btn-ghost:hover {
  color: var(--fg);
  border-color: #3a3a3a;
}

.hero-visual {
  margin-top: 56px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid #222;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg.incoming { align-items: flex-start; }
.chat-msg.outgoing { align-items: flex-end; }

.chat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-dim);
  padding: 0 4px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  max-width: 85%;
  line-height: 1.4;
}

.chat-msg.incoming .chat-bubble {
  background: var(--red-dim);
  border: 1px solid rgba(255, 77, 77, 0.15);
  color: #ff8080;
  border-bottom-left-radius: 4px;
}

.chat-msg.outgoing .chat-bubble {
  background: var(--accent-dim);
  border: 1px solid rgba(34, 214, 122, 0.15);
  color: var(--accent);
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 2px;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.problem-left h2 .red { color: var(--red); }

.problem-left p {
  color: var(--fg-muted);
  margin-top: 20px;
  font-size: 1.05rem;
}

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

.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid #252525;
  border-radius: var(--radius);
}

.stat-card .number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-card .label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 8px;
  line-height: 1.35;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-header p {
  color: var(--fg-muted);
  max-width: 500px;
  margin: 16px auto 0;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid #1a1a1a;
  align-items: start;
}

.feature-row:first-child {
  border-top: 1px solid #1a1a1a;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.feature-desc h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc p {
  color: var(--fg-muted);
  font-size: 1rem;
}

/* ---- NUMBERS ---- */
.numbers {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

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

.num-item .big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.num-item .desc {
  font-size: 15px;
  color: var(--fg-muted);
  margin-top: 8px;
}

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

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

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .numbers-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    margin-top: 40px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}