/* Proofra prelaunch site — dark-first, brand graphite/cyan, amber as mining accent. */

:root {
  color-scheme: dark;

  --graphite: #0f1419;
  --surface: #1a1f26;
  --surface-2: #20262e;
  --off-white: #f2f5f7;
  --ink: #11161c;
  --cyan: #25d0e6;
  --cyan-deep: #14a3b8;
  --amber: #f6a41c;
  --gray: #7b8694;

  --bg: var(--graphite);
  --text: var(--off-white);
  --muted: #9aa6b3;
  --faint: #6b7681;
  --line: rgba(242, 245, 247, 0.10);
  --line-strong: rgba(242, 245, 247, 0.18);
  --card: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.05);

  --max: 1180px;
  --radius: 14px;
  --radius-sm: 10px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow — fixed so it sits behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(37, 208, 230, 0.12), transparent 60%),
    radial-gradient(720px 480px at 5% 8%, rgba(246, 164, 28, 0.06), transparent 55%),
    var(--graphite);
}

/* Faint engineering grid. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(242, 245, 247, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 245, 247, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 35%, transparent 85%);
}

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: #5fe0f0; }

h1, h2, h3 { letter-spacing: -0.02em; }

/* Never let long words force horizontal scroll on narrow screens. */
p, li, h1, h2, h3, blockquote, .hero-lead, .label { overflow-wrap: break-word; }
img, svg { max-width: 100%; }

::selection {
  background: rgba(37, 208, 230, 0.28);
  color: #fff;
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan-deep);
}

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--graphite) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  background: var(--off-white);
  border-radius: 9px;
  padding: 3px;
}
.brand-text { font-size: 1.06rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.93rem;
  font-weight: 550;
}

/* Right-side cluster: GitHub + Discord icons and the mobile menu button. */
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted) !important;
}
.icon-btn:hover {
  border-color: var(--cyan-deep);
  background: rgba(37, 208, 230, 0.08);
  color: var(--text) !important;
}
.icon-btn svg { display: block; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text) !important;
  font-weight: 600;
}
.nav-cta:hover {
  border-color: var(--cyan-deep);
  background: rgba(37, 208, 230, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  height: 40px;
  width: 44px;
  border-radius: 9px;
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #2fdaef, var(--cyan-deep));
  color: #03161a !important;
  box-shadow: 0 8px 30px rgba(37, 208, 230, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(37, 208, 230, 0.38);
  color: #03161a !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text) !important;
}
.btn-ghost:hover {
  border-color: var(--cyan-deep);
  background: rgba(37, 208, 230, 0.07);
}

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 22px 0 0;
  max-width: 17ch;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  font-weight: 720;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), #7ee6f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-note {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--faint);
}
.hero-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 164, 28, 0.14);
}

/* Decorative animated isometric stack, top-right. */
.hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-120px, -4vw, -40px);
  width: min(48vw, 560px);
  transform: translateY(-50%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .spin { transform-origin: 50% 50%; animation: drift 22s ease-in-out infinite; }
.hero-art .pulse { animation: pulse 4.5s ease-in-out infinite; }
.hero-art .pulse-2 { animation: pulse 4.5s ease-in-out infinite 1.4s; }
.hero-art .pulse-3 { animation: pulse 4.5s ease-in-out infinite 2.8s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- Proof strip ---------- */

.proof-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.proof-grid {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.proof-cell {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}
.proof-cell:first-child { border-left: none; }
.proof-cell .big {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}
.proof-cell .label {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Generic section ---------- */

.section { padding: clamp(64px, 10vw, 124px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; }
.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  font-weight: 680;
}
.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Feature cards ---------- */

.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.card .ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(37, 208, 230, 0.10);
  border: 1px solid rgba(37, 208, 230, 0.22);
  color: var(--cyan);
  margin-bottom: 18px;
}
.card.amber .ic {
  background: rgba(246, 164, 28, 0.10);
  border-color: rgba(246, 164, 28, 0.24);
  color: var(--amber);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 640;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Checklist (the standard) ---------- */

.checklist {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.check {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
}
.check .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(37, 208, 230, 0.12);
  color: var(--cyan);
  margin-top: 1px;
}
.check strong { display: block; font-weight: 630; }
.check span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.93rem; }

/* ---------- Status list (what exists today) ---------- */

.status-list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.status-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.status-row h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.status-row p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}
.pill.live { color: var(--cyan); border-color: rgba(37, 208, 230, 0.4); background: rgba(37, 208, 230, 0.08); }
.pill.prep { color: var(--amber); border-color: rgba(246, 164, 28, 0.4); background: rgba(246, 164, 28, 0.08); }
.pill.soon { color: var(--gray); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }

/* ---------- Roadmap ---------- */

.timeline {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tl-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.tl-step .phase {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.tl-step h3 { margin: 14px 0 8px; font-size: 1.15rem; font-weight: 630; }
.tl-step p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tl-step .node {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(37, 208, 230, 0.14);
}
.tl-step.future .node { background: var(--gray); box-shadow: 0 0 0 4px rgba(123, 134, 148, 0.14); }

/* ---------- Manifest teaser ---------- */

.teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.teaser-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(37, 208, 230, 0.10), transparent 60%),
    var(--surface);
}
.teaser-card blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.teaser-card cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- Notice / callout ---------- */

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 164, 28, 0.28);
  background: rgba(246, 164, 28, 0.06);
  color: #f0d8a8;
  font-size: 0.95rem;
}
.notice strong { color: var(--amber); }

/* ---------- Link list (official links) ---------- */

