/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg: #F7F4EE;
  --surface: #EFEBE3;
  --fg: #1C1917;
  --fg-2: #57534E;
  --fg-3: #A8A29E;
  --accent: #D4622A;
  --accent-dark: #B8521F;
  --border: #E5E0D8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ─── Typography ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 2.5rem;
}

/* ─── Layout helpers ───────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  padding: var(--space-3xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: start;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-2);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 400;
}

/* Stats block */
.stats-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 240px;
  background: var(--surface);
}

.stat {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-bottom: none; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── HOW IT WORKS ─────────────────────────────────────── */
.how {
  padding: var(--space-3xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

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

.process-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.process-step { }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--surface);
  line-height: 1;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 1px var(--border);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.process-arrow {
  color: var(--accent);
  padding-top: 1.5rem;
  display: flex;
  align-items: flex-start;
}

/* ─── FEATURES ─────────────────────────────────────────── */
.features {
  padding: var(--space-3xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

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

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

.feature-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ─── AGENTS ───────────────────────────────────────────── */
.agents {
  padding: var(--space-3xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

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

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

.agent-type {
  background: var(--surface);
  padding: 2.5rem 2rem;
}

.agent-type--accent {
  background: var(--fg);
}
.agent-type--accent .agent-tag,
.agent-type--accent .agent-title,
.agent-type--accent .agent-desc,
.agent-type--accent .agent-list li {
  color: var(--bg);
}
.agent-type--accent .agent-tag {
  color: var(--accent);
}
.agent-type--accent .agent-list li {
  color: var(--fg-3);
}

.agent-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.75rem;
}

.agent-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.agent-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.agent-list li {
  font-size: 0.875rem;
  color: var(--fg-2);
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.agent-type--accent .agent-list li {
  border-top-color: rgba(255,255,255,0.08);
}

.agent-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── CLOSING ──────────────────────────────────────────── */
.closing {
  padding: var(--space-3xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.1rem;
  color: var(--fg-2);
  line-height: 1.7;
}

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem var(--space-lg);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-3);
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .stats-block {
    min-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 calc(50% - 1px);
    padding: 1.25rem 1.5rem;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-arrow {
    display: none;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }
  .how, .features, .agents, .closing {
    padding: var(--space-2xl) var(--space-md);
  }
  .stat {
    flex: 1 1 100%;
  }
}