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

:root {
  --bg: #1C1917;
  --surface: #262120;
  --surface-2: #312D2A;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.15);
  --text: #FEFCF9;
  --text-muted: #A8A29E;
  --text-dim: #78716C;
  --border: rgba(254,252,249,0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28,25,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.navbar-tagline {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.manifesto-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.5rem;
}
.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.12;
  color: var(--text); margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.manifesto-headline em {
  font-style: italic; color: var(--accent);
  font-weight: 400;
}
.manifesto-body {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.7; max-width: 48ch; margin-bottom: 2.5rem;
}
.manifesto-stats {
  display: flex; align-items: center; gap: 2rem;
}
.stat-item {}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--text);
}
.stat-label {
  font-size: 0.7rem; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.stat-divider {
  width: 1px; height: 36px; background: var(--border);
}

/* Manifesto Visual */
.manifesto-visual {
  position: relative;
  width: 100%; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.visual-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
}
.ring-outer { width: 340px; height: 340px; opacity: 0.4; }
.ring-mid { width: 240px; height: 240px; border-color: rgba(245,158,11,0.2); }
.ring-inner { width: 160px; height: 160px; border-color: rgba(245,158,11,0.4); }

.visual-core {
  position: absolute;
  width: 90px; height: 90px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.visual-core-label {
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #1C1917;
}
.visual-core-score {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; color: #1C1917;
  line-height: 1;
}

.visual-tick {
  position: absolute;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem;
}
.tick-bar {
  display: block; height: 3px;
  background: linear-gradient(to right, var(--accent) 0%, rgba(245,158,11,0.3) 100%);
  border-radius: 2px;
}
.tick-label { color: var(--text-muted); white-space: nowrap; }
.tick-score { font-weight: 700; color: var(--text); }

.tick-1 { bottom: 60px; left: 30px; transform: rotate(-10deg); }
.tick-2 { bottom: 110px; right: 30px; transform: rotate(5deg); }
.tick-3 { top: 110px; left: 30px; transform: rotate(8deg); }
.tick-4 { top: 60px; right: 30px; transform: rotate(-5deg); }

/* ===== SHARED SECTION STYLES ===== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text); letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 0.95rem; color: var(--text-muted);
  max-width: 55ch; margin: 0 auto; line-height: 1.65;
}

/* ===== MODELS ===== */
.models { padding: 5rem 2rem; border-bottom: 1px solid var(--border); }
.models-inner { max-width: 1200px; margin: 0 auto; }

.models-table {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  background: var(--surface);
}
.models-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 90px 90px 110px 70px;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.models-row:last-child { border-bottom: none; }

.models-header-row {
  background: var(--surface-2);
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  font-weight: 600;
}
.models-winner {
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 0;
}

.col-rank { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--accent); color: #1C1917;
  border-radius: 50%; font-size: 0.7rem; font-weight: 800;
}

.model-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.model-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.4; }
.model-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.62rem; padding: 0.15rem 0.5rem;
  border-radius: 99px; background: var(--surface-2); color: var(--text-dim);
}
.tag-winner { background: var(--accent); color: #1C1917; font-weight: 700; }

.prob-bar-wrap { height: 4px; background: var(--surface-2); border-radius: 2px; margin-bottom: 0.25rem; }
.prob-bar { height: 100%; background: linear-gradient(to right, var(--accent), rgba(245,158,11,0.4)); border-radius: 2px; }
.prob-label { font-size: 0.72rem; font-weight: 700; color: var(--accent); }

.speed-tag { font-size: 0.68rem; padding: 0.2rem 0.6rem; border-radius: 99px; font-weight: 600; }
.speed-fast { background: rgba(16,185,129,0.15); color: #10B981; }
.speed-mid { background: rgba(245,158,11,0.15); color: var(--accent); }
.speed-slow { background: var(--surface-2); color: var(--text-dim); }

.cost-tag { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.auto-bar-wrap { height: 3px; background: var(--surface-2); border-radius: 2px; }
.auto-bar { height: 100%; background: var(--text-dim); border-radius: 2px; }

.overall-score { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text-muted); }
.overall-high { color: var(--text); }

.models-note {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.85rem; color: var(--text-muted);
}
.note-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-dim);
  font-size: 0.9rem; flex-shrink: 0;
}

/* ===== BLUEPRINT ===== */
.blueprint { padding: 5rem 2rem; border-bottom: 1px solid var(--border); }
.blueprint-inner { max-width: 1200px; margin: 0 auto; }

.blueprint-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.phase-final {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.04);
}

.phase-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.phase-number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--accent);
  opacity: 0.7; line-height: 1;
}
.phase-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.phase-name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }

.phase-tasks { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.phase-task {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.4;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.task-icon { color: var(--accent); flex-shrink: 0; font-size: 0.8rem; margin-top: 1px; }

.phase-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.tool-pill {
  font-size: 0.6rem; padding: 0.2rem 0.5rem;
  background: var(--surface-2); color: var(--text-dim);
  border-radius: 4px; font-weight: 500;
}

/* ===== MOMENTUM ===== */
.momentum { padding: 5rem 2rem 6rem; }
.momentum-inner { max-width: 1200px; margin: 0 auto; }

.mom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem; margin-bottom: 4rem;
}
.mom-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
}
.mom-card-big { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); }
.mom-card-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.5rem; }
.mom-card-value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text); line-height: 1; margin-bottom: 0.25rem;
}
.mom-card-big .mom-card-value { color: var(--accent); font-size: 2.8rem; }
.mom-card-sub { font-size: 0.72rem; color: var(--text-dim); }

.momentum-text { text-align: center; }
.momentum-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text); letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.momentum-accent { color: var(--accent); font-style: italic; }
.momentum-body {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 65ch; margin: 0 auto 1rem;
}

/* ===== FOOTER ===== */
.footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { margin-bottom: 1rem; }
.footer-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.footer-tagline { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; }
.footer-note { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.footer-year { font-size: 0.72rem; color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .manifesto-inner { grid-template-columns: 1fr; }
  .manifesto-visual { display: none; }
  .models-row { grid-template-columns: 40px 1fr 80px 70px; gap: 0.5rem; }
  .col-speed, .col-cost, .col-automation, .col-overall { display: none; }
  .models-header-row { display: none; }
  .blueprint-phases { grid-template-columns: 1fr 1fr; }
  .mom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .manifesto { padding: 3rem 1.5rem 2.5rem; }
  .manifesto-stats { flex-wrap: wrap; gap: 1.5rem; }
  .models, .blueprint, .momentum { padding: 3rem 1.5rem; }
  .blueprint-phases { grid-template-columns: 1fr; }
  .mom-grid { grid-template-columns: 1fr 1fr; }
}