:root {
  color-scheme: light;
  --paper: #f4f5eb;
  --ink: #142822;
  --muted: #486056;
  --line: #cdd6ca;
  --dark: #102420;
  --lime: #bdfa78;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #268764; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.04; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -.065em; }
h3 { font-size: 1.4rem; letter-spacing: -.035em; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 1; transform: translateY(-200%); padding: .6rem; background: var(--lime); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand, nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 760; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--lime); background: var(--dark); font-size: 1.55rem; line-height: 1; }
nav { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .88rem; font-weight: 650; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(28px, 5vw, 78px); padding-block: clamp(58px, 9vw, 124px); }
.eyebrow { font: 700 .74rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.indicator { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #3f8068; }
.hero h1 { margin-top: 20px; font-size: clamp(3rem, 6vw, 6.5rem); letter-spacing: -.077em; line-height: .99; }
.hero em { color: #32654f; font-style: normal; }
.lede { max-width: 42ch; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 8px; font-size: .9rem; font-weight: 760; text-decoration: none; }
.primary { background: var(--lime); color: var(--ink); }
.primary:hover { background: #d4ffa5; }
.text-link { font-size: .9rem; font-weight: 700; text-decoration: none; }

.signal { overflow: hidden; border-radius: 19px; background: var(--dark); color: #d8ebdf; box-shadow: 0 18px 46px #14282226; }
.signal-label, .signal figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; padding: 14px 18px; font: .69rem/1.5 var(--mono); letter-spacing: .055em; }
.signal-label { border-bottom: 1px solid #385149; }
.signal-label span:last-child { color: var(--lime); }
.signal figcaption { border-top: 1px solid #385149; }
.signal svg { display: block; width: 100%; height: auto; font-family: var(--mono); }
.packet-in { animation: report-in 2.4s ease-in-out 2 both; }
.packet-out { animation: report-out 2.4s ease-in-out 2 both; }
.bridge-halo { animation: receive 2.4s ease-in-out 2 both; }
@keyframes report-in {
  0% { opacity: 0; }
  10% { opacity: 1; }
  52%, 100% { opacity: 0; transform: translateX(126px); }
}
@keyframes report-out {
  0%, 49% { opacity: 0; }
  55% { opacity: 1; }
  90%, 100% { opacity: 0; transform: translateX(116px); }
}
@keyframes receive {
  0%, 40%, 75%, 100% { opacity: .32; }
  52% { opacity: 1; }
}

.architecture, .review { padding-block: clamp(54px, 8vw, 102px); }
.architecture { background: #e6ede1; border-block: 1px solid var(--line); }
.section-heading { margin-block: 13px 32px; }
.section-heading > p { max-width: 60ch; margin-top: 12px; color: var(--muted); font-size: 1.06rem; }
.lab { background: var(--dark); color: #edf7ee; padding: clamp(16px, 3vw, 36px); border-radius: 18px; }
.lab-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.lab .indicator { background: var(--lime); }
.lab button { font: 650 .78rem/1.3 var(--sans); background: transparent; color: var(--lime); border: 1px solid #719788; border-radius: 7px; padding: 8px 12px; cursor: pointer; }
.lab button:hover { background: #28473e; }
.lab :focus-visible { outline-color: var(--lime); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 20px; list-style: none; }
.stages a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #537368; border-radius: 8px; color: #e1eee5; text-decoration: none; font-weight: 700; }
.stages a span { font: .73rem var(--mono); opacity: .82; }
.stages a:hover { border-color: var(--lime); }
.stages a[aria-current="step"] { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.stage { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; padding: clamp(16px, 3vw, 28px); border: 1px solid #49675e; border-radius: 12px; background: #172e28; }
.stage + .stage { margin-top: 12px; }
.stage.is-active { animation: reveal .3s ease-out both; margin-top: 0; }
.stage .eyebrow { color: #b3d0bf; }
.stage h3 { margin-block: 8px 10px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.stage p:not(.eyebrow) { color: #cfdfd6; }
.readout { border: 1px solid #4a6c61; border-radius: 9px; background: #102420; font: .83rem/1.45 var(--mono); }
.readout div { display: grid; grid-template-columns: minmax(70px, 1fr) 1.6fr; gap: 8px; padding: 10px 12px; }
.readout div + div { border-top: 1px solid #3a554d; }
.readout dt { color: #b3d0bf; }
.readout dd { color: var(--lime); overflow-wrap: anywhere; }
@keyframes reveal { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.review-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.product-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px #14282214; }
.product-shot figcaption { margin-top: 12px; color: var(--muted); font: .72rem/1.5 var(--mono); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.features article { padding-top: 16px; border-top: 1px solid var(--line); }
.features article > span { color: #32654f; font: 700 .8rem/1.5 var(--mono); }
.features h3 { margin-top: 8px; line-height: 1.15; }
.features p { margin-top: 8px; color: var(--muted); }
.closing { padding-block: 54px; background: var(--dark); color: #edf7ee; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.closing .eyebrow { color: var(--lime); }
.closing h2 { margin-block: 8px; font-size: clamp(2rem, 4vw, 3.5rem); }
.closing p:not(.eyebrow) { color: #cfdfd6; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; color: var(--muted); font-size: .82rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.4rem, 10vw, 6rem); }
  .signal { width: min(100%, 590px); }
  .stage { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 14px; gap: 12px; }
  nav { gap: 8px 16px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .signal-label, .signal figcaption { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .packet, .bridge-halo, .stage.is-active { animation: none; }
}
