/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf6f0;
  --bg-alt: #f0ebe1;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --fg-subtle: #9a9a9a;
  --accent: #c8ff5c;
  --accent-dark: #a8e040;
  --green: #1a3a2a;
  --green-mid: #2d5a42;
  --surface: #ffffff;
  --border: #e0dbd1;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  background: var(--green);
  color: white;
  padding: 80px 32px 96px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,255,92,0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-headline .line { display: block; }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-stat-row {
  display: flex;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
  max-width: 100px;
}

.hero-cta-label {
  margin-top: 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ===== AGENT FRAME ===== */
.agent-frame {
  background: #0d2318;
  border: 1px solid rgba(200,255,92,0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.agent-header {
  background: #122a1e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(200,255,92,0.1);
}

.agent-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.agent-conversation {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
}

.msg { display: flex; align-items: flex-start; gap: 8px; }
.msg-ai { flex-direction: row-reverse; }

.msg-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.msg-bubble {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 80%;
}

.msg-ai .msg-bubble {
  background: rgba(200,255,92,0.15);
  color: var(--accent);
}

.msg-badge {
  font-size: 0.62rem;
  color: rgba(200,255,92,0.5);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.agent-booked {
  background: rgba(34,197,94,0.12);
  border-top: 1px solid rgba(34,197,94,0.2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #22c55e;
  font-weight: 600;
}

/* ===== FEATURES ===== */
.features {
  padding: 96px 32px;
  background: var(--bg);
}

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

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  opacity: 0.7;
}

.section-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 560px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 32px 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

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

/* ===== THE MATH ===== */
.themath {
  padding: 96px 32px;
  background: var(--green);
  color: white;
}

.themath-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.themath-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  font-weight: 400;
  margin-bottom: 20px;
}

.themath-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.math-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
}

.math-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.math-item:last-child { border-bottom: none; }

.math-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

.math-val { font-size: 1.1rem; font-weight: 600; color: white; }

.math-item.math-total { border-top: 1px solid rgba(200,255,92,0.3); border-bottom: none; padding-top: 16px; margin-top: 4px; }

.math-item.math-total .math-val { font-size: 1.4rem; color: var(--accent); font-family: 'Instrument Serif', serif; }

.math-card-assert {
  background: rgba(200,255,92,0.08);
  border-color: rgba(200,255,92,0.2);
}

.math-card-assert p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding: 6px 0;
  line-height: 1.5;
}

.math-card-assert strong { color: var(--accent); font-weight: 600; }

/* ===== HOW IT WORKS ===== */
.howitworks {
  padding: 96px 32px;
  background: var(--bg-alt);
}

.howitworks-inner { max-width: 1120px; margin: 0 auto; }

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

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.8rem;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 96px 32px;
  background: var(--bg);
}

.manifesto-inner { max-width: 720px; margin: 0 auto; }

.manifesto-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.8;
  color: var(--fg);
  font-style: italic;
}

.manifesto-closing {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 40px;
  letter-spacing: 0.01em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 32px;
  background: var(--green);
  color: white;
}

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

.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  line-height: 1.5;
}

.footer-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 56px 20px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .hero-stat-row { flex-direction: column; gap: 16px; }

  .features { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; }

  .themath { padding: 64px 20px; }
  .themath-inner { grid-template-columns: 1fr; gap: 48px; }

  .howitworks { padding: 64px 20px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-num { font-size: 1.8rem; }

  .manifesto { padding: 64px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero { padding: 40px 16px 56px; }
  .features { padding: 48px 16px; }
  .themath { padding: 48px 16px; }
  .howitworks { padding: 48px 16px; }
  .manifesto { padding: 48px 16px; }
  .footer { padding: 32px 16px; }
}