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

:root {
  --bg:         #111110;
  --bg-surface: #1A1917;
  --bg-card:    #201F1D;
  --border:     #2E2C29;
  --text:       #EAE6DE;
  --text-muted: #8A8478;
  --text-dim:   #5A5650;
  --accent:     #D4882A;
  --accent-lt:  #E8A040;
  --max:        960px;
  --max-prose:  680px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lt); }

/* ── Nav ── */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: rgba(17,17,16,0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  max-width: 720px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: var(--max-prose);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #111110;
}
.btn-primary:hover { background: var(--accent-lt); color: #111110; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Intro strip ── */
.intro {
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}

.intro-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.intro-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.intro-text p + p { margin-top: 0.875rem; }

.intro-stat {
  text-align: center;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.intro-stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.intro-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Thesis ── */
.thesis {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.thesis-inner { max-width: var(--max-prose); margin: 0 auto; }

.thesis-body p, .status-body p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.thesis-body p + p, .status-body p + p { margin-top: 0.875rem; }

.thesis-callout {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.thesis-callout strong { color: var(--text); }

/* ── Scenarios ── */
.scenarios {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.scenarios-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.scenario-card {
  background: var(--bg-card);
  padding: 1.75rem;
  transition: background 0.15s;
}

.scenario-card:hover { background: var(--bg-surface); }

.scenario-who {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.scenario-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.scenario-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Stack ── */
.stack {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.stack-inner { max-width: var(--max); margin: 0 auto; }

.repo-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.repo-item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  transition: background 0.15s;
}

.repo-item:hover { background: var(--bg-surface); }

.repo-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.repo-name a { color: var(--text); }
.repo-name a:hover { color: var(--accent); }

.repo-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent);
  background: rgba(212, 136, 42, 0.12);
  border: 1px solid rgba(212, 136, 42, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}

.repo-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-top: 0.05rem;
}

.repo-license {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* ── Status ── */
.status {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.status-inner { max-width: var(--max-prose); margin: 0 auto; }

.status-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Contribute ── */
.contribute {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.contribute-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contribute-path {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.contribute-path h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contribute-path p, .contribute-path li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contribute-path ol {
  margin: 1rem 0 0 1.25rem;
}

.contribute-path li { margin-bottom: 0.3rem; }

/* ── CTA Band ── */
.cta-band {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-band p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 700px) {
  nav { flex-wrap: wrap; gap: 0.75rem; }
  .nav-links { gap: 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .intro-inner { grid-template-columns: 1fr; gap: 2rem; }
  .scenario-grid { grid-template-columns: 1fr; }
  .repo-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .repo-license { display: none; }
  .contribute-inner { grid-template-columns: 1fr; }
  .scenarios, .stack, .contribute, .intro, .thesis, .status { padding: 3rem 1.25rem; }
}
