@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f8f7f1;
  --surface: #ffffff;
  --surface-2: #eff2ea;
  --surface-3: #e3e9df;
  --ink: #1d2922;
  --body: #536158;
  --muted: #68736b;
  --line: #dde3d9;
  --line-strong: #c3cec2;
  --green: #19734b;
  --green-bright: #34a875;
  --blue: #356b9e;
  --amber: #a56d14;
  --red: #a94442;
  --shadow: 0 16px 40px rgba(47, 65, 53, .08);
  --page: min(1180px, calc(100vw - 40px));
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(800px 520px at 77% -12%, rgba(52, 168, 117, .15), transparent 68%),
    radial-gradient(700px 520px at 4% 40%, rgba(53, 107, 158, .08), transparent 70%),
    var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .3;
  background-image: radial-gradient(rgba(29,41,34,.12) .6px, transparent .6px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: #ffffff;
  background: var(--green-bright);
  border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(195,206,194,.82);
  background: rgba(248,247,241,.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: var(--page);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand img { width: 27px; }
.brand-name { font-size: 19px; letter-spacing: -.04em; }
.brand-name span { color: var(--muted); font-weight: 500; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 11px;
  color: var(--body);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }

.button {
  min-height: 40px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #ffffff; background: var(--green); }
.button-primary:hover { background: #125f3c; }
.button-secondary { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.button-secondary:hover { border-color: var(--green); }
.button-quiet { color: var(--body); background: transparent; border-color: var(--line); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button[aria-disabled="true"], .button:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.shell { width: var(--page); margin: 0 auto; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-line { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
p { color: var(--body); line-height: 1.68; }
.lede { max-width: 720px; font-size: clamp(17px, 2vw, 21px); }
.quiet { color: var(--muted); }
.text-link { color: var(--green); text-decoration: underline; text-decoration-color: rgba(25,115,75,.3); text-underline-offset: 3px; }

.hero { padding: 108px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 68px; align-items: center; }
.hero h1 span { color: var(--body); font-weight: 500; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.release-line { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font: 12px var(--mono); }

.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(52,168,117,.13); }

.node-map {
  min-height: 440px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(239,242,234,.96), rgba(255,255,255,.9));
  box-shadow: var(--shadow);
}
.node-map::before {
  position: absolute; inset: 0; content: "";
  background-image: linear-gradient(rgba(53,107,158,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(53,107,158,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.node-core { position: relative; z-index: 2; width: 142px; height: 142px; display: grid; place-items: center; border: 1px solid rgba(25,115,75,.35); border-radius: 50%; background: #e6f2e9; box-shadow: 0 18px 45px rgba(25,115,75,.16); }
.node-core img { width: 76px; }
.node-label { position: absolute; z-index: 3; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(47,65,53,.08); font: 11px var(--mono); }
.node-label::before { content: ""; width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--blue); }
.node-label.local::before { background: var(--green); }
.node-a { left: 8%; top: 18%; }
.node-b { right: 7%; top: 24%; }
.node-c { right: 11%; bottom: 19%; }
.node-d { left: 7%; bottom: 25%; }
.trust-boundary { position: absolute; z-index: 1; width: 270px; height: 270px; border: 1px dashed rgba(25,115,75,.42); border-radius: 50%; }
.trust-label { position: absolute; bottom: 20px; left: 20px; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat { min-height: 112px; padding: 24px; border-right: 1px solid var(--line); background: rgba(255,255,255,.78); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 8px; font-size: 24px; }
.stat span { color: var(--muted); font: 11px var(--mono); text-transform: uppercase; }

.section-head { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head > div { max-width: 760px; }
.section-head p:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(47,65,53,.05);
}
.card:hover { border-color: var(--line-strong); }
.card-icon { width: 38px; height: 38px; margin-bottom: 36px; display: grid; place-items: center; border: 1px solid rgba(25,115,75,.25); border-radius: 7px; color: var(--green); background: rgba(52,168,117,.1); font: 14px var(--mono); }
.card p:last-child { margin-bottom: 0; }

.badge {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font: 10px var(--mono);
  letter-spacing: .02em;
}
.badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--muted); }
.badge.available, .badge.shipped, .badge.open { color: var(--green); border-color: rgba(25,115,75,.24); background: rgba(52,168,117,.1); }
.badge.available::before, .badge.shipped::before, .badge.open::before { background: var(--green); }
.badge.progress, .badge.review { color: #285b88; border-color: rgba(53,107,158,.25); background: rgba(53,107,158,.09); }
.badge.progress::before, .badge.review::before { background: var(--blue); }
.badge.reserved, .badge.requested, .badge.planned, .badge.design { color: #89590e; border-color: rgba(165,109,20,.25); background: rgba(194,139,50,.1); }
.badge.reserved::before, .badge.requested::before, .badge.planned::before, .badge.design::before { background: var(--amber); }
.badge.blocked { color: #913a38; border-color: rgba(169,68,66,.24); background: rgba(169,68,66,.08); }
.badge.blocked::before { background: var(--red); }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-card { min-height: 210px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.feature-card .badge { align-self: flex-start; margin-bottom: auto; }
.feature-card h3 { margin-top: 34px; }

.product-frame { padding: 9px; border: 1px solid var(--line-strong); border-radius: 12px; background: #070a0f; box-shadow: 0 24px 80px rgba(0,0,0,.38); }
.product-frame img { width: 100%; border-radius: 6px; }
.product-caption { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.product-caption p { margin: 0; font-size: 13px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.principles { display: grid; gap: 10px; }
.principle { padding: 18px 20px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.78); }
.principle strong { color: var(--green); font: 12px var(--mono); }
.principle h3 { margin: 0 0 4px; font-size: 15px; }
.principle p { margin: 0; font-size: 13px; }

.page-hero { padding: 76px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 850px; font-size: clamp(38px, 6vw, 66px); }
.page-hero .lede { margin-bottom: 0; }

.filters { margin-bottom: 24px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-field { min-width: 240px; flex: 1 1 300px; }
.field, .select {
  width: 100%; min-height: 42px; padding: 9px 12px;
  color: var(--ink); border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface);
}
.select { width: auto; min-width: 150px; }
.field::placeholder { color: var(--muted); }

.work-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.filter-panel { position: sticky; top: 92px; align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.filter-panel h2 { margin-bottom: 16px; font-size: 13px; letter-spacing: 0; }
.filter-option { padding: 7px 0; display: flex; align-items: center; gap: 9px; color: var(--body); font-size: 12px; }
.filter-option input { accent-color: var(--green); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.work-card { padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.work-card:hover { border-color: var(--line-strong); }
.work-card-top { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.issue-number { color: var(--muted); font: 11px var(--mono); }
.work-card h3 { font-size: 16px; }
.work-card p { font-size: 13px; }
.labels { margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 5px; }
.label { padding: 4px 7px; color: var(--body); border: 1px solid var(--line); border-radius: 4px; font: 10px var(--mono); }
.work-owner { min-height: 19px; margin: auto 0 12px; color: var(--muted); font-size: 11px; }
.work-card-actions { display: flex; gap: 8px; }
.work-card-actions .button { flex: 1; }

.system-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 8px; }
.system-state h3 { margin-bottom: 7px; }
.system-state p { margin-bottom: 0; }
.loading::before { display: block; width: 24px; height: 24px; margin: 0 auto 14px; content: ""; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
.task-main, .task-side > section { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.task-main h1 { font-size: clamp(30px, 4vw, 48px); }
.task-side { display: grid; align-content: start; gap: 12px; }
.task-main h2 { margin-top: 32px; font-size: 21px; }
.task-main h2:first-child { margin-top: 0; }
.task-main pre { white-space: pre-wrap; color: var(--body); font: 13px/1.7 var(--sans); }
.checklist { padding: 0; list-style: none; }
.checklist li { padding: 10px 0 10px 27px; position: relative; color: var(--body); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.checklist li::before { position: absolute; left: 0; content: "□"; color: var(--green); font-family: var(--mono); }
.meta-list { margin: 0; display: grid; gap: 12px; }
.meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.meta-row dt { color: var(--muted); }
.meta-row dd { margin: 0; color: var(--body); text-align: right; }
.claim-instructions { padding: 14px; border: 1px solid rgba(25,115,75,.24); border-radius: 6px; background: rgba(52,168,117,.08); }
.claim-instructions.warning { border-color: rgba(165,109,20,.3); background: rgba(194,139,50,.08); }
.claim-command { margin: 10px 0; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bfffe0; border: 1px solid #2b4135; border-radius: 5px; background: #101a15; font: 12px var(--mono); }

.timeline { position: relative; display: grid; gap: 10px; }
.timeline::before { position: absolute; top: 22px; bottom: 22px; left: 16px; width: 1px; content: ""; background: var(--line-strong); }
.timeline-item { position: relative; padding: 17px 18px 17px 50px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.timeline-item::before { position: absolute; z-index: 2; top: 19px; left: 11px; width: 10px; height: 10px; content: ""; border: 3px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline-item.shipped::before { background: var(--green); }
.timeline-item.progress::before { background: var(--blue); }
.timeline-item.planned::before { background: var(--amber); }
.timeline-item h3 { font-size: 15px; }
.timeline-item p { margin: 0; font-size: 13px; }

.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.download-card { min-height: 240px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.download-card h3 { margin-top: 24px; }
.download-card p { font-size: 13px; }
.download-card .button { align-self: flex-start; margin-top: auto; }
.download-meta { margin: 14px 0 20px; color: var(--muted); font: 11px/1.7 var(--mono); }

.code-block { position: relative; margin: 16px 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #070a0f; }
.code-block pre { margin: 0; padding: 18px 50px 18px 18px; overflow-x: auto; color: #bfffe0; font-size: 12px; line-height: 1.7; }
.copy-button { position: absolute; top: 9px; right: 9px; padding: 6px 8px; color: #b5c7bc; border: 1px solid #344a3e; border-radius: 4px; background: #18251e; cursor: pointer; font: 10px var(--mono); }
.copy-button:hover { color: #ffffff; }

.steps { counter-reset: step; display: grid; gap: 10px; }
.step { counter-increment: step; padding: 22px 22px 22px 64px; position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.step::before { position: absolute; top: 19px; left: 20px; width: 28px; height: 28px; display: grid; place-items: center; content: counter(step); color: var(--green); border: 1px solid rgba(25,115,75,.28); border-radius: 50%; background: rgba(52,168,117,.09); font: 11px var(--mono); }
.step h3 { font-size: 15px; }
.step p:last-child { margin-bottom: 0; font-size: 13px; }

.callout { padding: 22px; border-left: 3px solid var(--green); background: rgba(52,168,117,.08); }
.callout.warning { border-color: var(--amber); background: rgba(194,139,50,.08); }
.callout p:last-child { margin-bottom: 0; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); }
.footer-wrap { width: var(--page); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-wrap p { margin: 0; color: var(--muted); font: 10px var(--mono); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--body); font-size: 12px; }
.footer-links a:hover { color: var(--green); }

.mobile-only { display: none; }

@media (max-width: 940px) {
  .main-nav { position: fixed; inset: 68px 0 auto; padding: 16px 20px 22px; display: none; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); background: rgba(248,247,241,.98); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-actions .button-secondary { display: none; }
  .menu-button { width: 40px; height: 40px; margin-left: auto; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
  .hero-grid, .split, .task-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .node-map { min-height: 390px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .work-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; }
  .filter-panel h2 { width: 100%; }
  .task-side { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  :root { --page: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 62px; }
  .main-nav { top: 62px; }
  .nav-actions .button-primary { display: none; }
  .hero { padding: 76px 0 58px; }
  .hero h1 { font-size: 44px; }
  .hero-actions .button { width: 100%; }
  .node-map { min-height: 330px; }
  .node-core { width: 112px; height: 112px; }
  .node-core img { width: 60px; }
  .trust-boundary { width: 215px; height: 215px; }
  .node-label { padding: 7px 8px; font-size: 9px; }
  .section { padding: 58px 0; }
  .page-hero { padding: 54px 0 38px; }
  .section-head { align-items: start; flex-direction: column; }
  .card-grid, .feature-list, .work-grid, .download-grid, .task-side { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .product-caption, .footer-wrap { align-items: start; flex-direction: column; }
  .work-card-actions { flex-direction: column; }
  .select { width: 100%; }
  .step { padding-left: 56px; }
  .footer-links { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
