/* Qorvyn website: FACTn's Qorvyn identity — deep navy to sky, blue → violet, Bricolage Grotesque for headings and
   the wordmark (self-hosted, SIL Open Font License 1.1: assets/fonts/OFL-Bricolage-Grotesque.txt). No frameworks. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
:root {
  --bg: #050b1f;
  --bg-2: #0a1736;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --text-2: #b6bdd8;
  --muted: #7f87a8;
  --cyan: #7dd3fc;
  --blue: #3b82f6;
  --violet: #6d3df0;
  --good: #34d399;
  --grad: linear-gradient(120deg, #3b82f6 0%, #4f5bf5 50%, #6d3df0 100%);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --factn: #8cc63f;
  --radius: 16px;
  --max: 1160px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* background glow */
.glow { position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 20%, rgba(96, 165, 250, 0.14), transparent 70%), radial-gradient(40% 50% at 75% 15%, rgba(109, 61, 240, 0.16), transparent 70%); }
.grid-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: rgba(5, 6, 15, 0.62); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.logo img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; transition: transform 0.12s, background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 108, 255, 0.7); }
.btn.primary:hover { box-shadow: 0 14px 38px -10px rgba(109, 61, 240, 0.8); filter: brightness(1.06); }
.btn[aria-current="page"] { border-color: var(--violet); background: var(--panel-2); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font-size: 13.5px; }
.badge b { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hero-mark { width: 148px; height: 148px; margin: 26px auto 10px; filter: drop-shadow(0 0 40px rgba(59, 108, 255, 0.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -0.035em; margin: 10px auto 18px; max-width: 900px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.install { margin: 28px auto 0; display: inline-flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); font: 14px var(--mono); color: var(--text-2); max-width: 100%; }
.install code { white-space: nowrap; overflow-x: auto; }
.install .prompt { color: var(--cyan); }
.copy { background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); border-radius: 8px; height: 32px; padding: 0 10px; cursor: pointer; font: 600 12.5px system-ui; flex: none; }
.copy:hover { color: var(--text); }
.copy.done { color: var(--good); border-color: rgba(52, 211, 153, 0.4); }
.trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--good); }

