/* ============================================================
 Cruxwire.app, marketing site
 Design tokens mirror the app (Space Grotesk + Inter, brand
 coral, warm neutrals). Light default, dark via [data-theme].
 ============================================================ */

:root {
 --brand: #e8482b;
 --brand-ink: #c43a20;

 /* light (default) */
 --bg: #f4f2ec;
 --bg2: #ecead9e0;
 --surface: #ffffff;
 --surface2: #faf8f3;
 --border: rgba(20, 18, 14, 0.10);
 --border2: rgba(20, 18, 14, 0.18);
 --text: #16140f;
 --text2: #595650;
 --text3: #8c887f;
 --shadow: 0 1px 2px rgba(20, 18, 14, .04), 0 12px 32px rgba(20, 18, 14, .07);
 --shadow-hover: 0 2px 8px rgba(20, 18, 14, .06), 0 24px 56px rgba(20, 18, 14, .12);
 --code-bg: #1b1a17;
 --code-text: #e8e6df;

 /* category accents (from the app) */
 --c-ai: #7b5cff;
 --c-tech: #2b7fff;
 --c-gaming: #ff5a3c;
 --c-music: #10b981;
 --c-woodworking: #d98a3b;
 --c-photography: #e84d9c;
 --c-devtools: #3fae46;
 --c-pm: #8a90a0;
 --c-productivity: #06b6d4;

 --font-head: 'Space Grotesk', system-ui, sans-serif;
 --font-body: 'Inter', system-ui, sans-serif;
 --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

 --radius: 8px;
 --radius-lg: 14px;
 --radius-xl: 22px;
 --maxw: 1120px;
 --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
 --bg: #0b0c0e;
 --bg2: #111317;
 --surface: #15171b;
 --surface2: #1d2026;
 --border: rgba(255, 255, 255, 0.08);
 --border2: rgba(255, 255, 255, 0.16);
 --text: #f2f0ec;
 --text2: #aaa79f;
 --text3: #74716a;
 --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
 --shadow-hover: 0 2px 8px rgba(0, 0, 0, .5), 0 22px 48px rgba(0, 0, 0, .55);
 --code-bg: #0f1013;
 --code-text: #e8e6df;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
 margin: 0;
 font-family: var(--font-body);
 background: var(--bg);
 color: var(--text);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
 transition: background .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
code, pre, kbd { font-family: var(--font-mono); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow {
 font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
 text-transform: uppercase; color: var(--brand); font-weight: 500;
}
.muted { color: var(--text2); }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
 position: sticky; top: 0; z-index: 100;
 backdrop-filter: saturate(1.4) blur(14px);
 background: color-mix(in srgb, var(--bg) 82%, transparent);
 border-bottom: 1px solid var(--border);
}
.site-header .container {
 display: flex; align-items: center; gap: 20px;
 height: 64px;
}
.brand {
 display: flex; align-items: center; gap: 10px;
 font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
 letter-spacing: -.03em; color: var(--text);
}
.brand .dot {
 width: 11px; height: 11px; border-radius: 50%;
 background: var(--brand);
 box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a {
 padding: 7px 13px; border-radius: 8px; font-size: .92rem; color: var(--text2);
 font-weight: 450; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface2); }
.nav a.active { color: var(--text); font-weight: 550; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
 width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
 background: var(--surface); color: var(--text2); cursor: pointer;
 display: grid; place-items: center; transition: .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn {
 display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
 padding: 10px 18px; border-radius: 10px; font-size: .92rem; font-weight: 550;
 font-family: var(--font-body); border: 1px solid transparent; transition: .16s var(--ease);
 white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--text3); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .86rem; }

.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.hero::before {
 content: ""; position: absolute; inset: -40% 0 auto 0; height: 560px; z-index: -1;
 background: radial-gradient(60% 70% at 70% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
 pointer-events: none;
}
.hero-grid {
 display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
 gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 {
 font-size: clamp(2.3rem, 5.2vw, 3.85rem); letter-spacing: -.035em; line-height: 1.04;
 margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text2); max-width: 38ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-badges span {
 display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--text2);
}
.hero-badges span::before {
 content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* ---------- generic ---------- */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 14px 0 14px; }
.section-head p { font-size: 1.08rem; color: var(--text2); }

.lead { font-size: 1.18rem; color: var(--text2); max-width: 64ch; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--text2); font-size: 1.04rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
 background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
 padding: 26px; transition: .2s var(--ease); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
 width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
 background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
 margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--text2); font-size: .96rem; }

