/* ===== TOKENS ===== */
:root {
  --bg: #F5F0E8;
  --bg-2: #EDE7DC;
  --fg: #1A1714;
  --fg-muted: #6B6259;
  --accent: #2D6A4F;
  --accent-light: #40916C;
  --accent-pale: #D8F3DC;
  --warm: #B5693A;
  --warm-pale: #F5E0D0;
  --surface: #FFFFFF;
  --border: #D4CBBF;
  --shadow: rgba(26, 23, 20, 0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--accent); }
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  padding: 6rem 2rem 5rem;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.72rem; color: var(--fg-muted); line-height: 1.4; margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Chat Widget */
.chat-widget {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow), 0 2px 8px var(--shadow);
  overflow: hidden;
  font-size: 0.88rem;
}
.chat-header {
  background: var(--accent);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
}
.chat-dots { display: flex; gap: 6px; }
.chat-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.chat-dots span:nth-child(2) { background: rgba(255,255,255,0.5); }
.chat-dots span:nth-child(3) { background: rgba(255,255,255,0.7); }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.msg {
  max-width: 78%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  line-height: 1.5;
}
.msg-other {
  background: var(--bg-2);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-me {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-me.system {
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.75rem;
  text-align: center;
  border-radius: 8px;
  align-self: center;
  padding: 0.4rem 0.8rem;
}
.chat-input {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* ===== PROBLEM ===== */
.problem { padding: 6rem 2rem; background: var(--fg); color: var(--bg); }
.problem-inner { max-width: 1100px; margin: 0 auto; }
.problem-label, .solution-label, .features-label, .proof-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.problem-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--bg);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.75rem;
}
.problem-icon {
  width: 44px; height: 44px;
  background: rgba(45, 106, 79, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.6rem; color: var(--bg);
}
.problem-card p { font-size: 0.88rem; color: rgba(245,240,232,0.6); line-height: 1.6; }
.problem-stats { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.problem-stat { text-align: center; }
.pstat-number {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--warm);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.pstat-text { font-size: 0.9rem; color: rgba(245,240,232,0.5); }

/* ===== SOLUTION ===== */
.solution { padding: 6rem 2rem; background: var(--bg); }
.solution-inner { max-width: 1100px; margin: 0 auto; }
.solution-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.solution-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 520px; margin-bottom: 3.5rem; line-height: 1.7; }
.solution-flow {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.flow-step { flex: 1; }
.flow-num {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.flow-step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.flow-step p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }
.flow-arrow { padding-top: 2.2rem; color: var(--border); flex-shrink: 0; }
.solution-tagline {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== FEATURES ===== */
.features { padding: 6rem 2rem; background: var(--bg-2); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3rem;
  max-width: 500px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}
.feature-large { grid-column: span 2; }
.feature-wide { grid-column: span 2; }
.feature-icon-wrap {
  width: 48px; height: 48px;
  background: var(--accent-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.feature-content p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }

/* ===== PROOF ===== */
.proof { padding: 6rem 2rem; background: var(--surface); }
.proof-inner { max-width: 1100px; margin: 0 auto; }
.proof-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.proof-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.proof-quote {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.proof-name { font-size: 0.85rem; font-weight: 600; }
.proof-detail { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.25rem; }
.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.proof-metric { text-align: center; }
.pm-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.pm-label { font-size: 0.75rem; color: var(--fg-muted); line-height: 1.4; }

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 5rem 2rem;
  background: var(--accent);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-body {}
.manifesto-line {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}
.manifesto-line.manifesto-highlight {
  color: white;
  font-weight: 700;
  font-style: italic;
}

/* ===== CLOSING ===== */
.closing { padding: 6rem 2rem; background: var(--bg); }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.closing-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.closing-vision {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--accent-pale);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.closing-vision p { font-size: 0.95rem; color: var(--accent); line-height: 1.7; font-style: italic; }

/* ===== FOOTER ===== */
.footer { padding: 3rem 2rem 2rem; background: var(--fg); color: var(--bg); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { margin-bottom: 2rem; }
.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg);
  display: block;
  margin-bottom: 0.6rem;
}
.footer-desc { font-size: 0.85rem; color: rgba(245,240,232,0.5); max-width: 300px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(245,240,232,0.35); font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-stats { gap: 1rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large, .feature-wide { grid-column: span 1; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: 1fr; gap: 1.5rem; }
  .solution-flow { flex-direction: column; }
  .flow-arrow { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.25rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .problem, .solution, .features, .proof, .manifesto, .closing { padding: 4rem 1.5rem; }
}