/* product mock */
.mock { margin: 60px auto 0; max-width: 1040px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 24, 52, 0.85), rgba(8, 10, 24, 0.95)); box-shadow: 0 40px 120px -40px rgba(59, 108, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; overflow: hidden; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f4a; }
.mock-bar span { margin-left: 10px; font: 12.5px var(--mono); color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-side .it { padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.mock-side .it.on { background: rgba(59, 108, 255, 0.16); color: var(--text); }
.mock-main { padding: 22px; display: grid; gap: 16px; }
.mock-goal { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.mock-goal small { color: var(--muted); display: block; margin-bottom: 4px; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; }
.step { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); position: relative; overflow: hidden; }
.step b { display: block; font-size: 14px; }
.step small { color: var(--muted); font-size: 12.5px; }
.step.done { border-color: rgba(52, 211, 153, 0.45); }
.step.run { border-color: rgba(59, 108, 255, 0.7); box-shadow: 0 0 0 1px rgba(59, 108, 255, 0.25), 0 0 24px -6px rgba(59, 108, 255, 0.8); }
.step.run::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--grad); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.step .tag { position: absolute; top: 10px; right: 10px; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.step.done .tag { color: var(--good); background: rgba(52, 211, 153, 0.12); }
.step.run .tag { color: #93b4ff; background: rgba(59, 108, 255, 0.16); }
.step.wait .tag { color: #fcd34d; background: rgba(250, 204, 21, 0.1); }
.feed { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 12.5px/1.9 var(--mono); color: var(--text-2); background: rgba(0, 0, 0, 0.25); }
.feed .now { color: var(--text); }
.feed .now::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 8px; box-shadow: 0 0 0 0 rgba(59, 108, 255, 0.6); animation: pulse 1.6s infinite; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(59, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 108, 255, 0); } }

/* sections */
section { padding: 96px 0; }
.eyebrow { color: var(--cyan); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 10px 0 14px; font-weight: 800; }
.sub { color: var(--text-2); font-size: 18px; max-width: 680px; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
/* A card left alone on the last row spans it, so the grid never ends with a gap. */
.cards > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 26px; transition: transform 0.2s, border-color 0.2s, background 0.2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(109, 61, 240, 0.22)); border: 1px solid rgba(109, 61, 240, 0.3); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; color: #c7d2fe; }
.card h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.sdk-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.sdk-chip { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text-2); transition: transform .2s, border-color .2s, background .2s; }
.sdk-chip:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--panel-2); color: var(--text); }
.sdk-chip b { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(109,61,240,.24)); color: #dbeafe; font: 700 13px var(--mono); }
.sdk-chip span { font-weight: 600; }
/* Languages not available yet: shown, but not clickable and dimmed. */
.sdk-chip.upcoming { opacity: .55; cursor: default; pointer-events: none; }
.sdk-chip.upcoming small, .sdk-index .upcoming small { margin-left: auto; font-size: 11px; color: var(--text-3, #8b93a7); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.sdk-index .upcoming { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--text-3, #8b93a7); font-size: 13px; opacity: .7; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; counter-reset: s; }
.how li { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); position: relative; }
.how li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.how h3 { margin: 0 0 6px; font-size: 17px; }
.how p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.how code, .card code, .faq code, p code, li code { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
/* The tick sits outside the text, so inline code in an item wraps with its sentence instead of becoming a column. */
.checks li { position: relative; padding-left: 32px; color: var(--text-2); overflow-wrap: anywhere; }
.checks svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--good); }
.code-card { border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(0, 0, 0, 0.4); overflow: hidden; }
.code-card .head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 12.5px var(--mono); }
.code-card pre { margin: 0; padding: 18px; font: 13.5px/1.8 var(--mono); color: var(--text-2); overflow-x: auto; }
.code-card .c { color: var(--muted); }
.code-card .k { color: var(--cyan); }
.code-card .s { color: #c4b5fd; }

/* editions */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.edition { border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; background: var(--panel); display: flex; flex-direction: column; }
.edition.ee { background: linear-gradient(180deg, rgba(109, 61, 240, 0.12), rgba(59, 108, 255, 0.04)); border-color: rgba(109, 61, 240, 0.45); position: relative; }
.edition.ee::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none; }
.edition .head { display: flex; align-items: center; gap: 12px; }
.edition .head img { width: 40px; height: 40px; border-radius: 10px; }
.pill { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.pill.ee { border-color: rgba(109, 61, 240, 0.6); color: #c4b5fd; background: rgba(109, 61, 240, 0.14); }
.edition h3 { margin: 18px 0 4px; font-size: 26px; letter-spacing: -0.02em; }
.edition .price { color: var(--text-2); margin-bottom: 18px; }
.edition .price b { color: var(--text); font-size: 20px; }
.edition ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.edition li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.edition li svg { flex: none; width: 19px; height: 19px; color: var(--good); margin-top: 2px; }
.edition.ee li svg { color: #a78bfa; }
.edition .note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

/* comparison table */
.table-wrap { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(255, 255, 255, 0.02); }
td:not(:first-child), th:not(:first-child) { text-align: center; width: 150px; }
tr:last-child td { border-bottom: 0; }
td .yes { color: var(--good); font-weight: 700; }
td .no { color: var(--muted); }
td .soon { color: #fcd34d; font-size: 13px; }
tr.group td { background: rgba(255, 255, 255, 0.025); color: var(--text); font-weight: 700; font-size: 13.5px; }

/* privacy band */
.band { border: 1px solid var(--line); border-radius: 24px; padding: 48px; background: radial-gradient(60% 120% at 0% 0%, rgba(96, 165, 250, 0.1), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(109, 61, 240, 0.12), transparent 60%), var(--bg-2); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.cols h4 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.cols ul { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 6px; font-size: 15px; }

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--line-2); background: var(--panel-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--text-2); }

/* cta + footer */
.cta { text-align: center; border: 1px solid var(--line-2); border-radius: 28px; padding: 64px 24px; background: radial-gradient(70% 140% at 50% 0%, rgba(59, 108, 255, 0.25), transparent 70%), var(--bg-2); }
.cta img { width: 72px; height: 72px; margin: 0 auto 16px; filter: drop-shadow(0 0 24px rgba(109, 61, 240, 0.6)); }
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h5 { color: var(--text); margin: 0 0 12px; font-size: 14px; }
footer a { display: block; padding: 3px 0; color: var(--muted); }
footer a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }

/* page header (subpages) */
.page-head { padding: 72px 0 24px; }
.page-head h1 { margin-left: 0; font-size: clamp(34px, 5vw, 54px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose p, .prose li { color: var(--text-2); }
.prose table td:not(:first-child), .prose table th:not(:first-child) { text-align: left; width: auto; }

/* documentation */
.docs-head { padding-bottom: 48px; }
.docs-section { padding-top: 0; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 13, 31, 0.8); }
.docs-nav strong { margin: 12px 10px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.docs-nav strong:first-child { margin-top: 0; }
.docs-nav a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.docs-nav a:hover { color: var(--text); background: var(--panel-2); }
.docs-content { min-width: 0; }
.doc-block { padding: 16px 0 64px; scroll-margin-top: 86px; border-bottom: 1px solid var(--line); }
.doc-block:last-child { border-bottom: 0; }
.doc-block h2 { font-size: clamp(28px, 4vw, 38px); }
.doc-block h3 { margin-top: 32px; }
.doc-block p, .doc-block li { color: var(--text-2); }
.doc-block > ul { display: grid; gap: 8px; }
.doc-steps { display: grid; gap: 12px; padding-left: 22px; margin-top: 26px; }
.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.command-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.command-grid code { display: block; color: var(--cyan); overflow-wrap: anywhere; }
.command-grid span { display: block; margin-top: 7px; color: var(--text-2); font-size: 14px; }
.callout { margin: 22px 0; padding: 18px 20px; border: 1px solid rgba(96, 165, 250, .32); border-left: 3px solid var(--cyan); border-radius: 12px; background: rgba(96, 165, 250, .06); color: var(--text-2); }
.callout.warn { border-color: rgba(250, 204, 21, .3); border-left-color: #facc15; background: rgba(250, 204, 21, .055); }
.sdk-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.sdk-index a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; }
.sdk-index a:hover { color: var(--text); border-color: var(--violet); }
.sdk-detail { scroll-margin-top: 86px; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.sdk-detail[open] { border-color: var(--line-2); background: var(--panel-2); }
.sdk-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.sdk-detail summary small { color: var(--muted); font-weight: 500; }
.sdk-detail > div { padding: 0 20px 20px; }
.sdk-detail pre { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.35); overflow-x: auto; color: var(--text-2); font: 13px/1.7 var(--mono); }
.docs-content .table-wrap { margin-top: 20px; }
.docs-content table td:not(:first-child), .docs-content table th:not(:first-child) { width: auto; text-align: left; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 960px) {
  .cards, .how, .sdk-showcase { grid-template-columns: 1fr 1fr; }
  .cards > .card:last-child:nth-child(3n+1) { grid-column: auto; }
  .cards > .card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .split, .editions, .cols { grid-template-columns: minmax(0, 1fr); }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .docs-nav strong { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn:not(.primary) { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(5, 6, 15, 0.97); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .cards, .how, .sdk-showcase { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .band { padding: 28px; }
  .hero { padding-top: 48px; }
  .docs-nav, .command-grid { grid-template-columns: 1fr; }
  .sdk-detail summary { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* The Q logo: the light Q on the dark hero; the blue Q on its white tile elsewhere (artwork with transparency). */
@media (max-width: 720px) {
  .nav .wrap { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .badge { font-size: 12.5px; text-align: left; }
}
.hero-mark { width: auto; height: 150px; margin: 18px auto 6px; filter: drop-shadow(0 18px 40px rgba(59, 108, 255, 0.35)); }
.edition .head img, .cta img { border-radius: 22%; }

/* Release notes */
.releases .release { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release-head h2 { margin: 0; }
.release-date { color: var(--muted); font-size: 13.5px; }
.releases h3 { margin: 20px 0 8px; font-size: 17px; }
.releases ul { padding-left: 20px; margin: 8px 0; }
.releases li { margin: 6px 0; color: var(--text-2); line-height: 1.6; }
.releases li b { color: var(--text); }
.releases code { overflow-wrap: anywhere; }
.release-early { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.release-early summary { cursor: pointer; font-weight: 600; }
@media (max-width: 860px) { .docs-layout { gap: 24px; } }
@media (max-width: 860px) {
  .release-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .release-nav strong { width: 100%; margin: 0 4px 4px; }
  .release-nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
}

/* Brand type: headings and the wordmark */
h1, h2, h3, .logo { font-family: var(--display); }
h1, h2 { letter-spacing: -0.02em; }
.logo { font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.made-by { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.made-by a, footer .made-by a { display: inline; padding: 0; color: var(--factn); font-weight: 700; }

/* The QORVYN wordmark (light, for the dark site) */
.logo img[src$="wordmark-light.png"] { height: 22px; width: auto; display: block; }
