:root {
  --bg: #f5f5f1;
  --paper: #ffffff;
  --ink: #141614;
  --muted: #616761;
  --line: #d8ddd5;
  --accent: #d7ff3f;
  --accent-ink: #1c2300;
  --dark: #101310;
  --dark-2: #171b17;
  --dark-muted: #aeb8ae;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(19, 25, 18, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20,22,20,.08);
  background: rgba(245,245,241,.88);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px var(--ink);
}

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

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #3f453f;
}

.site-nav a:hover { color: #000; }

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero {
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #65705f;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(52px, 7vw, 92px);
}

.lede {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.34;
  color: #4e554e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover { background: #2a2f2a; }

.button.secondary {
  border: 1px solid #cfd4cc;
  background: rgba(255,255,255,.45);
}

.status-note {
  margin-top: 20px;
  font-size: 13px;
  color: #707770;
}

.hero-panel {
  background: var(--dark);
  color: white;
  padding: 28px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.signal-row span {
  padding: 7px 10px;
  border: 1px solid #323832;
  border-radius: 999px;
  color: #cfd7cf;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.diagram-card {
  display: grid;
  gap: 12px;
}

.node {
  border: 1px solid #394139;
  border-radius: 14px;
  padding: 15px 18px;
  background: #171b17;
}

.node.core {
  border-color: var(--accent);
  color: var(--accent);
}

.line {
  width: 1px;
  height: 28px;
  background: #485148;
  margin-left: 32px;
}

.branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.node.leaf {
  padding: 12px;
  text-align: center;
  font-size: 13px;
}

.hero-panel > p {
  margin: 22px 0 0;
  color: #aeb7ae;
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading.narrow {
  grid-template-columns: .75fr 1.25fr;
}

.section h2 {
  font-size: clamp(40px, 5vw, 66px);
}

.section-heading > p,
.lede-small {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  min-height: 250px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid #e2e5df;
  border-radius: var(--radius);
}

.card-index {
  display: block;
  margin-bottom: 70px;
  color: #7a827a;
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.025em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-dark .eyebrow { color: #a7b09f; }
.section-dark .section-heading > p { color: var(--dark-muted); }

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 54px;
}

.flow-step {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid #303730;
  border-radius: 18px;
  background: var(--dark-2);
}

.flow-step span {
  margin-bottom: auto;
  color: #6f796f;
  font-size: 12px;
}

.flow-step strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.flow-step small { color: #9ea89e; }

.flow-arrow {
  display: grid;
  place-items: center;
  color: #5e685e;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.spec-grid > div {
  padding: 20px;
  border-radius: 16px;
  background: #1b201b;
}

.spec-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7d887d;
}

.two-col {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-list > div {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-list span { color: var(--muted); }

.partner-section {
  padding-top: 35px;
}

.partner-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  padding: 48px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--accent-ink);
}

.partner-box h2 { max-width: 760px; }
.partner-box p { max-width: 760px; font-size: 18px; }
.partner-box .eyebrow { color: #556200; }

.partner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.partner-actions p {
  margin: 14px 0 0;
  font-size: 13px;
}

.compact-section { padding-top: 20px; }

.disclaimer {
  display: grid;
  grid-template-columns: .35fr 1.65fr;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0 50px;
  background: #eceee8;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-grid p {
  max-width: 440px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
  color: #656c65;
}

.footer-meta a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .section-heading.narrow,
  .two-col,
  .partner-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    height: 16px;
  }

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

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

@media (max-width: 680px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px;
  }

  .menu-button { display: block; }

  .hero { padding-top: 60px; }

  .hero h1 { font-size: clamp(44px, 14vw, 68px); }

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

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

  .card { min-height: 210px; }
  .card-index { margin-bottom: 40px; }

  .project-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .partner-box { padding: 30px; }

  .footer-grid {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
  }
}
