:root {
  --ink: #eef5fb;
  --muted: #a9bccb;
  --bg: #050d16;
  --bg-2: #081624;
  --panel: rgba(14, 32, 50, 0.88);
  --panel-solid: #0d2033;
  --line: rgba(193, 217, 234, 0.16);
  --teal: #63d9c8;
  --teal-soft: rgba(99, 217, 200, 0.11);
  --gold: #d9b767;
  --gold-soft: rgba(217, 183, 103, 0.11);
  --red: #ffb2aa;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(25, 123, 132, .24), transparent 34rem),
    radial-gradient(circle at 96% 20%, rgba(181, 134, 51, .15), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, #040a11 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: #91ecde; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: #061018;
  background: #fff;
  transform: translateY(-190%);
}
.skip-link:focus { transform: translateY(0); }

.glow {
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  opacity: .14;
  filter: blur(90px);
}
.glow-a { top: 8rem; left: -14rem; background: var(--teal); }
.glow-b { right: -15rem; bottom: 5rem; background: var(--gold); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: .82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 12, 20, .87);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .82rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #061018;
  background: linear-gradient(145deg, var(--teal), #c2f2ea);
  font-weight: 950;
  letter-spacing: -.07em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; line-height: 1.15; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .72rem; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .18rem;
}
nav a {
  padding: .52rem .66rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--teal-soft);
}

main, footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 3rem; }
.eyebrow, .kicker {
  color: var(--teal);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.035em;
}
h1 {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.65rem, 7vw, 6.3rem);
}
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }

.lead {
  max-width: 820px;
  margin: 1.55rem 0 0;
  color: #d5e4ee;
  font-size: clamp(1.1rem, 2.2vw, 1.43rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .78rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .72rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
}
.button.primary { color: #061018; background: var(--teal); border-color: transparent; }
.button.secondary { color: var(--ink); background: rgba(255,255,255,.035); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .72rem;
  margin-top: 3rem;
}
.meta-grid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.026);
}
.meta-grid dt {
  color: var(--muted);
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.meta-grid dd { margin: .34rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.status {
  display: inline-block;
  padding: .28rem .56rem;
  border-radius: 999px;
  color: #c3faef;
  background: var(--teal-soft);
  font-size: .8rem;
}

.notice, .legal-notice {
  margin: 1rem 0 2rem;
  padding: 1rem 1.12rem;
  border-radius: 14px;
}
.notice {
  border: 1px solid rgba(217, 183, 103, .3);
  color: #eee1c0;
  background: var(--gold-soft);
}
.legal-notice {
  border: 1px solid rgba(255, 178, 170, .25);
  color: #ffd7d2;
  background: rgba(255, 105, 92, .07);
}

.content-section {
  margin: 1.2rem 0;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 34, 54, .91), rgba(8, 23, 38, .85));
  box-shadow: var(--shadow);
}
.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.section-number {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 13px;
  color: #061018;
  background: var(--gold);
  font-weight: 950;
}
.section-heading h2 { margin-top: .35rem; }

.prose { max-width: 880px; margin-top: 1.5rem; }
.prose p { margin: 0 0 1rem; color: #d2e0ea; }
.prose strong { color: var(--ink); }

.bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .7rem;
  margin-top: 1.5rem;
}
.bridge-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.028);
}
.bridge-card p { margin: .7rem 0 0; color: var(--muted); }
.bridge-card .site-label {
  margin: 0 0 .7rem;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.bridge-arrow {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
}

.card-grid, .standard-grid, .stage-grid, .question-grid, .source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.5rem;
}
.card, .standard-card, .stage, .question, .source-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.028);
}
.card p, .standard-card p, .stage p, .question p, .source-card p {
  margin: .65rem 0 0;
  color: var(--muted);
}
.card-number, .stage-number, .standard-number {
  margin: 0 0 .7rem !important;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  gap: .68rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding: .92rem 1rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  color: #d5e3ed;
  background: rgba(255,255,255,.026);
}
.principles strong { color: var(--ink); }

.reciprocal-table, .record-table {
  width: 100%;
  margin-top: 1.35rem;
  border-collapse: collapse;
  border: 1px solid var(--line);
}
.reciprocal-table th, .reciprocal-table td,
.record-table th, .record-table td {
  padding: .88rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.reciprocal-table th, .record-table th {
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reciprocal-table tr:last-child td, .record-table tr:last-child td { border-bottom: 0; }

.ladder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
  margin-top: 1.4rem;
}
.ladder-step {
  position: relative;
  min-height: 9.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.026);
}
.ladder-step span {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ladder-step strong { display: block; margin-top: .5rem; }
.ladder-step p { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }

.callout {
  margin-top: 1.4rem;
  padding: 1.08rem;
  border: 1px solid rgba(99, 217, 200, .25);
  border-radius: 16px;
  color: #d3eae6;
  background: rgba(99, 217, 200, .06);
}
.callout h3 { margin-bottom: .55rem; }

.source-card a { overflow-wrap: anywhere; }
.small { color: var(--muted); font-size: .9rem; }

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.signature-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: #061018;
  background: var(--gold);
  font-weight: 950;
}
.signature span, .signature a { display: block; }
.signature span { color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 4rem;
  color: var(--muted);
  font-size: .9rem;
}
footer p { margin: .25rem 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
.footer-right { text-align: right; }

@media (max-width: 1000px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .bridge { grid-template-columns: 1fr; }
  .bridge-arrow { transform: rotate(90deg); min-height: 1.5rem; }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .meta-grid, .card-grid, .standard-grid, .stage-grid, .question-grid, .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body { line-height: 1.58; }
  .site-header, main, footer { width: min(calc(100% - 1rem), var(--max)); }
  h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .hero { padding-top: 3.2rem; }
  .meta-grid, .card-grid, .standard-grid, .stage-grid, .question-grid, .source-grid,
  .ladder { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .reciprocal-table { display: block; overflow-x: auto; }
  footer { flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-links { justify-content: flex-start; }
}
