/* ============================================
   WeTrace Health — Landing Page Stylesheet
   ============================================ */

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

:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #D97706;
  --accent-dim: #B45309;
  --accent-faint: rgba(217, 119, 6, 0.08);
  --border: rgba(26, 26, 26, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Selection & Scrollbar --- */
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 8vh 0;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 2rem;
}

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

.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 38ch;
}

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

.waveform-container {
  width: 100%;
  max-width: 440px;
}

.waveform-svg {
  width: 100%;
  height: auto;
}

.waveform-label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.waveform-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 10vh 8vw;
  background: var(--bg);
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.manifesto-number {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 400;
  padding-top: 0.5rem;
}

.manifesto-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 1.2rem;
}

/* ============================================
   SCIENCE
   ============================================ */
.science {
  padding: 10vh 8vw;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.science-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.science-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 5rem;
}

.science-number {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
}

.science-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.science-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
}

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

.science-card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.science-card-body {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ============================================
   OUTCOMES
   ============================================ */
.outcomes {
  padding: 10vh 8vw;
  background: var(--bg);
}

.outcomes-inner {
  max-width: 900px;
  margin: 0 auto;
}

.outcomes-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 4rem;
}

.outcomes-number {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
}

.outcomes-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outcome-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.outcome-item:first-child {
  border-top: 1px solid var(--border);
}

.outcome-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.outcome-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.outcome-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 55ch;
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: 14vh 8vw 12vh;
  background: var(--fg);
  color: var(--bg);
}

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

.closing-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 3rem;
}

.closing-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin-bottom: 2rem;
}

.closing-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 8vw;
  background: var(--fg);
  border-top: 1px solid rgba(250, 250, 247, 0.1);
}

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

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

.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bg);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(250, 250, 247, 0.4);
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(250, 250, 247, 0.35);
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

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

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

  .science-card {
    padding: 2rem 1.5rem;
  }

  .outcomes-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .outcome-item {
    grid-template-columns: 16px 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }

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

@media (max-width: 480px) {
  .hero, .manifesto, .science, .outcomes {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .closing {
    padding: 10vh 6vw 8vh;
  }

  .footer {
    padding: 2rem 6vw;
  }
}