:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #9aa9ba;
  --muted-strong: #c2ccd7;
  --canvas: #05080d;
  --canvas-raised: #0a1018;
  --surface: rgba(14, 23, 34, 0.82);
  --surface-strong: #101b28;
  --line: rgba(181, 214, 238, 0.14);
  --line-strong: rgba(104, 229, 212, 0.33);
  --aqua: #68e5d4;
  --aqua-soft: rgba(104, 229, 212, 0.12);
  --blue: #72a8ff;
  --violet: #a68cff;
  --gold: #f0ca80;
  --warning: #ffca75;
  --danger: #ff8e91;
  --success: #82e6b5;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 0%, rgba(49, 132, 163, 0.20), transparent 31rem),
    radial-gradient(circle at 88% 17%, rgba(117, 80, 190, 0.13), transparent 28rem),
    linear-gradient(180deg, #070b11 0%, var(--canvas) 48%, #060a10 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a {
  color: var(--aqua);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a4fff2;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
  border-radius: 8px;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 0.65rem 0.9rem;
  color: #04100e;
  background: var(--aqua);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  gap: 1.3rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-copy {
  display: grid;
  line-height: 1.06;
}

.brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  padding: clamp(4.4rem, 10vw, 8rem) 0 clamp(3.4rem, 8vw, 6.6rem);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 9%;
  right: -9rem;
  width: 27rem;
  height: 27rem;
  content: "";
  border: 1px solid rgba(104, 229, 212, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(104, 229, 212, 0.026),
    0 0 0 118px rgba(114, 168, 255, 0.018);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.3rem;
  padding: 0.43rem 0.72rem;
  color: #b5fff4;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--aqua-soft);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 7.1vw, 5.35rem);
}

.legal-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.38rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.16rem;
  letter-spacing: -0.012em;
}

h4 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 63ch;
  color: var(--muted-strong);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.hero-meta {
  display: flex;
  margin-top: 1.7rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.66rem;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  font-weight: 720;
}

.tag::before {
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px rgba(104, 229, 212, 0.65);
}

