:root {
  --ink: #07131e;
  --panel: #0d1b28;
  --panel-2: #132535;
  --paper: #f5f1eb;
  --muted: #aab6c1;
  --line: rgba(232, 240, 247, 0.14);
  --lime: #ff8e7b;
  --mint: #ffb3a6;
  --orange: #ff9d63;
  --red: #ff665e;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 5%, rgba(255, 142, 123, 0.09), transparent 27rem),
    radial-gradient(circle at 54% 105%, rgba(255, 142, 123, 0.13), transparent 32rem),
    var(--ink);
  color: #f5f7f2;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: .75rem 1rem;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 30, 0.9);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.035em;
}
.brand-mark { width: 42px; height: 30px; display: block; background: url('/assets/mark.svg') center/contain no-repeat; }
.notice-bar { padding: .52rem 1rem; border-bottom: 1px solid var(--line); text-align: center; color: #d3dce3; font-size: .72rem; letter-spacing: .035em; }
.brand small {
  color: var(--mint);
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: #cfdbd5;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--lime); }
.nav-cta {
  border: 1px solid rgba(255, 142, 123, .5);
  padding: .65rem .95rem;
  color: var(--lime) !important;
}
.menu-button { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--mint);
  font: 800 .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); }

.hero { padding: clamp(4.5rem, 9vw, 8.4rem) 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
h1, h2, h3 { margin: 0; line-height: .98; }
h1 {
  max-width: 11ch;
  margin-top: 1.6rem;
  font-family: "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
}
.hero h1 .hero-serif { display: block; font-family: "Bodoni 72", Didot, Georgia, serif; font-size: .86em; font-weight: 500; }
.hero h1 .hero-sans { display: block; margin-top: .08em; font-family: "Avenir Next", Avenir, sans-serif; font-size: .74em; font-weight: 400; letter-spacing: -.07em; }
.lede { max-width: 58ch; margin: 1.8rem 0 0; color: #b8c7c1; font-size: clamp(1.05rem, 1.6vw, 1.26rem); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.15rem;
  border: 1px solid var(--line);
  color: #eef5ef;
  text-decoration: none;
  font-weight: 800;
}
.button-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button:hover { transform: translateY(-2px); transition: transform .2s ease; }
.microcopy { margin: 1rem 0 0; color: #81928b; font: .74rem/1.5 ui-monospace, monospace; }

.signal-board {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 38, 53, .96), rgba(8, 20, 31, .9));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
  padding: 1.1rem;
}
.signal-board::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.board-top, .board-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.board-top { padding: .3rem .4rem 1.4rem; border-bottom: 1px solid var(--line); }
.live-pill { display: inline-flex; align-items: center; gap: .45rem; color: #c9d8d1; font: .7rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .11em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(255,142,123,.09); }
.board-time { color: #71847c; font: .7rem/1 ui-monospace, monospace; }
.chart-wrap { position: relative; height: 250px; margin: 2rem .3rem 1rem; }
.chart-label { position: absolute; top: 0; left: 0; }
.chart-label strong { display: block; font: 500 2.3rem/1 "Bodoni 72", Didot, serif; }
.chart-label span { color: var(--mint); font: .7rem/1.4 ui-monospace, monospace; }
.chart { position: absolute; inset: 65px 0 0; width: 100%; height: 185px; }
.chart .area { fill: url(#areaGradient); }
.chart .line { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255,142,123,.3)); }
.board-bottom { border-top: 1px solid var(--line); padding: 1.2rem .4rem .3rem; }
.metric span { display: block; color: #72877e; font: .64rem/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.metric strong { display: block; margin-top: .35rem; color: #ecf2ee; font: 800 1rem/1 ui-monospace, monospace; }
.metric strong.safe { color: var(--lime); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.4rem 1.25rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--lime); font: 700 1.4rem/1 ui-monospace, monospace; }
.trust-item span { display: block; margin-top: .55rem; color: #899b93; font-size: .78rem; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-paper { background: var(--paper); color: #12201c; }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { max-width: 12ch; font: 500 clamp(3rem, 5.5vw, 6rem)/.98 "Bodoni 72", Didot, Georgia, serif; letter-spacing: -.055em; }
.section-head p { max-width: 52ch; margin: 0 0 .45rem; color: #52625c; font-size: 1.08rem; }
.section:not(.section-paper) .section-head p { color: #91a29b; }

.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.track-card {
  min-height: 365px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  border: 1px solid #d6d7ce;
  background: rgba(255,255,255,.45);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.track-card:hover { transform: translateY(-7px); background: #fff; }
.track-number { color: #6d7a74; font: 700 .7rem/1 ui-monospace, monospace; }
.track-icon { width: 74px; height: 74px; margin: 2.2rem 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid #c5c9bf; font: 500 2.2rem/1 "Bodoni 72", serif; }
.track-card h3 { font: 500 2.1rem/1.05 "Bodoni 72", Didot, serif; }
.track-card p { color: #63716b; margin: .8rem 0 0; }
.track-link { margin-top: 2rem; font-weight: 900; }

.scanner-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.scanner-copy h2 { margin-top: 1.2rem; max-width: 9ch; font: 500 clamp(3.2rem, 6vw, 6.6rem)/.94 "Bodoni 72", Didot, serif; letter-spacing: -.06em; }
.scanner-copy p { max-width: 48ch; color: #93a59d; }
.scanner {
  border: 1px solid var(--line);
  background: rgba(19, 37, 52, .72);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.scanner-result { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.score-ring {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--score, 20%), rgba(255,255,255,.08) 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: var(--panel); }
.score-ring strong { position: relative; font: 800 1.5rem/1 ui-monospace, monospace; }
.result-copy span { color: #7f9289; font: .7rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.result-copy h3 { margin-top: .55rem; font: 500 2rem/1 "Bodoni 72", serif; }
.result-copy p { color: #9aaba4; margin: .6rem 0 0; font-size: .9rem; }
.check-list { display: grid; gap: .7rem; margin-top: 1.4rem; }
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.check-row:last-child { border-bottom: 0; }
.check-row span { color: #d4ddd8; font-weight: 650; }
.toggle { width: 48px; height: 26px; border: 0; border-radius: 20px; background: #354655; position: relative; cursor: pointer; }
.toggle::after { content: ""; position: absolute; width: 18px; height: 18px; left: 4px; top: 4px; border-radius: 50%; background: #91a29b; transition: .2s ease; }
.toggle[aria-pressed="true"] { background: rgba(255,142,123,.24); }
.toggle[aria-pressed="true"]::after { transform: translateX(22px); background: var(--lime); }
.scanner-note { margin: 1rem 0 0; color: #70847b; font-size: .76rem; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.principle { border: 1px solid #d7d7cd; padding: 2rem; min-height: 240px; }
.principle strong { display: block; color: #849188; font: 700 .7rem/1 ui-monospace, monospace; }
.principle h3 { margin-top: 3rem; font: 500 2.2rem/1 "Bodoni 72", serif; }
.principle p { color: #596760; }

.disclosure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.disclosure h2 { font: 500 clamp(2.8rem, 5vw, 5rem)/1 "Bodoni 72", serif; }
.disclosure p { color: #90a199; }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.footer-grid p { color: #7f9189; max-width: 65ch; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem 1.2rem; }
.footer-links a { color: #b4c2bc; font-size: .82rem; }

.article-hero { padding: clamp(4.5rem, 9vw, 8rem) 0 3.5rem; border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 12ch; font-size: clamp(3.8rem, 7vw, 7rem); }
.article-hero .lede { max-width: 65ch; }
.crumbs { color: #81928b; font: .72rem/1.4 ui-monospace, monospace; }
.crumbs a { color: var(--mint); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(2rem, 7vw, 7rem); padding: 4rem 0 7rem; }
.toc { position: sticky; top: 105px; align-self: start; border-left: 1px solid var(--line); padding-left: 1rem; }
.toc strong { display: block; color: #6f8279; font: .68rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.toc a { display: block; color: #a5b4ad; text-decoration: none; margin-top: .9rem; font-size: .84rem; }
.toc a:hover { color: var(--lime); }
.article { color: #d8e1dc; }
.article h2 { scroll-margin-top: 110px; margin: 3.4rem 0 1rem; font: 500 2.8rem/1.04 "Bodoni 72", serif; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 2rem 0 .7rem; font-size: 1.2rem; line-height: 1.2; }
.article p, .article li { color: #aebdb6; }
.article a { color: var(--mint); }
.callout { margin: 1.4rem 0; border-left: 3px solid var(--lime); background: rgba(255,142,123,.07); padding: 1.15rem 1.3rem; }
.callout strong { color: #edf3ef; }
.steps { counter-reset: steps; display: grid; gap: .8rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 38px 1fr; gap: .9rem; align-items: start; border: 1px solid var(--line); padding: 1rem; }
.steps li::before { content: counter(steps, decimal-leading-zero); color: var(--lime); font: 700 .74rem/1.6 ui-monospace, monospace; }
.source-list { padding-left: 1.2rem; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 111px; left: 0; right: 0; padding: 1.2rem 20px 1.6rem; background: #07131e; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--lime); }
  .hero-grid, .section-head, .scanner-grid, .disclosure { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  h1 { font-size: clamp(3.8rem, 16vw, 6.2rem); }
  .signal-board { min-height: 430px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .track-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 300px; }
  .principles { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .brand small { display: none; }
  .hero { padding-top: 3.2rem; }
  h1 { font-size: clamp(3.45rem, 17vw, 5rem); }
  .lede { font-size: 1rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .signal-board { min-height: 390px; padding: .85rem; }
  .chart-wrap { height: 215px; }
  .chart { height: 150px; }
  .board-bottom { gap: .5rem; }
  .metric:nth-child(2) { text-align: center; }
  .metric:last-child { text-align: right; }
  .trust-item { padding-inline: .7rem; }
  .section { padding-block: 4.5rem; }
  .section-head h2, .scanner-copy h2 { font-size: 3.3rem; }
  .scanner-result { grid-template-columns: 94px 1fr; }
  .score-ring { width: 88px; }
  .result-copy h3 { font-size: 1.65rem; }
  .article-hero h1 { font-size: 3.55rem; }
  .article-layout { padding-top: 2.5rem; }
  .article h2 { font-size: 2.35rem; }
}

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