/* ─── Variables ─── */
:root {
  --bg: #f5f0eb;
  --bg-alt: #ede7df;
  --fg: #1a3a2f;
  --fg-muted: #4a6b58;
  --accent: #c17f4e;
  --accent-light: #f0e0cc;
  --white: #ffffff;
  --border: #d9cfc4;

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

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

/* ─── Noise texture overlay ─── */
body::before {
  content: '';
  position: fixed;
  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.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ─── Hero ─── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-2xl) 2rem var(--space-xl);
  position: relative;
  z-index: 1;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.hero-headline em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 400;
}

/* ─── Hero illustration ─── */
.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 220px;
  background: var(--fg);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(26, 58, 47, 0.25), 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
}
.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--fg);
  border-radius: 0 0 16px 16px;
  margin: -12px auto 8px;
  position: relative;
  top: 0;
}
.phone-screen {
  background: #f9f6f2;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 340px;
}
/* Missed call notification */
.notif {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e8e0d6;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(26,58,47,0.06);
}
.notif-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.notif-meta { font-size: 0.7rem; color: var(--fg-muted); margin-top: 1px; }
/* Chat bubbles */
.bubble-row { display: flex; }
.bubble-row.right { justify-content: flex-end; }
.bubble {
  background: var(--accent);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 88%;
}
.confirm-bubble {
  background: #2a5e42;
  border-radius: 12px 12px 12px 4px;
}
/* Calendar slots */
.cal-slots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.slot {
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--accent);
}
.slot-day { font-weight: 600; color: var(--accent); }
.slot-time { font-weight: 500; }
.slot-check::after { content: '→'; font-size: 0.6rem; color: var(--accent); }
/* Ambient rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(193, 127, 78, 0.2);
  pointer-events: none;
  z-index: 1;
}
.ring-1 { width: 300px; height: 300px; top: -20px; right: 10px; animation: ring-pulse 3s ease-in-out infinite; }
.ring-2 { width: 380px; height: 380px; top: -60px; right: -20px; border-color: rgba(193,127,78,0.1); animation: ring-pulse 3s ease-in-out infinite 1.5s; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.6; }
}
/* Signal dots */
.signal-dots { position: absolute; right: 0; top: 10px; display: flex; flex-direction: column; gap: 5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.4; }
.dot-1 { animation: dot-blink 2s ease-in-out infinite; }
.dot-2 { animation: dot-blink 2s ease-in-out infinite 0.4s; }
.dot-3 { animation: dot-blink 2s ease-in-out infinite 0.8s; }
@keyframes dot-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ─── Hero stat row ─── */
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--fg);
  border-radius: var(--radius-lg);
  color: var(--bg);
  position: relative;
  z-index: 1;
}
.hero-stat { flex: 1; text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.75rem; color: rgba(245,240,235,0.65); line-height: 1.4; }
.hero-stat-sep { width: 1px; height: 48px; background: rgba(245,240,235,0.15); flex-shrink: 0; }

/* ─── Recovery Section ─── */
.recovery {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-2xl) 2rem;
  position: relative;
  z-index: 1;
}
.recovery-inner { max-width: 1100px; margin: 0 auto; }
.recovery-eyebrow, .ind-eyebrow, .hiw-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.recovery-headline, .ind-headline, .hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.recovery-body, .ind-body {
  font-size: 1rem;
  color: rgba(245,240,235,0.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.recovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.recovery-card {
  background: rgba(245,240,235,0.07);
  border: 1px solid rgba(245,240,235,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.rec-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.rec-label { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.4; }
.rec-note { font-size: 0.75rem; color: rgba(245,240,235,0.5); line-height: 1.5; }
.recovery-cta { padding-top: 1rem; border-top: 1px solid rgba(245,240,235,0.1); }
.recovery-cta-text { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: rgba(245,240,235,0.8); line-height: 1.6; }

/* ─── Industries ─── */
.industries { padding: var(--space-2xl) 2rem; background: var(--bg); position: relative; z-index: 1; }
.industries-inner { max-width: 1100px; margin: 0 auto; }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ind-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,58,47,0.1);
}
.ind-icon { margin-bottom: 1rem; }
.ind-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg); }
.ind-card p { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.5; }

/* ─── How it works ─── */
.how-it-works { padding: var(--space-2xl) 2rem; background: var(--bg-alt); position: relative; z-index: 1; }
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  padding-top: 0.1rem;
}
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg); }
.step-content p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; max-width: 560px; }
.step-line {
  position: absolute;
  left: 31px;
  top: calc(2rem + 48px);
  bottom: 0;
  width: 1px;
  background: var(--border);
}

/* ─── Manifesto ─── */
.manifesto { padding: var(--space-2xl) 2rem; background: var(--fg); color: var(--bg); position: relative; z-index: 1; }
.manifesto-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bg);
  margin-bottom: 1.5rem;
}
.manifesto-body { font-size: 0.95rem; color: rgba(245,240,235,0.7); line-height: 1.8; margin-bottom: 1rem; }
.manifesto-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.mstat { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.mstat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.35rem; }
.mstat-label { font-size: 0.8rem; color: rgba(245,240,235,0.6); line-height: 1.4; }

/* ─── Footer ─── */
.footer { padding: var(--space-xl) 2rem; border-top: 1px solid var(--border); background: var(--bg); position: relative; z-index: 1; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--fg); }
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); margin-top: 0.25rem; line-height: 1.5; }
.footer-meta p { font-family: var(--font-display); font-size: 0.9rem; font-style: italic; color: var(--fg-muted); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero-headline { font-size: 2rem; }
  .hero-illustration { order: -1; }
  .phone-frame { width: 160px; }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 280px; height: 280px; }
  .hero-stat-row { flex-direction: column; gap: 1rem; }
  .hero-stat-sep { width: 60px; height: 1px; }
  .recovery-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 48px 1fr; }
  .step-num { font-size: 2rem; }
  .manifesto-inner { grid-template-columns: 1fr; }
  .manifesto-stats { flex-direction: row; flex-wrap: wrap; }
  .mstat { flex: 1; min-width: 140px; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .ind-grid { grid-template-columns: 1fr; }
}
