/* ===== FONTS ===== */
/* Archivo + DM Sans via Google Fonts in layout */

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

/* ===== TOKENS ===== */
:root {
  --bg: #141416;
  --surface: #1c1c1f;
  --surface-2: #242428;
  --fg: #f0ece4;
  --fg-2: #a8a49c;
  --fg-3: #6b6760;
  --accent: #e07040;
  --accent-dim: rgba(224,112,64,0.12);
  --pass: #4ade80;
  --warn: #fbbf24;
  --fail: #f87171;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid rgba(240,236,228,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-links {
  font-size: 0.8rem;
  color: var(--fg-3);
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Output box */
.hero-output {
  background: var(--surface);
  border: 1px solid rgba(240,236,228,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-body);
}

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

.output-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid rgba(240,236,228,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.output-url {
  font-size: 0.85rem;
  color: var(--fg-2);
  font-family: 'DM Sans', monospace;
}

.output-btn {
  background: var(--accent);
  color: #141416;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.output-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--surface-2);
  border-radius: 6px;
}

.result-title {
  font-size: 0.82rem;
  color: var(--fg-2);
}

.result-score {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.result-score.pass { color: var(--pass); }
.result-score.warn { color: var(--warn); }
.result-score.fail { color: var(--fail); }

.result-issue {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.issue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--fail);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.result-issue p {
  font-size: 0.78rem;
  color: rgba(248,113,113,0.9);
  line-height: 1.5;
}

/* ===== DIAGNOSIS ===== */
.diagnosis {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diag-card {
  background: var(--surface);
  border: 1px solid rgba(240,236,228,0.06);
  border-radius: 12px;
  padding: 2rem;
}

.diag-icon {
  margin-bottom: 1.25rem;
}

.diag-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.diag-card p {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ===== STAGES ===== */
.stages {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(240,236,228,0.06);
}

.stages-header {
  margin-bottom: 3.5rem;
}

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

.stages-header h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stages-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.stage {
  background: var(--surface);
  border: 1px solid rgba(240,236,228,0.06);
  border-radius: 12px;
  padding: 1.75rem;
}

.stage-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stage-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stage-body p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.stage-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 5rem 3rem;
  background: var(--surface);
}

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

.manifesto-text blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.manifesto-text p {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.75;
}

.manifesto-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.5;
  max-width: 280px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(240,236,228,0.06);
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

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

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(240,236,228,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

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

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

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

  .stages-flow {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stage-arrow {
    display: none;
  }

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

  .diagnosis, .stages {
    padding: 3rem 1.5rem;
  }

  .manifesto {
    padding: 3rem 1.5rem;
  }

  .closing {
    padding: 4rem 1.5rem;
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .nav {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: 2.8rem;
  }
}