/* big feature row (alternating) */
.feature-row {
 display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
 align-items: center; padding-block: clamp(34px, 5vw, 58px);
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 14px; }
.feature-copy p { color: var(--text2); font-size: 1.05rem; }
.feature-copy .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
 font-size: .8rem; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border2);
 color: var(--text2); background: var(--surface);
}

/* ============================================================
 APP MOCKUPS, faithful HTML reproductions of the live app.
 These act as the screenshots; swap in PNGs later if desired.
 ============================================================ */
.browser {
 border-radius: var(--radius-lg); border: 1px solid var(--border2);
 background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow-hover); overflow: hidden;
}
[data-theme="dark"] .browser { border-color: rgba(255,255,255,.22); }
.browser-bar {
 display: flex; align-items: center; gap: 8px; padding: 11px 14px;
 background: var(--surface2); border-bottom: 1px solid var(--border);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border2); }
.browser-bar .url {
 flex: 1; margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--text3);
 background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px;
 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* app shell inside mockup, forced to app's dark palette for fidelity */
.app {
 --a-bg: #101217; --a-surface: #181b21; --a-surface2: #1d2026;
 --a-text: #f4f2ee; --a-text2: #c2bfb6; --a-text3: #8e8b82;
 --a-border: rgba(255,255,255,.08); --a-brand: #e8482b;
 background: var(--a-bg); color: var(--a-text); padding: 20px 22px 24px;
 font-size: 13px;
}
.app.light {
 --a-bg: #f4f2ec; --a-surface: #fff; --a-surface2: #faf8f3;
 --a-text: #16140f; --a-text2: #595650; --a-text3: #8c887f;
 --a-border: rgba(20,18,14,.1);
}
.app-top { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 2px solid var(--a-brand); margin-bottom: 12px; }
.app-top .b { width: 9px; height: 9px; border-radius: 50%; background: var(--a-brand); }
.app-top .wm { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--a-text); letter-spacing: -.02em; }
.app-top .dt { color: var(--a-text3); font-size: 11.5px; }
.app-top .today { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--a-text3); }
.app-nav { display: flex; gap: 16px; font-size: 12.5px; color: var(--a-text3); margin-bottom: 14px; align-items: center; }
.app-nav b { color: var(--a-text); font-weight: 600; border-bottom: 2px solid var(--a-brand); padding-bottom: 3px; }
.app-nav .n2 { font-size: 10px; color: var(--a-text3); }
.app-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.app-pill {
 font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--a-border);
 color: var(--a-text2); display: inline-flex; align-items: center; gap: 6px;
}
.app-pill.on { background: var(--a-text); color: var(--a-bg); border-color: var(--a-text); }
.app-pill .cd { width: 6px; height: 6px; border-radius: 50%; }

