/* ===================
   THYRA — Landing Page
   =================== */

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

/* CSS Variables */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --text: #1A1A1A;
  --text-muted: #6B6155;
  --accent: #C4873A;
  --accent-light: #E8B96A;
  --green: #4A6741;
  --green-light: #6B8A60;
  --white: #FFFFFF;
  --border: #E2D9CC;

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

  --max-width: 1200px;
  --section-pad: 100px 24px;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Hero */
.hero {
  padding: 96px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 760px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-attribution {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 56px 24px;
  background: var(--text);
  color: var(--bg);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(250, 247, 242, 0.15);
}

/* Manifesto */
.manifesto {
  padding: var(--section-pad);
  background: var(--bg-alt);
}
.manifesto-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 24px;
}
.manifesto-attribution {
  font-size: 14px;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.2s;
}
.feature-card:hover {
  background: var(--white);
}
.feature-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Protocol */
.protocol {
  padding: var(--section-pad);
  background: var(--text);
  color: var(--bg);
}
.protocol-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.protocol-header {
  margin-bottom: 64px;
}
.protocol-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.protocol-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.protocol-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.protocol-step {
  display: flex;
  gap: 24px;
  padding: 36px 40px;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  align-items: flex-start;
}
.protocol-step:nth-child(odd) { border-right: 1px solid rgba(250, 247, 242, 0.1); }
.step-number {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 4px;
  min-width: 28px;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--bg);
}
.step-content p {
  font-size: 15px;
  color: rgba(250, 247, 242, 0.55);
  line-height: 1.6;
}

/* Closing */
.closing {
  padding: var(--section-pad);
  background: var(--accent);
  color: var(--white);
  text-align: center;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.closing-sub {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 32px;
}
.closing-statement {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  opacity: 0.95;
}

/* Footer */
.site-footer {
  padding: 40px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
  text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero { padding: 64px 20px 56px; }
  .hero-headline { font-size: 36px; }

  .stats-row {
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 32px;
  }
  .stat-item { flex: 0 0 calc(50% - 16px); padding: 0; }
  .stat-divider { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
    background: none;
    border: none;
    gap: 2px;
  }
  .feature-card {
    border: 1px solid var(--border);
    padding: 28px 24px;
  }

  .protocol-steps {
    grid-template-columns: 1fr;
  }
  .protocol-step:nth-child(odd) { border-right: none; }
  .protocol-step { padding: 28px 0; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-note { text-align: left; }

  .nav-tagline { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .features, .manifesto, .protocol { padding: 72px 20px; }
  .section-title { font-size: 26px; }
}