.signal-card {
  position: relative;
  min-height: 315px;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(104, 229, 212, 0.095), transparent 43%),
    linear-gradient(325deg, rgba(166, 140, 255, 0.10), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-stage {
  display: grid;
  min-height: 218px;
  place-items: center;
}

.signal-stage img {
  width: 144px;
  filter: drop-shadow(0 22px 34px rgba(36, 194, 172, 0.22));
}

.signal-card footer {
  display: flex;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
}

.section-band {
  padding: clamp(3rem, 7vw, 5.8rem) 0;
  border-top: 1px solid rgba(181, 214, 238, 0.08);
}

.section-intro {
  max-width: 690px;
  margin-bottom: 2rem;
}

.section-intro p {
  color: var(--muted);
}

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

.card {
  position: relative;
  min-height: 190px;
  padding: 1.35rem;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

a.card:hover {
  color: var(--muted-strong);
  border-color: var(--line-strong);
  background: linear-gradient(155deg, rgba(104, 229, 212, 0.08), rgba(255, 255, 255, 0.018));
  transform: translateY(-3px);
}

.card h3 {
  color: var(--ink);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-kicker {
  margin-bottom: 2rem;
  color: var(--aqua);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.18rem;
  color: var(--aqua);
  font-size: 1.2rem;
}

.legal-hero {
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
}

.legal-layout {
  display: grid;
  padding-bottom: 6rem;
  grid-template-columns: 245px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.toc {
  position: sticky;
  top: 105px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 24, 0.68);
}

.toc strong {
  display: block;
  margin: 0.2rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.38rem 0.48rem;
  color: var(--muted-strong);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
}

.toc a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.document {
  min-width: 0;
}

.document > section {
  padding: 0 0 2.7rem;
  margin-bottom: 2.7rem;
  border-bottom: 1px solid var(--line);
}

.document > section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.document p,
.document li,
.surface p,
.surface li {
  color: var(--muted-strong);
}

.document ul,
.document ol,
.surface ul,
.surface ol {
  margin: 0.55rem 0 1rem;
  padding-left: 1.35rem;
}

.document li + li,
.surface li + li {
  margin-top: 0.46rem;
}

.surface {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.surface + .surface {
  margin-top: 1rem;
}

.callout {
  padding: 1rem 1.05rem;
  margin: 1.1rem 0;
  color: var(--muted-strong);
  border: 1px solid rgba(104, 229, 212, 0.22);
  border-left: 3px solid var(--aqua);
  border-radius: var(--radius-md);
  background: rgba(104, 229, 212, 0.07);
}

.callout strong {
  color: var(--ink);
}

.callout.warning {
  border-color: rgba(255, 202, 117, 0.25);
  border-left-color: var(--warning);
  background: rgba(255, 202, 117, 0.07);
}

.callout.danger {
  border-color: rgba(255, 142, 145, 0.27);
  border-left-color: var(--danger);
  background: rgba(255, 142, 145, 0.07);
}

.callout.success {
  border-color: rgba(130, 230, 181, 0.25);
  border-left-color: var(--success);
  background: rgba(130, 230, 181, 0.07);
}

.table-wrap {
  margin: 1.2rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.036);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td {
  color: var(--muted-strong);
}

tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 0.13em 0.35em;
  color: #b9fff5;
  border: 1px solid rgba(104, 229, 212, 0.18);
  border-radius: 6px;
  background: rgba(104, 229, 212, 0.07);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.fact {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.fact span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.82rem 0.85rem 0.82rem 2.6rem;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  position: absolute;
  top: 0.86rem;
  left: 0.8rem;
  display: grid;
  width: 1.18rem;
  height: 1.18rem;
  content: "✓";
  color: #06130f;
  border-radius: 50%;
  background: var(--success);
  place-items: center;
  font-size: 0.69rem;
  font-weight: 900;
}

.checklist li.pending::before {
  content: "!";
  color: #241500;
  background: var(--warning);
}

.checklist li.blocker::before {
  content: "×";
  color: #240407;
  background: var(--danger);
}

.button-row {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.72rem 1rem;
  align-items: center;
  justify-content: center;
  color: #03100e;
  border: 1px solid var(--aqua);
  border-radius: 12px;
  background: var(--aqua);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 820;
}

.button:hover {
  color: #03100e;
  background: #9afff1;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button.secondary:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--aqua-soft);
}

.small {
  color: var(--muted);
  font-size: 0.82rem;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.footer-grid p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-content: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

@media (max-width: 920px) {
  .nav-shell {
    min-height: 70px;
  }

  .brand-copy span {
    display: none;
  }

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

  .signal-card {
    min-height: 260px;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .nav-shell,
  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-shell {
    display: grid;
    min-height: auto;
    padding: 0.72rem 0 0.55rem;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero::after {
    opacity: 0.4;
  }

  .card-grid,
  .facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .toc strong {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #10161d;
    --muted: #56606b;
    --muted-strong: #28323d;
    --canvas: #fff;
    --surface: #fff;
    --line: #d9dee5;
    --aqua: #006b62;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10.5pt;
  }

  body::before,
  .site-header,
  .toc,
  .signal-card,
  .button-row,
  .site-footer {
    display: none !important;
  }

  .hero,
  .legal-hero {
    padding: 0 0 1.2rem;
  }

  .hero::after {
    display: none;
  }

  .hero-grid,
  .legal-layout {
    display: block;
  }

  h1 {
    max-width: none;
    font-size: 28pt;
  }

  h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  h3 {
    page-break-after: avoid;
  }

  .document > section {
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }

  .surface,
  .callout,
  .table-wrap {
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: #006b62;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    word-break: break-all;
  }
}
