:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --ink: #1d201b;
  --muted: #606759;
  --line: #d7d2c4;
  --panel: #fbfaf6;
  --panel-strong: #e9e1d0;
  --green: #286755;
  --red: #9d3d30;
  --gold: #b87b2c;
  --shadow: 0 24px 70px rgba(41, 39, 31, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(29, 32, 27, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 32, 27, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(184, 123, 44, 0.16), transparent 28rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(251, 250, 246, 0.2), transparent 45%, rgba(40, 103, 85, 0.08));
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header,
.footer,
.section,
.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(29, 32, 27, 0.12);
  background: color-mix(in srgb, var(--bg), transparent 9%);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.button,
.mini-button,
.text-link {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(40, 103, 85, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.section {
  padding: clamp(64px, 9vw, 118px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  min-height: calc(100vh - 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
}

p {
  color: var(--muted);
}

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

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button {
  padding: 11px 18px;
}

.button:hover,
.mini-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 32, 27, 0.12);
}

.button:active,
.mini-button:active {
  transform: translateY(0) scale(0.98);
}

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

.secondary {
  background: transparent;
  color: var(--ink);
}

.inverse {
  background: var(--panel);
  color: var(--ink);
}

.signal-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-board::before {
  content: "";
  display: block;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--green) 0 22px, var(--gold) 22px 44px, var(--red) 44px 66px);
}

.board-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.board-row span {
  color: var(--muted);
}

.board-row strong {
  color: var(--green);
}

.pulse-map {
  position: relative;
  height: 210px;
  background:
    linear-gradient(90deg, rgba(29, 32, 27, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 32, 27, 0.07) 1px, transparent 1px),
    var(--panel-strong);
  background-size: 32px 32px;
}

.pulse-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(40, 103, 85, 0.35);
  animation: pulse 2.8s infinite;
}

.pulse-map span:nth-child(1) { left: 18%; top: 34%; }
.pulse-map span:nth-child(2) { left: 42%; top: 58%; animation-delay: 400ms; }
.pulse-map span:nth-child(3) { left: 68%; top: 28%; animation-delay: 800ms; }
.pulse-map span:nth-child(4) { left: 80%; top: 70%; animation-delay: 1200ms; }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 74px);
}

.feature-list,
.status-grid,
.system-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature,
.status-card,
.system-panel,
.note-card,
.faq,
.prose {
  background: var(--panel);
}

.feature,
.status-card,
.system-panel {
  padding: 26px;
}

.feature-index {
  display: block;
  margin-bottom: 48px;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--ink);
  background: var(--green);
  color: var(--bg);
  padding: clamp(32px, 6vw, 58px);
}

.band .eyebrow,
.band p,
.band h2 {
  color: var(--bg);
}

.timeline {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 22px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.timeline-item:hover {
  background: #fffdf5;
  transform: translateX(4px);
}

time {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.page-shell {
  padding: clamp(56px, 9vw, 110px) 0 80px;
}

.page-shell.narrow {
  width: min(820px, calc(100% - 36px));
}

.page-head {
  margin-bottom: clamp(36px, 7vw, 72px);
}

.status-card {
  position: relative;
  min-height: 170px;
}

.status-card p {
  color: var(--green);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.status-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(40, 103, 85, 0.12);
}

.status-dot.muted {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(184, 123, 44, 0.14);
}

.note-stack {
  display: grid;
  gap: 18px;
}

.note-card {
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 42px);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.text-link {
  color: var(--green);
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.mini-button {
  min-height: 38px;
  margin-top: 18px;
  padding: 9px 14px;
  background: transparent;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border: 1px solid var(--line);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-size: 20px;
  font-weight: 700;
}

.faq p {
  margin: 0;
  padding: 0 22px 22px;
}

.prose {
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 44px);
}

.prose h2 {
  margin-top: 28px;
  font-size: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 103, 85, 0.35);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 28px rgba(40, 103, 85, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 103, 85, 0);
    transform: scale(1);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-list,
  .status-grid,
  .system-panels {
    grid-template-columns: 1fr;
  }

  .band {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .footer,
  .section,
  .page-shell,
  .page-shell.narrow {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .button {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
