/* quantcoin.world — QUAC, Dyber's post-quantum coin */

@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/open-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/open-sans-800.woff2") format("woff2"); }

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b0d12;
  --muted: #4a5160;
  --line: #dde1e8;
  --accent: #ff6a2b;
  --accent-text: #c2410c;
  --accent-ink: #0b0d12;
  --accent-soft: #fff0e8;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #8a6100;
  --warn-soft: #fbf3d6;
  --chip: #eceff4;
  --lattice: #0b0d12;
  --footer-bg: #ffffff;
  --code-bg: #0b0d12;
  --code-ink: #dfe3ea;
  --radius: 10px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080b;
    --surface: #0f1116;
    --ink: #eef1f6;
    --muted: #9aa1ad;
    --line: #1f232b;
    --accent: #ff6a2b;
    --accent-text: #ff8a55;
    --accent-ink: #0b0d12;
    --accent-soft: #24150e;
    --ok: #4ade80;
    --ok-soft: #0f2117;
    --warn: #facc15;
    --warn-soft: #241f0a;
    --chip: #1a1d24;
    --lattice: #eef1f6;
    --footer-bg: #07080b;
    --code-bg: #000000;
    --code-ink: #dfe3ea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07080b;
  --surface: #0f1116;
  --ink: #eef1f6;
  --muted: #9aa1ad;
  --line: #1f232b;
  --accent: #ff6a2b;
  --accent-text: #ff8a55;
  --accent-ink: #0b0d12;
  --accent-soft: #24150e;
  --ok: #4ade80;
  --ok-soft: #0f2117;
  --warn: #facc15;
  --warn-soft: #241f0a;
  --chip: #1a1d24;
  --lattice: #eef1f6;
  --footer-bg: #07080b;
  --code-bg: #000000;
  --code-ink: #dfe3ea;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .brand small { display: none; } .site-header .status { margin-left: auto; } }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .lattice { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--lattice); opacity: 0.09; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 24px; max-width: 14ch; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; margin: 0 0 36px; }
.hero .lede strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; margin: 0 0 16px; max-width: 22ch; }
section .intro { color: var(--muted); font-size: 18px; max-width: 42em; margin: 0 0 48px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; margin-bottom: 16px; }
.muted { color: var(--muted); }

/* key-size comparison */
.sizes { display: grid; gap: 18px; margin-top: 8px; }
.size-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 16px; font-size: 15px; }
.size-row .label { color: var(--muted); font-weight: 700; }
.bar { height: 28px; border-radius: 6px; background: var(--accent); display: flex; align-items: center; padding: 0 10px; color: var(--accent-ink); font-weight: 700; font-size: 13px; white-space: nowrap; min-width: max-content; }
.bar.classical { background: var(--line); color: var(--ink); }
@media (max-width: 600px) { .size-row { grid-template-columns: 1fr; gap: 6px; } }

/* params table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); color: var(--ink); font-size: 15px; }
.note b { color: var(--warn); }

/* security checklist */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.check .icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.check li.yes .icon { background: var(--ok-soft); color: var(--ok); }
.check li.no .icon { background: var(--warn-soft); color: var(--warn); }
.check strong { display: block; }
.check span.d { color: var(--muted); font-size: 15px; }
.tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
li.yes .tag { background: var(--ok-soft); color: var(--ok); }
li.no .tag { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 600px) { .check li { grid-template-columns: 28px 1fr; } .check .tag { grid-column: 2; justify-self: start; } }

/* code */
pre { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; }
pre .c { color: #7f948b; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.92em; }
p code, li code, td code { background: var(--chip); padding: 1px 6px; border-radius: 5px; }

/* roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.roadmap li { position: relative; padding: 0 0 32px 40px; }
.roadmap li::before { content: ""; position: absolute; left: 9px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.roadmap li:last-child::before { display: none; }
.roadmap li::after { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.roadmap li.done::after { background: var(--accent); border-color: var(--accent); }
.roadmap h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.roadmap p { color: var(--muted); margin: 0; max-width: 44em; }

/* footer */
footer { background: var(--footer-bg); padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer a { color: var(--muted); }
.disclaimer { max-width: 62em; }

/* ---------- Dyber brand marks ---------- */
/* Each mark ships in a light-background and a dark-background version. */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: revert; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: revert; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-cat { margin: 0; text-align: center; }
.hero-cat img { width: 100%; max-width: 380px; height: auto; }
.hero-cat figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); font-style: italic; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cat { order: -1; text-align: left; }
  .hero-cat img { max-width: 132px; }
  .hero-cat figcaption { display: none; }
}

/* The wordmark PNGs carry solid backgrounds; --footer-bg matches them exactly. */
.wordmark { display: inline-block; line-height: 0; }
.wordmark img { height: 44px; width: auto; }
