/* === VARIABLES === */
:root {
  --bg: #FAFAF8;
  --fg: #1A1A1A;
  --muted: #6B7280;
  --accent: #2563EB;
  --accent-warm: #F59E0B;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --code-bg: #F3F4F6;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-content .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 100px;
}

/* === DEMO WINDOW === */
.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #F9FAFB;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #22C55E; }
.demo-title { font-size: 0.8rem; color: var(--muted); margin-left: 8px; font-weight: 500; }
.demo-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-label, .chat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.doc-preview { background: var(--bg); border-radius: 10px; padding: 14px; }
.doc-text { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.doc-text.strike { text-decoration: line-through; opacity: 0.5; }
.chat-bubble {
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.chat-bubble.user { background: #EFF6FF; color: #1D4ED8; border-bottom-left-radius: 4px; }
.chat-bubble.assistant { background: #F0FDF4; border-bottom-left-radius: 4px; }
.chat-bubble.assistant p { margin-bottom: 6px; }
.chat-bubble.assistant p:last-child { margin-bottom: 0; }

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.how-it-works h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 60px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card { position: relative; }
.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(37,99,235,0.08);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p { font-size: 0.95rem; color: var(--muted); }

/* === FEATURES === */
.features { padding: 100px 0; }
.features h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.feature-card.large { grid-column: span 2; }
.feature-icon {
  width: 40px;
  height: 40px;
  background: #EFF6FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* === MANIFESTO === */
.manifesto {
  padding: 100px 0;
  background: var(--fg);
  color: white;
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.manifesto .section-label { color: #93C5FD; }
blockquote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  color: white;
  margin-bottom: 28px;
}
.manifesto-content p {
  font-size: 0.95rem;
  color: #D1D5DB;
  margin-bottom: 16px;
  line-height: 1.7;
}
.manifesto-content em { color: white; font-style: normal; font-weight: 500; }
.persona-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
}
.persona-avatar {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}
.persona-text strong { display: block; font-size: 0.95rem; color: white; margin-bottom: 6px; }
.persona-text span { font-size: 0.85rem; color: #9CA3AF; line-height: 1.5; }
.persona-says {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.persona-says em { font-size: 0.88rem; color: #93C5FD; }

/* === CLOSING === */
.closing {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 800px; margin: 0 auto; padding: 0 40px; }
.closing h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing p { font-size: 1.1rem; color: var(--muted); }

/* === FOOTER === */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-brand p { font-size: 0.85rem; color: var(--muted); }
.footer-links span { font-size: 0.85rem; color: var(--muted); }

/* === MOBILE === */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 60px; }
  .hero-visual { order: -1; }
  .demo-body { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: span 1; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .section-inner, .hero-inner { padding: 0 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem !important; }
  .features, .how-it-works, .manifesto, .closing { padding: 60px 0; }
}