:root {
  color-scheme: dark;
  --ink: #eaf3ee;
  --muted: #9aaba2;
  --line: rgba(208, 231, 219, .14);
  --line-strong: rgba(208, 231, 219, .25);
  --void: #07100d;
  --panel: #0b1612;
  --panel-high: #10201a;
  --signal: #67f2b8;
  --signal-soft: rgba(103, 242, 184, .12);
  --paper: #edf2ee;
  --paper-ink: #101612;
  --paper-muted: #5c6961;
  --paper-line: #cbd5ce;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--paper-ink);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button,
select { font: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 1px solid var(--signal);
  border-radius: 5px;
  background: var(--void);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 13, .9);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-weight: 780;
  letter-spacing: -.025em;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(103, 242, 184, .48);
  border-radius: 7px;
  background:
    linear-gradient(var(--signal), var(--signal)) 50% 3px / 1px 19px no-repeat,
    linear-gradient(90deg, var(--signal), var(--signal)) 3px 50% / 19px 1px no-repeat;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(103, 242, 184, .5);
}

.brand-mark::before { width: 5px; height: 5px; top: 4px; left: 4px; }
.brand-mark::after { width: 4px; height: 4px; right: 4px; bottom: 4px; }
.brand-mark i { width: 6px; height: 6px; top: 9px; left: 9px; }

.page-nav { display: flex; gap: 24px; }

.page-nav a {
  color: #adbbb4;
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .045em;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus-visible { color: var(--signal); }

.language-control select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #0b1512;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--void);
  background-size: 68px 68px;
  color: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 242, 184, .45), transparent);
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 52%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 218, 151, .16), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .75fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
  padding-block: 92px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  font-weight: 720;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 6.1vw, 6.45rem);
  line-height: .92;
  letter-spacing: -.072em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 680px;
  margin: 32px 0 0;
  color: #a7b5ae;
  font-size: clamp(1rem, 1.4vw, 1.17rem);
}

.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.protocol-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.025);
  color: #bdc9c3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .035em;
}

.endpoint-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(103, 242, 184, .32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 40, 31, .94), rgba(9, 19, 16, .96));
  box-shadow: 0 32px 80px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.045);
}

.endpoint-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 74px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(103, 242, 184, .65);
}

.endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #dce9e2;
  font-size: .78rem;
  letter-spacing: .035em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px var(--signal);
}

.endpoint-card > code {
  display: block;
  overflow-wrap: anywhere;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(3, 8, 6, .55);
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
}

.endpoint-card dl { margin: 22px 0 0; }

.endpoint-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.endpoint-card dt { color: #819087; font-size: .78rem; }
.endpoint-card dd { margin: 0; color: #d7e1dc; font-size: .78rem; font-weight: 680; text-align: right; }

.signal-strip {
  border-bottom: 1px solid var(--paper-line);
  background: #e4ebe6;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid > div {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  border-left: 1px solid var(--paper-line);
}

.signal-grid > div:last-child { border-right: 1px solid var(--paper-line); }
.signal-grid strong { font-size: 2.1rem; line-height: 1; letter-spacing: -.05em; }
.signal-grid span { margin-top: 9px; color: var(--paper-muted); font-size: .77rem; }

.section { padding: 112px 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .68fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.section-index {
  margin: 0 0 18px;
  color: #278b66;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.section-heading > p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.02rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  position: relative;
  min-height: 286px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: rgba(255,255,255,.43);
}

.capability-card.featured {
  grid-column: span 2;
  background: #dce7e0;
}

.capability-number {
  position: absolute;
  top: 19px;
  right: 21px;
  color: #89988e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .66rem;
}

.capability-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid #74a48e;
  border-radius: 50%;
  color: #116844;
  font-size: 1.12rem;
}

.capability-card h3 { margin: 0; font-size: 1.28rem; letter-spacing: -.025em; }
.capability-card p { max-width: 390px; margin: 10px 0 21px; color: var(--paper-muted); font-size: .88rem; }
.capability-card code { color: #16724f; font-size: .69rem; }

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

.section-heading.light > p { color: var(--muted); }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.flow-grid article {
  min-height: 250px;
  padding: 28px;
  border-left: 1px solid var(--line);
}

.flow-grid article:last-child { border-right: 1px solid var(--line); }
.flow-grid article > span { color: var(--signal); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; }
.flow-grid h3 { margin: 76px 0 10px; font-size: 1.15rem; }
.flow-grid p { margin: 0; color: var(--muted); font-size: .84rem; }

.metadata-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.metadata-panel > div { min-width: 0; padding: 24px; }
.metadata-panel > div + div { border-left: 1px solid var(--line); }
.metadata-panel span { display: block; margin-bottom: 11px; color: #7f9188; font-size: .72rem; }
.metadata-panel code { color: var(--signal); font-size: .72rem; overflow-wrap: anywhere; }

.policy-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 15px;
}

.policy-card {
  padding: 34px;
  border: 1px solid var(--paper-line);
  border-radius: 7px;
  background: rgba(255,255,255,.46);
}

.policy-card header { display: flex; align-items: center; gap: 12px; }
.policy-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.policy-card > p { color: var(--paper-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a9866; box-shadow: 0 0 0 5px rgba(26,152,102,.1); }
.shield { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #123e2e; color: #87f1c2; font-size: .75rem; }

.public-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 26px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.public-card li {
  position: relative;
  padding-left: 16px;
  color: #3f4e45;
  font-size: .8rem;
}

.public-card li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #299467;
}

.verification-methods { display: grid; gap: 10px; margin-top: 24px; }
.verification-methods > div { padding: 17px; border: 1px solid var(--paper-line); border-radius: 5px; background: #f3f6f3; }
.verification-methods strong { display: block; font-size: .82rem; }
.verification-methods span { display: block; margin-top: 5px; color: var(--paper-muted); font-size: .76rem; }

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.safety-grid article { min-height: 230px; padding: 26px; background: var(--paper); }
.safety-grid article > span { color: #25855f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; }
.safety-grid h3 { margin: 62px 0 9px; font-size: 1rem; }
.safety-grid p { margin: 0; color: var(--paper-muted); font-size: .79rem; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--void);
  color: var(--ink);
}

.footer-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner > div { display: flex; align-items: baseline; gap: 16px; }
.footer-inner > div span { color: var(--muted); font-size: .76rem; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: #aab9b1; font-size: .76rem; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--signal); }

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

@media (max-width: 940px) {
  .page-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .endpoint-card { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-card.featured { grid-column: span 2; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid article:nth-child(3) { border-top: 1px solid var(--line); }
  .flow-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .policy-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .topbar-inner { min-height: 62px; }
  .hero-grid { padding-block: 66px; gap: 44px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-summary { font-size: .97rem; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid > div { min-height: 104px; border-bottom: 1px solid var(--paper-line); }
  .section { padding: 78px 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card.featured { grid-column: auto; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid article { min-height: 210px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .flow-grid article:first-child { border-top: 0; }
  .metadata-panel { grid-template-columns: 1fr; }
  .metadata-panel > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .public-card ul { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 30px; align-items: flex-start; flex-direction: column; }
  .footer-inner > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}

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