/* ─── Variables ─── */
:root {
  --bg: #faf7f4;
  --bg-alt: #f0e8df;
  --bg-dark: #1a0e0a;
  --text: #1a0e0a;
  --text-muted: #6b5e52;
  --text-inv: #faf7f4;
  --accent: #c8622f;
  --accent-warm: #e8875a;
  --border: #d4c4b4;
  --radius: 6px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
}

/* ─── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--border);
}

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

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Agent Graphic ─── */
.hero-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.agent-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-segment {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

.ring-1 {
  width: 200px;
  height: 200px;
  opacity: 0.25;
  animation: spin 20s linear infinite;
}

.ring-2 {
  width: 140px;
  height: 140px;
  opacity: 0.5;
  animation: spin 14s linear infinite reverse;
  border-style: dashed;
}

.ring-3 {
  width: 80px;
  height: 80px;
  opacity: 0.8;
  animation: spin 8s linear infinite;
}

.ring-core {
  position: relative;
  z-index: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── Activity Feeds ─── */
.activity-feeds {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.78rem;
  animation: feedIn 0.5s ease both;
}

.feed-1 { animation-delay: 0.2s; }
.feed-2 { animation-delay: 0.4s; }
.feed-3 { animation-delay: 0.6s; }
.feed-4 { animation-delay: 0.8s; }

@keyframes feedIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.feed-label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
}

.feed-action {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ─── Sections ─── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 56px;
  letter-spacing: -0.025em;
}

/* ─── What It Does ─── */
.what-it-does {
  padding: 96px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.role-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,14,10,0.08);
}

.role-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.role-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.role-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 56px;
}

.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-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

.step-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

.proof-line {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Manifesto ─── */
.manifesto {
  background: var(--bg-dark);
  padding: 96px 48px;
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.manifesto blockquote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-inv);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.manifesto-aside p {
  font-size: 0.95rem;
  color: rgba(250,247,244,0.6);
  line-height: 1.75;
}

/* ─── Closing ─── */
.closing-section {
  padding: 96px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.closing-section h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.closing-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  padding: 48px;
  background: var(--bg-dark);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-inv);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(250,247,244,0.5);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250,247,244,0.3);
  margin-top: 8px;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-graphic {
    order: -1;
  }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav {
    padding: 16px 24px;
  }

  .hero {
    padding: 56px 24px 48px;
  }

  .what-it-does,
  .how-it-works,
  .closing-section {
    padding: 64px 0;
  }

  .manifesto {
    padding: 64px 24px;
  }
}

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

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-number {
    font-size: 2.5rem;
  }
}