:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EAE0;
  --fg: #1A1614;
  --fg-muted: #6B635A;
  --accent: #C45D1A;
  --accent-dk: #9A4710;
  --surface: #F4EDE3;
  --border: #DDD5C8;
  --ink-warm: #2C2420;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-warm);
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* HERO */
.hero {
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink-warm);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* BOOK STACK */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.book-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-left: 32px;
}
.book {
  display: flex;
  width: 72px;
  height: 160px;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  box-shadow: 4px 2px 12px rgba(26,22,20,0.18);
  position: relative;
}
.book-spine {
  width: 14px;
  height: 100%;
  flex-shrink: 0;
}
.book-cover {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.book-title {
  font-family: 'Fraunces', serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-align: center;
}

.book-1 .book-spine { background: #5C3D2E; }
.book-1 .book-cover { background: linear-gradient(135deg, #7A5A42, #5C3D2E); }
.book-2 .book-spine { background: var(--accent-dk); }
.book-2 .book-cover { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); }
.book-3 .book-spine { background: #3D2B1F; }
.book-3 .book-cover { background: linear-gradient(135deg, #5C4033, #3D2B1F); }

.book-glow {
  position: absolute;
  bottom: -20px;
  left: 32px;
  width: 228px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(196,93,26,0.2) 0%, transparent 70%);
  filter: blur(8px);
}

/* TASK PANEL */
.task-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 2px 16px rgba(26,22,20,0.08);
}
.task-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--fg);
}
.task-item:last-child { border-bottom: none; }
.task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.task-done .task-dot { background: #4A8C5C; }
.task-active .task-dot { background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* WHAT IT DOES */
.what-it-does {
  padding: 80px 40px;
  background: var(--bg-alt);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-headline {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink-warm);
  margin-bottom: 48px;
  max-width: 600px;
}
.capabilities-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.cap {
  background: var(--bg-alt);
  padding: 36px 32px;
  transition: background 0.2s;
}
.cap:hover { background: var(--surface); }
.cap-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.cap-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-warm);
  margin-bottom: 10px;
}
.cap-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 80px 40px;
}
.steps-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
}
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
}
.step-connector::after {
  content: '';
  width: 100%;
  height: 1px;
  background: var(--border);
  display: block;
}
.step {
  padding: 32px;
}
.step-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 16px;
  line-height: 1;
}
.step-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-warm);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* MANIFESTO */
.manifesto {
  background: var(--ink-warm);
  padding: 80px 40px;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  color: #F4EDE3;
  line-height: 1.4;
  margin-bottom: 32px;
}
.manifesto-body {
  font-size: 16px;
  color: #B8AFA6;
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* CLOSING */
.closing {
  padding: 80px 40px;
  text-align: center;
  background: var(--bg);
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink-warm);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-warm);
}
.footer-desc {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .step-connector { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px 40px; }
  .what-it-does, .how-it-works, .manifesto, .closing { padding: 56px 24px; }
  .cap { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-note { text-align: center; }
}