:root {
  --bg: #fbf8f2;
  --bg-alt: #f3ecdd;
  --card: #ffffff;
  --text: #211d16;
  --text-muted: #6b6152;
  --accent: #2f6b4f;
  --accent-dark: #1f4e39;
  --accent-soft: #e3efe6;
  --gold: #a6702f;
  --gold-soft: #f6ead6;
  --border: #e6dcc7;
  --radius: 12px;
  --max-width: 1060px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-header nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Hero */
.hero {
  padding: 88px 0 64px;
}

.badge {
  display: inline-block;
  max-width: 100%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 18px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  margin: 0 0 18px;
  max-width: 780px;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: var(--card);
}

.btn-ghost:hover { background: var(--bg-alt); }

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--bg-alt); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 18px;
  max-width: 760px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.02rem;
  margin: 0 0 32px;
}

.section-footnote {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 24px;
  max-width: 640px;
}

/* Problem stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-num {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  color: var(--accent-dark);
  margin: 0 0 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.flow-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.flow-icon { font-size: 1.4rem; }

.flow-title { font-weight: 700; font-size: 0.95rem; }

.flow-desc { font-size: 0.84rem; color: var(--text-muted); }

.flow-arrow-down {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 6px 0;
}

.flow-node-wide { width: 100%; }

.flow-node-accent {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.flow-node-accent .flow-title { color: var(--accent-dark); }

.flow-node-result {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.flow-node-result .flow-title { color: var(--gold); font-family: Georgia, serif; font-size: 1.05rem; }

/* Capabilities */
.capability-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.capability-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.capability-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.capability-heading-current { color: var(--accent-dark); }
.capability-heading-planned { color: var(--text-muted); }

.capability-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.93rem;
}

.capability-list li { margin-bottom: 14px; }
.capability-list li:last-child { margin-bottom: 0; }

.capability-list-planned { color: var(--text-muted); }

/* Living lab */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.lab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.lab-num {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--accent-dark);
}

.lab-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.target-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.target-heading {
  font-weight: 700;
  margin: 0 0 18px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.target-card { text-align: center; }

.target-num {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 0 4px;
}

.target-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Roadmap */
.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.roadmap-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.roadmap-list li:last-child { border-bottom: 1px solid var(--border); }

.roadmap-marker {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.roadmap-title { font-weight: 700; margin: 0 0 4px; }

.roadmap-desc { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Who this serves */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.who-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.who-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 12px;
}

.who-tag-current { background: var(--accent-soft); color: var(--accent-dark); }
.who-tag-next { background: var(--gold-soft); color: var(--gold); }
.who-tag-future { background: var(--border); color: var(--text-muted); }

.who-items { margin: 0; font-size: 0.95rem; }

/* Compare table */
.table-scroll { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.compare-table th:last-child, .compare-table td:last-child {
  color: var(--accent-dark);
  font-weight: 600;
  background: var(--accent-soft);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.team-name { font-weight: 700; font-size: 1.05rem; margin: 0 0 2px; }

.team-role { color: var(--gold); font-size: 0.86rem; margin: 0 0 12px; }

.team-bio { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; }

.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.team-tags span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Status */
.status-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.status-heading { font-weight: 700; margin: 0 0 14px; }

.status-list { list-style: none; margin: 0; padding: 0; }

.status-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.94rem;
  color: var(--text);
}

.status-list-done li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.status-list-progress li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Contact / CTA section */
.cta-section .btn-primary { margin-bottom: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 720px) {
  .site-header nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }

  .nav-toggle:checked ~ nav { display: flex; }

  .nav-cta { align-self: flex-start; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }

  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
  .flow-row { grid-template-columns: 1fr; }
}