.link-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.link-card:hover {
  border-color: var(--cyan-deep);
  background: var(--card-hover);
  color: var(--text);
  transform: translateY(-2px);
}
.link-card .lc-main strong { display: block; font-weight: 620; }
.link-card .lc-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.9rem; }
.link-card .lc-arrow { color: var(--faint); }
.link-card:hover .lc-arrow { color: var(--cyan); }
.link-card[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Page title (sub-pages) ---------- */

.page-title { border-bottom: 1px solid var(--line); }
.page-title .wrap { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 60px); }
.page-title h1 {
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  font-weight: 700;
}
.page-title p { margin: 20px 0 0; max-width: 60ch; color: var(--muted); font-size: 1.12rem; }

/* ---------- Prose (manifest, legal) ---------- */

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 0.92rem;
}
.toc .toc-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.toc a {
  display: block;
  padding: 9px 0 9px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
.toc a:hover { color: var(--text); border-color: var(--cyan-deep); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 660;
  scroll-margin-top: 90px;
}
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; font-weight: 620; }
.prose p, .prose li { color: #cdd5dd; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .lede {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.5;
}

.codeblock {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #0a0e12;
  overflow: hidden;
}
.codeblock pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  font: 500 0.88rem/1.6 var(--mono);
  color: #cdd5dd;
  white-space: pre-wrap;
}
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--cyan-deep); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(37, 208, 230, 0.14), transparent 60%),
    radial-gradient(500px 260px at 100% -20%, rgba(246, 164, 28, 0.08), transparent 60%),
    var(--surface);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 680; }
.cta-band p { margin: 16px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 56px 0 40px;
}
.footer-grid {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--faint); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  margin: 6px 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.footer-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.93rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  width: min(100% - 40px, var(--max));
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.86rem;
}

/* ---------- Fair Launch Test ---------- */

.flt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: 44px;
}

.flt { display: flex; flex-direction: column; gap: 16px; }

.flt-q {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.flt-q legend { padding: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.flt-group {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.flt-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flt-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gray);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.flt-opt:hover { border-color: var(--line-strong); background: var(--card-hover); }
.flt-opt input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--cyan); }
.flt-opt span { font-size: 0.95rem; color: #cdd5dd; }
.flt-opt:has(input:checked) { border-color: currentColor; }
.flt-opt[data-level="green"]:has(input:checked) { color: var(--cyan); background: rgba(37, 208, 230, 0.08); }
.flt-opt[data-level="amber"]:has(input:checked) { color: var(--amber); background: rgba(246, 164, 28, 0.08); }
.flt-opt[data-level="red"]:has(input:checked) { color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
.flt-opt:has(input:checked) span { color: var(--text); }

.flt-why {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 0.88rem;
  color: var(--faint);
}

.flt-result {
  position: sticky;
  top: 90px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.flt-light { display: flex; align-items: center; gap: 12px; }
.flt-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gray);
  box-shadow: 0 0 0 4px rgba(123, 134, 148, 0.14);
}
.flt-dot.green { background: var(--cyan); box-shadow: 0 0 0 4px rgba(37, 208, 230, 0.16); }
.flt-dot.amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(246, 164, 28, 0.16); }
.flt-dot.red { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.16); }
.flt-verdict { font-weight: 650; font-size: 1.02rem; line-height: 1.25; }
.flt-meter { height: 10px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.flt-meter-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--gray); transition: width 0.35s ease, background 0.2s ease; }
.flt-meter-fill.green { background: var(--cyan); }
.flt-meter-fill.amber { background: var(--amber); }
.flt-meter-fill.red { background: #ff6b6b; }
.flt-score-line { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.flt-list-title { margin: 16px 0 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.flt-flags { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.flt-flags li { display: flex; gap: 8px; font-size: 0.85rem; }
.flt-flags.red li { color: #e7b2b2; }
.flt-flags.red li::before { content: "✗"; color: #ff6b6b; }
.flt-flags.amber li { color: #e6cfa0; }
.flt-flags.amber li::before { content: "?"; color: var(--amber); }
.flt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.flt-actions button {
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.flt-actions button:hover { border-color: var(--cyan-deep); background: rgba(37, 208, 230, 0.07); }

@media (max-width: 900px) {
  .flt-layout { grid-template-columns: 1fr; }
  .flt-result { position: static; }
}

/* Share modal */
.flt-modal[hidden] { display: none; }
.flt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.flt-modal-overlay { position: absolute; inset: 0; background: rgba(5, 8, 11, 0.72); backdrop-filter: blur(4px); }
.flt-modal-box {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.flt-modal-box h3 { margin: 0 0 16px; font-size: 1.3rem; font-weight: 660; }
.flt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.flt-modal-close:hover { border-color: var(--cyan-deep); }
.flt-card-preview { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--graphite); }
.flt-section-label { display: block; margin: 22px 0 9px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.flt-block { display: flex; width: 100%; }
.flt-linkrow { display: flex; gap: 8px; }
.flt-linkrow input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #0a0e12;
  color: #cdd5dd;
  font: 500 0.82rem var(--mono);
}
.flt-social { display: flex; flex-wrap: wrap; gap: 10px; }
.flt-social button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.flt-social button:hover { border-color: var(--cyan-deep); background: rgba(37, 208, 230, 0.08); color: var(--text); }
.flt-social svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards, .checklist, .link-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-cell:nth-child(odd) { border-left: none; }
  .proof-cell { border-top: 1px solid var(--line); }
  .proof-cell:nth-child(-n+2) { border-top: none; }
  .teaser, .doc { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { display: none; }
  .status-row { grid-template-columns: 1fr auto; }
  .status-row .pill { grid-row: 1; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 11px 8px; }
  .nav-cta { justify-content: center; margin-top: 4px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-end { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-cell { border-left: none !important; border-top: 1px solid var(--line); }
  .proof-cell:first-child { border-top: none; }
  .timeline { grid-template-columns: 1fr; }
}