.app-mag { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.hero-card .himg {
 aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; position: relative;
 background: linear-gradient(135deg, #6b5642, #2e2620);
}
.hero-card .himg::after {
 content: "AI"; position: absolute; inset: 0; display: grid; place-items: center;
 color: rgba(255,255,255,.5); font-family: var(--font-head); font-weight: 700; font-size: 26px;
}
.hero-card .cat { color: var(--c-ai); font-size: 11px; font-weight: 600; margin: 12px 0 6px; }
.hero-card h4 { font-family: var(--font-head); color: var(--a-text); font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }

.app-list { display: flex; flex-direction: column; gap: 13px; }
.li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.li .thumb { width: 64px; height: 64px; border-radius: 7px; background: linear-gradient(135deg,#3a3f4a,#23262d); position: relative; overflow: hidden; }
.li .thumb.g2 { background: linear-gradient(135deg,#c9892f,#5b3d12); }
.li .thumb.g3 { background: linear-gradient(135deg,#1f3326,#0c1d12); }
.li .thumb.g4 { background: linear-gradient(135deg,#2a2030,#140d18); }
.li .cat { font-size: 10px; font-weight: 600; margin-bottom: 4px; }
.li h5 { font-family: var(--font-head); font-weight: 500; font-size: 13.5px; color: var(--a-text); line-height: 1.25; letter-spacing: -.005em; margin-bottom: 6px; }
.li .meta { font-size: 11px; color: var(--a-text3); }
.li .acts { font-size: 10.5px; color: var(--a-text3); margin-top: 4px; display: flex; gap: 12px; }

/* read-later list mock */
.rl-row { padding: 13px 0; border-bottom: 1px solid var(--a-border); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.rl-row .src { font-size: 10px; letter-spacing: .08em; color: var(--a-text3); text-transform: uppercase; margin-bottom: 5px; }
.rl-row h5 { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--a-text); margin-bottom: 5px; }
.rl-row .u { font-size: 11px; color: var(--a-text3); }
.rl-row .badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.rl-tag { font-size: 10px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--a-border); color: var(--a-text2); }
.rl-tag.dr { color: var(--a-brand); border-color: color-mix(in srgb, var(--a-brand) 40%, transparent); }

/* settings / feeds table mock */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--a-text3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--a-border); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--a-border); color: var(--a-text2); }
.tbl .s-name { color: var(--a-text); font-weight: 500; }
.tbl .s-url { color: var(--a-text3); font-size: 10px; }
.tbl .aff-up { color: #3fae46; font-weight: 600; }
.tbl .aff-dn { color: var(--a-brand); font-weight: 600; }
.tbl .num { font-variant-numeric: tabular-nums; }

/* categories editor mock */
.cat-row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; margin-bottom: 14px; }
.cat-sw { width: 18px; height: 18px; border-radius: 5px; margin-top: 2px; }
.cat-fields .f1 { display: flex; gap: 8px; margin-bottom: 6px; }
.cat-fields input, .cat-fields .inp {
 background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 6px;
 padding: 7px 10px; font-size: 12px; color: var(--a-text); font-family: var(--font-body);
}
.cat-fields .inp.name { flex: 1; }
.cat-fields .inp.key { width: 92px; font-family: var(--font-mono); color: var(--a-text2); font-size: 11px; }
.cat-fields .inp.desc { width: 100%; color: var(--a-text2); }

.app-caption { text-align: center; font-size: .86rem; color: var(--text3); margin-top: 14px; }

/* ---------- pipeline / how it works ---------- */
.pipeline { display: grid; gap: 14px; counter-reset: step; }
.pstep {
 display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
 background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
 padding: 20px 22px; transition: .2s var(--ease);
}
.pstep:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.pstep .num {
 width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
 font-family: var(--font-head); font-weight: 700; font-size: 1rem;
 background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.pstep h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pstep p { color: var(--text2); font-size: .98rem; }

.arch {
 background: var(--code-bg); color: var(--code-text); border-radius: var(--radius-lg);
 padding: 26px; overflow-x: auto; border: 1px solid var(--border);
}
.arch pre { margin: 0; font-size: .82rem; line-height: 1.55; color: #cfcdc6; white-space: pre; }
.arch .hl { color: var(--brand); }

/* diagram (flow) */
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.flow .node {
 background: var(--surface); border: 1px solid var(--border2); border-radius: 10px;
 padding: 12px 16px; font-size: .9rem; font-weight: 500; text-align: center; box-shadow: var(--shadow);
}
.flow .node small { display: block; color: var(--text3); font-weight: 400; font-size: .76rem; margin-top: 2px; }
.flow .arrow { color: var(--brand); font-size: 1.2rem; }

/* ---------- code blocks ---------- */
.code {
 background: var(--code-bg); border-radius: var(--radius-lg); border: 1px solid var(--border);
 overflow: hidden; box-shadow: var(--shadow);
}
.code-head {
 display: flex; align-items: center; gap: 8px; padding: 10px 16px;
 border-bottom: 1px solid rgba(255,255,255,.07); color: #9a978f; font-size: .78rem; font-family: var(--font-mono);
}
.code-head .fn { margin-right: auto; }
.copy-btn {
 background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #cfcdc6;
 border-radius: 6px; padding: 4px 10px; font-size: .74rem; cursor: pointer; font-family: var(--font-body); transition: .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code code { font-size: .84rem; line-height: 1.65; color: var(--code-text); }
.code .tok-c { color: #7f9b6e; } /* comment */
.code .tok-k { color: #e8a05c; } /* keyword */
.code .tok-s { color: #8fb8e0; } /* string */
.code .tok-v { color: #d98a9c; } /* var */

/* ---------- requirement / spec lists ---------- */
.req-list { display: grid; gap: 14px; }
.req {
 display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
 padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.req .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.req .ico svg { width: 20px; height: 20px; }
.req h4 { font-size: 1rem; margin-bottom: 4px; }
.req p { color: var(--text2); font-size: .94rem; }
.req code { background: var(--surface2); padding: 1px 6px; border-radius: 5px; font-size: .85em; border: 1px solid var(--border); }

/* ---------- spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table th { text-align: left; background: var(--surface2); padding: 13px 16px; font-family: var(--font-head); font-size: .82rem; letter-spacing: .02em; color: var(--text2); border-bottom: 1px solid var(--border); }
.spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table code { background: var(--surface2); padding: 1px 7px; border-radius: 5px; font-size: .86em; color: var(--text); border: 1px solid var(--border); }
.spec-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

/* ---------- callout ---------- */
.callout {
 display: grid; grid-template-columns: 28px 1fr; gap: 16px;
 border-radius: var(--radius-lg); padding: 20px 22px; border: 1px solid;
}
.callout svg { width: 22px; height: 22px; margin-top: 2px; }
.callout h4 { font-size: 1.02rem; margin-bottom: 6px; }
.callout p { font-size: .96rem; }
.callout.warn { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.callout.warn svg, .callout.warn h4 { color: var(--brand-ink); }
[data-theme="dark"] .callout.warn h4, [data-theme="dark"] .callout.warn svg { color: var(--brand); }
.callout.warn p { color: var(--text2); }
.callout.info { background: var(--surface2); border-color: var(--border); }
.callout.info svg, .callout.info h4 { color: var(--text); }
.callout.info p { color: var(--text2); }

/* ---------- CTA band ---------- */
.cta-band {
 background: var(--text); color: var(--bg); border-radius: var(--radius-xl);
 padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden;
}
[data-theme="dark"] .cta-band { background: var(--surface); border: 1px solid var(--border2); color: var(--text); }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; color: inherit; }
.cta-band p { color: color-mix(in srgb, currentColor 70%, transparent); max-width: 52ch; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.cta-band .btn-ghost:hover { border-color: currentColor; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 44px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--text2); font-size: .92rem; margin-top: 12px; }
.footer-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; color: var(--text2); font-size: .94rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text3); font-size: .86rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
 .reveal { opacity: 1; transform: none; transition: none; }
 html { scroll-behavior: auto; }
}

/* ---------- page hero (subpages) ---------- */
.page-hero { padding-top: clamp(46px, 6vw, 76px); padding-bottom: clamp(20px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -.035em; margin: 14px 0 18px; }
.page-hero p { font-size: 1.16rem; color: var(--text2); max-width: 60ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
 .hero-grid { grid-template-columns: 1fr; }
 .hero-sub { max-width: none; }
 .feature-row, .feature-row.flip .feature-copy { grid-template-columns: 1fr; order: 0; }
 .feature-row .feature-vis { order: 2; }
 .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
 .app-mag { grid-template-columns: 1fr; }
 .nav { display: none; }
 .menu-btn {
 display: grid; place-items: center; margin-left: auto;
 width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
 background: var(--surface); color: var(--text); cursor: pointer;
 }
 .header-actions { margin-left: 0; }
 .header-actions .btn-repo { display: none; }
 .mobile-nav {
 display: none; flex-direction: column; gap: 2px; padding: 8px 16px 16px;
 border-bottom: 1px solid var(--border); background: var(--bg);
 }
 .mobile-nav.open { display: flex; }
 .mobile-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text2); }
 .mobile-nav a:hover { background: var(--surface2); color: var(--text); }
}
@media (max-width: 560px) {
 .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
 .container { padding-inline: 18px; }
 .app { font-size: 12px; }
}
