/* ─── Variables ─────────────────────────────────── */
:root {
  --charcoal: #1C1917;
  --charcoal-light: #2C2520;
  --charcoal-lighter: #3D3630;
  --amber: #D97706;
  --amber-dim: rgba(217, 119, 6, 0.15);
  --amber-glow: rgba(217, 119, 6, 0.08);
  --cream: #EDE8DF;
  --cream-dim: rgba(237, 232, 223, 0.6);
  --warm-white: #F5F0E6;
  --text-muted: rgba(237, 232, 223, 0.45);
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1120px;
}

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

/* ─── Typography ────────────────────────────────── */
html {
  font-family: var(--ff-body);
  background: var(--charcoal);
  color: var(--cream);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Atmospheric background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(217,119,6,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(217,119,6,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(217,119,6,0.04) 80px, rgba(217,119,6,0.04) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(217,119,6,0.04) 80px, rgba(217,119,6,0.04) 81px);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.8;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cream);
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 44ch;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.terrain-art svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(217,119,6,0.2));
}

/* Terrain bottom edge */
.hero-terrain-divider {
  height: 80px;
  background: linear-gradient(to bottom, var(--charcoal) 0%, var(--charcoal-light) 100%);
  position: relative;
  clip-path: polygon(0 40%, 20% 0, 40% 30%, 60% 10%, 80% 25%, 100% 5%, 100% 100%, 0 100%);
}

/* ─── Pain / Problem ─────────────────────────────── */
.pain {
  background: var(--charcoal-light);
  padding: 6rem 2rem;
}

.pain-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pain-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.pain-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 3rem;
  max-width: 20ch;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--charcoal);
  border: 1px solid rgba(217,119,6,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.pain-stat {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pain-stat-number {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.pain-stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pain-divider {
  width: 1px;
  background: rgba(217,119,6,0.12);
  margin: 1.5rem 0;
}

.pain-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ─── Features ──────────────────────────────────── */
.features {
  background: var(--charcoal);
  padding: 6rem 2rem;
}

.features-inner { max-width: var(--max-w); margin: 0 auto; }

.features-header {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.features-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  max-width: 22ch;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(217,119,6,0.1);
}

.feature-row:last-child { border-bottom: 1px solid rgba(217,119,6,0.1); }

.feature-row--right .feature-content { order: -1; }

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--cream-dim);
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.7;
}

.feature-visual { display: flex; align-items: center; justify-content: center; }

.feature-art svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ─── Manifesto ──────────────────────────────────── */
.manifesto {
  background: var(--charcoal-light);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.manifesto-content { display: flex; flex-direction: column; gap: 1.5rem; }

.manifesto-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.manifesto-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cream);
  line-height: 1.2;
}

.manifesto-headline em {
  font-style: italic;
  color: var(--amber);
}

.manifesto-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.manifesto-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.manifesto-stat { display: flex; flex-direction: column; gap: 0.4rem; }

.manifesto-stat-number {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

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

/* ─── Closing ───────────────────────────────────── */
.closing {
  background: var(--charcoal);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--cream);
  line-height: 1.2;
}

.closing-headline em {
  font-style: italic;
  color: var(--amber);
}

.closing-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 48ch;
}

/* ─── Footer ─────────────────────────────────────── */
.footer {
  background: var(--charcoal-light);
  border-top: 1px solid rgba(217,119,6,0.1);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-mark { flex-shrink: 0; }

.footer-company {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-sep { color: rgba(217,119,6,0.4); }

.footer-built {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    gap: 2.5rem;
  }

  .hero-visual { display: none; }

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

  .pain-divider {
    height: 1px;
    width: auto;
    margin: 0 1.5rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .feature-row--right .feature-content { order: 0; }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-meta { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .pain-stat-number { font-size: 2.2rem; }
  .manifesto-stat-number { font-size: 2.5rem; }
  .closing-headline { font-size: 1.8rem; }
}