/* Fonts: self-hosted Latin subsets, SIL Open Font License (see ../fonts/OFL-*.txt). */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens */
:root {
  --bg: #050608;
  --text: #F5F5F7;
  --muted: #8E8E96;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --code-bg: rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(5, 6, 8, 0.6);
  --focus: #9DB8FF;
  --accent: linear-gradient(100deg, #6FA8FF 0%, #7D5CFF 52%, #C95BFF 100%);
  --glow-opacity: 0.55;
  --btn-bg: #F5F5F7;
  --btn-text: #050608;
  --ok: #7EE2A8;
  --mid: #FFC48A;
  --no: #FF9BB0;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius-lg: 28px;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #FBFBFD;
  --text: #1D1D1F;
  --muted: #5E5E66;
  --card: rgba(255, 255, 255, 0.62);
  --card-hi: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.1);
  --code-bg: rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(251, 251, 253, 0.7);
  --focus: #4B5BFF;
  --accent: linear-gradient(100deg, #2F63D8 0%, #5B3AE8 52%, #9A2FD6 100%);
  --glow-opacity: 0.22;
  --btn-bg: #1D1D1F;
  --btn-text: #FBFBFD;
  --ok: #17803F;
  --mid: #A64D00;
  --no: #B4234A;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, pre { font-family: var(--mono); }
code { font-size: 0.88em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

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

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background glow */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  opacity: var(--glow-opacity);
  transition: opacity 0.4s ease;
}
.glow span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform;
}
.glow-blue   { background: radial-gradient(closest-side, rgba(70, 110, 255, 0.55), transparent); top: -30vmax; left: -22vmax; animation: drift-a 38s ease-in-out infinite alternate; }
.glow-violet { background: radial-gradient(closest-side, rgba(150, 80, 255, 0.5), transparent); top: -18vmax; right: -28vmax; animation: drift-b 44s ease-in-out infinite alternate; }
.glow-pink   { background: radial-gradient(closest-side, rgba(255, 100, 180, 0.3), transparent); bottom: -40vmax; right: -10vmax; animation: drift-a 52s ease-in-out infinite alternate-reverse; }
.glow-orange { background: radial-gradient(closest-side, rgba(255, 150, 90, 0.22), transparent); bottom: -42vmax; left: -20vmax; animation: drift-b 48s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, 9vmax, 0) scale(0.94); } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(100% - 32px, var(--wrap)); margin-inline: auto;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand-icon { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-gh {
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
}
.nav-gh:hover { background: var(--card-hi); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--card-hi); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none !important; }
[data-theme='light'] .i-sun { display: none !important; }
[data-theme='light'] .i-moon { display: block !important; }
.theme-toggle { display: none; }
.js .theme-toggle { display: grid; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(64px, 9vw, 120px); }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 88px; height: 88px; filter: drop-shadow(0 18px 40px rgba(125, 92, 255, 0.45)); }
.wordmark { margin-top: 18px; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.hero h1 {
  margin-top: 18px; max-width: 15ch;
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: 0.98; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 .accent { letter-spacing: -0.02em; }
.lede {
  margin-top: 26px; max-width: 40rem;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted);
  text-wrap: pretty;
}
.cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 10px 30px -10px rgba(125, 92, 255, 0.7); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-glass {
  border: 1px solid var(--border); background: var(--card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { background: var(--card-hi); }
.meta {
  margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--muted);
}
.meta a { color: var(--text); }

.reel { margin-top: clamp(48px, 7vw, 80px); margin-bottom: 0; }
.reel-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: #000;
  box-shadow: 0 40px 120px -30px rgba(125, 92, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  aspect-ratio: 16 / 9;
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-sound {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 var(--sans); color: #F5F5F7;
  background: rgba(10, 10, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background 0.2s ease, opacity 0.3s ease;
}
.reel-sound:hover { background: rgba(10, 10, 14, 0.75); }
.reel-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.reel-sound svg path:first-child { fill: currentColor; }
.reel-sound[aria-pressed='false'] .wave { opacity: 0.35; }
.reel.has-controls .reel-sound { bottom: 64px; }
.reel-caption { margin: 14px auto 0; max-width: 46rem; text-align: center; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.section h2 {
  margin-top: 14px; max-width: 18ch;
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-lede { margin-top: 20px; max-width: 38rem; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.section-note { margin-top: 36px; max-width: 44rem; color: var(--muted); text-wrap: pretty; }

/* Flow diagram */
.flow {
  margin-top: 48px; display: grid; align-items: stretch;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
}
.flow-node {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.flow-node h3 { margin-top: 18px; font-size: 22px; letter-spacing: -0.03em; }
.flow-node p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.flow-step { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-lcu {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--accent) border-box;
  box-shadow: 0 20px 70px -25px rgba(125, 92, 255, 0.8);
}
.flow-lcu::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(125, 92, 255, 0.18), transparent 70%);
}
.flow-icon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; }
.flow-link { position: relative; display: flex; align-items: center; justify-content: center; }
.flow-link span {
  position: relative; display: block; width: 100%; height: 2px; overflow: hidden; border-radius: 2px;
  background: linear-gradient(90deg, rgba(111, 168, 255, 0.25), rgba(201, 91, 255, 0.25));
}
.flow-link span::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, #9C7BFF, transparent);
  animation: flow 2.6s linear infinite;
}
.flow-link:nth-child(4) span::after { animation-delay: 1.3s; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Cards */
.card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; margin-top: 10px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.card p a { color: var(--text); }
.card-label { font-family: var(--mono); font-size: 11.5px !important; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0 !important; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto !important; padding-top: 18px; font-size: 15px !important; font-weight: 600; }
.card-links a { color: var(--text); text-decoration: none; }
.card-links a::after { content: ' →'; }
.card-links a:hover { text-decoration: underline; }

.bento {
  margin-top: 48px; display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.bento > .card { grid-column: span 4; }
.bento > .card-desktop { grid-column: span 7; }
.bento > .card-chrome { grid-column: span 5; }
.bento > .card-wide { grid-column: span 12; flex-direction: row; gap: 40px; align-items: center; justify-content: space-between; }
.card-wide > div { max-width: 40rem; display: flex; flex-direction: column; }
.card-wide .card-links { padding-top: 16px; }

.art { position: relative; height: 180px; margin-bottom: 22px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, rgba(111, 168, 255, 0.16), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(201, 91, 255, 0.16), transparent 60%);
  border: 1px solid var(--border);
}
.win {
  position: absolute; left: 12%; right: 12%; top: 22px; bottom: -8px; border-radius: 12px;
  background: var(--card-hi); border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.win-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-bar i:nth-child(1) { background: #FF5F57; }
.win-bar i:nth-child(2) { background: #FEBC2E; }
.win-bar i:nth-child(3) { background: #28C840; }
.win-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.bar { height: 7px; border-radius: 4px; background: var(--border); }
.w70 { width: 70%; } .w45 { width: 45%; }
.field {
  display: inline-flex; align-items: center; align-self: flex-start;
  font: 500 13px var(--sans); color: var(--text); padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--code-bg);
}
.caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; background: #9C7BFF; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.win-btn {
  position: absolute; right: 18px; bottom: 30px; font: 600 12px var(--sans);
  padding: 6px 14px; border-radius: 8px; color: #fff; background: linear-gradient(100deg, #5D8BFF, #7D5CFF);
}
.cursor {
  position: absolute; width: 22px; right: calc(12% + 22px); bottom: 12px;
  fill: #fff; stroke: #1b1330; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  animation: pointer 5s ease-in-out infinite;
}
@keyframes pointer {
  0%, 100% { transform: translate(-80px, -60px); }
  45%, 60% { transform: translate(0, 0); }
  52% { transform: translate(0, 0) scale(0.9); }
}

.art-browser { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 6px; }
.tab { font: 500 12px var(--sans); padding: 6px 12px; border-radius: 8px 8px 4px 4px; background: var(--code-bg); color: var(--muted); border: 1px solid var(--border); }
.tab.on { color: var(--text); background: var(--card-hi); }
.approve {
  margin-top: auto; align-self: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--card-hi); border: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 10px;
}
.approve-title { font: 600 14px var(--sans); }
.approve-row { display: flex; gap: 8px; }
.chip { font: 600 12px var(--sans); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chip-on { color: #fff; border-color: transparent; background: linear-gradient(100deg, #5D8BFF, #7D5CFF); }

.dots { margin: 18px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.dots li { display: flex; align-items: center; gap: 10px; }
.dots li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.mono-list { margin: 18px 0 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mono-list li { font: 500 13px var(--mono); padding: 5px 10px; border-radius: 8px; background: var(--code-bg); border: 1px solid var(--border); }
.badge {
  margin: 18px 0 8px !important; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px !important; font-weight: 600;
  color: var(--ok) !important; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
}
.checks { flex: 0 0 auto; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.checks li {
  display: flex; justify-content: space-between; gap: 24px; padding: 12px 16px; border-radius: 12px;
  background: var(--code-bg); border: 1px solid var(--border); font: 500 13px var(--mono);
}
.checks li span:first-child::before { content: '✓  '; color: var(--ok); }
.checks li span:last-child { color: var(--muted); }

/* Code */
.code-card {
  margin-top: 36px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--code-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -40px rgba(125, 92, 255, 0.6);
}
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--border);
}
.code-title { font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.copy {
  font: 600 13px var(--sans); color: var(--text); cursor: pointer; min-width: 76px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-hi);
}
.copy:hover { background: var(--border); }
.copy.done { color: var(--ok); }
pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere;
}
pre code { font-size: inherit; }
.hint { margin-top: 18px; max-width: 44rem; color: var(--muted); font-size: 15px; }

.install-grid, .req-grid { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.code-card-sm { margin-top: 14px; box-shadow: none; }
.code-card-sm pre { font-size: 13px; padding: 14px 16px; }
.archives { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.archives li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--border); font-size: 14px;
}
.archives code { color: var(--muted); font-size: 12.5px; }
.card p code, .req-list code { padding: 1px 6px; border-radius: 6px; background: var(--code-bg); border: 1px solid var(--border); }

/* Requirements */
.req-list { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.req-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 16px; }
.req-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
}
.req-list strong { color: var(--text); font-weight: 600; }
.req-list a { color: var(--text); }
.platforms { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 16px; }
.platforms thead th { font: 500 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 0; }
.platforms thead th:last-child { text-align: right; }
.platforms tbody th, .platforms td { padding: 14px 0; border-top: 1px solid var(--border); vertical-align: top; }
.platforms tbody th { text-align: left; font-weight: 600; padding-right: 16px; }
.platforms tbody th span { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--muted); }
.platforms td { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 500 12px var(--mono); border: 1px solid currentColor; }
.pill-ok { color: var(--ok); }
.pill-mid { color: var(--mid); }
.pill-no { color: var(--no); }

/* Footer */
.footer { padding: 56px 0 64px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 24px; grid-template-columns: auto 1fr; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; max-width: 44rem; font-size: 13px; color: var(--muted); }

/* Scroll reveal (only when JS is running and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .bento > .card, .bento > .card-desktop, .bento > .card-chrome { grid-column: span 6; }
  .bento > .card:nth-child(5) { grid-column: span 12; }
  .bento > .card-wide { flex-direction: column; align-items: stretch; gap: 24px; }
  .checks { min-width: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .flow { grid-template-columns: 1fr; grid-template-rows: auto 40px auto 40px auto; }
  .flow-link span { width: 2px; height: 100%; background: linear-gradient(180deg, rgba(111, 168, 255, 0.25), rgba(201, 91, 255, 0.25)); }
  .flow-link span::after { width: 100%; height: 50%; background: linear-gradient(180deg, transparent, #9C7BFF, transparent); animation-name: flow-v; }
  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento > .card-desktop, .bento > .card-chrome, .bento > .card-wide, .bento > .card:nth-child(5) { grid-column: auto; }
  .install-grid, .req-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .card h3 { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .reel-frame { border-radius: 18px; }
  .reel-sound { right: 8px; bottom: 8px; gap: 6px; padding: 6px 10px 6px 8px; font-size: 12px; }
  .reel-sound svg { width: 15px; height: 15px; }
  .reel.has-controls .reel-sound { bottom: 56px; }
}
@keyframes flow-v { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@media (max-width: 420px) {
  .nav-gh { padding: 7px 12px; }
  .hero h1 { font-size: 42px; }
  .cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow span, .flow-link span::after, .caret, .cursor { animation: none !important; }
  .cursor { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .reel-sound { transition: none; }
}
