/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hi: rgba(255, 255, 255, 0.075);
  --nav-bg: rgba(16, 16, 16, 0.62);
  --accent: #c084fc;
  --accent-hi: #ee1111;
  --accent-2: #a855f7;
  --ok: #4ade80;
  --ink: #0a0a0a;
  --btn: #f5f5f5;
  --btn-text: #0a0a0a;
  --glow: rgba(238, 17, 17, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --text: #111111;
  --muted: #5f5f5f;
  --faint: #9a9a9a;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.15);
  --panel: rgba(255, 255, 255, 0.7);
  --panel-hi: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --accent: #9333ea;
  --accent-hi: #dc2626;
  --accent-2: #7c3aed;
  --btn: #111111;
  --btn-text: #f5f5f5;
  --glow: rgba(220, 38, 38, 0.14);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
::selection { background: var(--accent-hi); color: var(--ink); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(860px, calc(100% - 48px)); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-text);
  text-decoration: none; font-weight: 600; transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 10px; }

/* ---------- intro loader ---------- */
.intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.intro-mark { width: 64px; height: 64px; animation: intro-pop 1s var(--ease-out) both, spin-soft 2.4s linear infinite; }
.intro-bar { width: 140px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: var(--text); transform-origin: left; animation: load .9s var(--ease) both; }
html:not(.js) .intro, .intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes intro-pop { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@keyframes spin-soft { 50% { transform: rotate(8deg) scale(1.04); } }
@keyframes load { from { transform: scaleX(0); } }

/* ---------- scroll progress + cursor glow ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 250; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: opacity .4s;
}
.has-pointer .cursor-glow { opacity: 1; }

/* ---------- floating pill nav ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 200; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(var(--max), 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), width .6s var(--ease-out), padding .5s var(--ease);
}
.scrolled .nav {
  background: var(--nav-bg); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  width: min(980px, 100%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; font-size: 15px; }
.brand img { width: 28px; height: 28px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: 2px; position: relative; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { background: var(--panel-hi); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background-color .3s, color .3s;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .3s, transform .5s var(--ease-out);
}
.icon-btn:hover { background: var(--panel-hi); }
.theme-toggle:hover svg { transform: rotate(-25deg); }
.theme-toggle svg { transition: transform .6s var(--ease-out); }
.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-out); }
.menu-btn span:first-child { transform: translateY(-3.5px); }
.menu-btn span:last-child { transform: translateY(3.5px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
.mobile-menu {
  pointer-events: auto; position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 90px 28px 40px; background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; text-decoration: none;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.mobile-menu a i { font-style: normal; font-size: 12px; color: var(--faint); font-family: ui-monospace, monospace; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .18s; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn-small { min-height: 38px; padding: 0 18px; font-size: 13.5px; background: var(--btn); color: var(--btn-text); }
.btn-primary { background: var(--btn); color: var(--btn-text); box-shadow: 0 14px 40px rgba(0,0,0,.25), 0 0 0 1px var(--line); }
.btn-primary:hover { box-shadow: 0 20px 60px rgba(238,17,17,.35), 0 0 0 1px var(--line-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--panel); }
.btn-ghost:hover { background: var(--panel-hi); }
.btn:active { transform: scale(.97); }
.sheen::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.btn-primary.sheen::after, .btn-small.sheen::after { background: linear-gradient(105deg, transparent 35%, rgba(238,17,17,.35) 50%, transparent 65%); }
.sheen:hover::after { transform: translateX(120%); }
.ripple-dot {
  position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: currentColor; opacity: .25; pointer-events: none; animation: ripple .7s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(28); opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 90px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 72px 72px; } }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; left: -140px; top: 8%; background: radial-gradient(circle, rgba(238,17,17,.35), transparent 70%); }
.b2 { width: 460px; height: 460px; right: -120px; top: 30%; background: radial-gradient(circle, rgba(168,85,247,.28), transparent 70%); animation-delay: -6s; }
.b3 { width: 380px; height: 380px; left: 40%; bottom: -160px; background: radial-gradient(circle, rgba(192,132,252,.18), transparent 70%); animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(60px, -40px, 0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-inner { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(143,211,168,.6); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(143,211,168,0); } 100% { box-shadow: 0 0 0 0 rgba(143,211,168,0); } }
.display, .display-md, .display-lg { font-weight: 600; letter-spacing: -.045em; line-height: .98; margin: 0; }
.display { font-size: clamp(3rem, 8.4vw, 7.6rem); max-width: 12ch; }
.display-md { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.display-lg { font-size: clamp(2.4rem, 6vw, 5.4rem); max-width: 14ch; }
.display em, .display-md em, .display-lg em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-hi) 45%, var(--accent) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(238,17,17,.4));
}
@keyframes shimmer { 50% { background-position: 100% 0; } }
.lede { max-width: 560px; margin: 28px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.note { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: border-color .3s, color .3s, transform .5s var(--ease-out);
}
.pill:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.pill svg { transition: transform .4s var(--ease-out); }
.pill:hover svg { transform: translateX(3px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); animation: ping 2.2s var(--ease) infinite; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- stats ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { margin: 0 0 18px; font-family: ui-monospace, monospace; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 12px; }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--line-2); }
.sub { margin: 20px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 640px; }
.sub .num, .feat .num { color: var(--text); font-weight: 600; }

/* features: numbered list */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px 28px 34px; background: var(--bg); transition: background-color .5s var(--ease); }
.feat:hover { background: var(--bg-2); }
.feat-n { font-family: ui-monospace, monospace; font-size: 13px; color: var(--faint); transition: color .4s; }
.feat:hover .feat-n { color: var(--accent-hi); }
.feat h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.feat:hover::before { transform: scaleX(1); }
.feat:last-child { grid-column: span 3; }

/* spotlight cards */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(238,17,17,.14), transparent 45%);
  transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .7s var(--ease-out), border-color .4s; }
.shot.wide { grid-column: span 2; }
.shot:hover { border-color: var(--line-2); transform: translateY(-4px); }
.shot img, .shot video { width: 100%; height: auto; aspect-ratio: 16 / 9.4; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; filter: saturate(.85); }
.shot:hover img, .shot:hover video { transform: scale(1.045); filter: none; }
.shot figcaption { padding: 16px 20px 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .6s var(--ease-out), border-color .4s, background-color .4s;
}
.dl-card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--panel-hi); }
.dl-card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dl-os { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.dl-file {
  position: relative; z-index: 2; display: inline-flex; align-self: flex-start; padding: 9px 14px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text); font-size: 13px; font-weight: 600; text-decoration: none; word-break: break-all;
  transition: transform .4s var(--ease-out);
}
.dl-file:hover { transform: translateY(-2px); }
.dl-size { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.dl-sha { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.hash { position: relative; z-index: 2; text-transform: none; letter-spacing: 0; font-size: 11.5px; color: var(--muted); word-break: break-all; line-height: 1.45; user-select: all; }
.source { margin-top: 16px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.source h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.source p { margin: 0; color: var(--muted); font-size: 14.5px; }
.source p a { color: var(--text); }
.source .github { grid-row: 1 / span 3; grid-column: 2; position: relative; z-index: 2; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background-color .3s; }
.source .github:hover { background: var(--panel-hi); }

/* macOS first-launch callout */
.mac-note { margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(168,85,247,.14), transparent 60%), var(--panel); overflow: hidden; }
.mac-note summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 600; letter-spacing: -.01em; }
.mac-note summary::-webkit-details-marker { display: none; }
.mac-note summary::after { content: "+"; margin-left: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 400; transition: transform .5s var(--ease-out); }
.mac-note[open] summary::after { transform: rotate(45deg); }
.mac-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; }
.mac-ic::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 15px; }
.mac-body { padding: 0 22px 20px 62px; color: var(--muted); font-size: 14.5px; }
.mac-body p { margin: 0 0 10px; }
.mac-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.mac-body b { color: var(--text); font-weight: 600; }
.mac-note[open] .mac-body { animation: faq-in .5s var(--ease-out); }
@media (max-width: 640px) { .mac-body { padding-left: 22px; } }

/* faq accordion */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 400; transition: transform .5s var(--ease-out), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--panel-hi); }
.faq summary:hover { color: var(--accent-hi); }
.faq details p { margin: 0; padding: 0 56px 26px 0; color: var(--muted); }
.faq details[open] p { animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--panel-hi); }

/* closing cta */
.cta-band { padding: clamp(110px, 14vw, 180px) 0; }
.cta-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; padding: clamp(40px, 6vw, 80px); border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(800px circle at 90% 0%, rgba(168,85,247,.22), transparent 55%), var(--bg-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 13.5px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .brand { color: var(--text); }
.foot a:not(.brand) { text-decoration: none; transition: color .3s; }
.foot a:not(.brand):hover { color: var(--text); }

/* orbit: logo inside animated rings */
.orbit { --s: 360px; position: relative; width: var(--s); height: var(--s); display: grid; place-items: center; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.orbit .o1 { inset: 18%; animation: spin 22s linear infinite; }
.orbit .o1::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 18px var(--accent-hi); }
.orbit .o2 { inset: 0; border-style: dashed; opacity: .55; animation: spin 60s linear infinite reverse; }
.orbit-core {
  position: relative; width: 38%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--panel-hi), transparent 70%); border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(238,17,17,.25), inset 0 0 30px rgba(192,132,252,.08);
  animation: float 7s ease-in-out infinite;
}
.orbit-core img { width: 62%; height: auto; filter: drop-shadow(0 6px 24px rgba(238,17,17,.35)); }
.orbit-hero { position: absolute; right: 6%; top: 50%; --s: 460px; margin-top: calc(var(--s) / -2 + 40px); }
.orbit-cta { --s: 300px; margin: -40px -20px -40px 0; }
.cta-text { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .dl-card.reveal.in:hover { transform: translateY(-5px); }
.js .shot.reveal.in:hover { transform: translateY(-4px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .orbit-hero { --s: 340px; right: -60px; opacity: .7; }
  .orbit-cta { --s: 230px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feat:last-child { grid-column: span 2; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  }
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 36px); }
  .nav { padding-left: 12px; }
  .brand span { display: none; }
  .hero { padding-top: 120px; }
    .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .stat:first-child { border-top: 0; }
  .feats, .dl-grid, .gallery { grid-template-columns: 1fr; }
  .feat:last-child, .shot.wide { grid-column: auto; }
  .source { grid-template-columns: 1fr; }
  .orbit-hero { right: auto; left: 50%; top: auto; bottom: 70px; margin: 0 0 0 calc(var(--s) / -2); --s: 230px; opacity: 1; }
  .hero { padding-bottom: 330px; }
  .cta-inner { grid-template-columns: 1fr; }
  .orbit-cta { --s: 200px; margin: 0 auto; order: -1; }
  .source .github { grid-row: auto; grid-column: auto; justify-self: start; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .faq details p { padding-right: 0; }
  .cursor-glow { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .intro, .cursor-glow { display: none; }
}


/* ---------- NFcraft extras ---------- */
.hero-logo {
  width: min(180px, 42vw); height: auto; margin: 0 0 18px;
  filter: drop-shadow(0 12px 40px rgba(238,17,17,.35));
  animation: float 7s ease-in-out infinite;
}
.ip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.ip-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .4s, transform .6s var(--ease-out), background-color .4s;
}
.ip-card:hover { border-color: var(--line-2); background: var(--panel-hi); transform: translateY(-3px); }
.ip-card.soon { opacity: .85; }
.ip-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ip-value {
  margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 600; letter-spacing: -.01em; word-break: break-all; color: var(--text);
}
.ip-meta { margin: 0; font-size: 13px; color: var(--faint); }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-copy { min-height: 40px; padding: 0 16px; font-size: 13px; cursor: pointer; border: 1px solid var(--line-2); background: var(--btn); color: var(--btn-text); border-radius: 999px; font-weight: 600; font-family: inherit; }
.btn-copy.ghost { background: var(--panel); color: var(--text); }
.btn-copy.copied { background: var(--ok); color: #052e16; border-color: transparent; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 24px 22px 72px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 22px;
  font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent-hi); font-weight: 600;
}
.steps li h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -.02em; }
.steps li p { margin: 0; color: var(--muted); font-size: 14.5px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.rules .rn { font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent-hi); padding-top: 2px; }
.rules h3 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: -.01em; }
.rules p { margin: 0; color: var(--muted); font-size: 14.5px; }
.idea-form {
  display: grid; gap: 14px; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); max-width: 640px;
}
.idea-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.idea-form input, .idea-form textarea, .idea-form select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; resize: vertical;
}
.idea-form input:focus, .idea-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.idea-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-msg { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #f87171; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 500; transform: translateX(-50%) translateY(20px);
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--text); font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease-out); max-width: min(520px, calc(100% - 32px)); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 450; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(420px, 100%); padding: 28px; border-radius: 24px; border: 1px solid var(--line-2);
  background: var(--bg-2); box-shadow: var(--shadow); text-align: center;
}
.modal h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -.02em; }
.modal p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(238,17,17,.15); color: var(--accent-hi); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) {
  .ip-grid, .idea-form .row, .split-2 { grid-template-columns: 1fr; }
}
.btn-discord { background: #5865F2; color: #fff; border: 0; }
.btn-discord:hover { box-shadow: 0 16px 40px rgba(88,101,242,.35); }
.btn-primary { box-shadow: 0 14px 40px rgba(238,17,17,.2), 0 0 0 1px var(--line); }
.btn-primary:hover { box-shadow: 0 20px 60px rgba(238,17,17,.35), 0 0 0 1px var(--line-2); }
.btn-primary.sheen::after, .btn-small.sheen::after { background: linear-gradient(105deg, transparent 35%, rgba(238,17,17,.45) 50%, transparent 65%); }
.orbit-core { box-shadow: 0 0 80px rgba(238,17,17,.28), inset 0 0 30px rgba(168,85,247,.08); }
.cta-inner { background: radial-gradient(800px circle at 90% 0%, rgba(238,17,17,.2), transparent 55%), var(--bg-2); }
::selection { background: var(--accent-hi); color: #fff; }

/* ---------- custom pallino cursor ---------- */
.cursor-dot {
  display: none;
  position: fixed; left: 0; top: 0; z-index: 10000;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #ee1111;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.55), 0 0 18px rgba(238, 17, 17, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--dx, -999px), var(--dy, -999px), 0) scale(var(--ds, 1));
  transition: opacity .25s, width .2s, height .2s, margin .2s, background-color .3s;
}
.cursor-dot.hover {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: #a855f7;
  box-shadow: 0 0 0 2px rgba(238, 17, 17, 0.55), 0 0 22px rgba(168, 85, 247, 0.5);
}
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
  html.has-custom-cursor .cursor-dot { display: block; }
  html.has-custom-cursor.has-pointer .cursor-dot { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none !important; }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto !important; }
}

/* ---------- ideas list ---------- */
.ideas-list { display: grid; gap: 12px; margin-top: 20px; padding-bottom: 80px; }
.idea-card {
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); transition: border-color .3s, background-color .3s;
}
.idea-card:hover { border-color: var(--line-2); background: var(--panel-hi); }
.idea-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.idea-card-name { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.idea-card-cat {
  margin: 0; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi);
}
.idea-card-time { margin: 0 0 0 auto; font-size: 12.5px; color: var(--faint); font-family: ui-monospace, monospace; }
.idea-card-body { margin: 0; color: var(--muted); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.ideas-empty { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }


/* ---------- mobile / touch performance (lite) ---------- */
html.intro-pending body > :not(.intro) {
  visibility: hidden;
}
html.intro-pending .intro {
  visibility: visible;
}

@media (hover: none), (pointer: coarse), (max-width: 820px) {
  html { scroll-behavior: auto; }

  .orbit,
  .orbit-hero,
  .orbit-cta,
  .cursor-glow,
  .cursor-dot,
  .grid-lines,
  .blob,
  .scroll-cue {
    display: none !important;
  }

  .hero {
    padding-bottom: 90px;
    min-height: auto;
  }

  .hero-logo {
    width: min(112px, 36vw);
    animation: none !important;
    filter: none;
  }

  .scrolled .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-2);
  }

  .toast {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .display em, .display-md em, .display-lg em {
    animation: none !important;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--accent-hi);
  }

  .dot, .pulse { animation: none !important; box-shadow: none; }
  .sheen::after { display: none !important; }
  .btn, .magnetic { will-change: auto; transform: none !important; }
  .js .reveal { transition-duration: .35s; }

  .intro-mark { animation: intro-pop .55s var(--ease-out) both; }
  .intro-bar span { animation: load .55s var(--ease) both; }
  .intro { transition: opacity .35s var(--ease), visibility .35s; }
}

html.lite .orbit,
html.lite .orbit-hero,
html.lite .orbit-cta,
html.lite .cursor-glow,
html.lite .cursor-dot,
html.lite .grid-lines,
html.lite .blob,
html.lite .scroll-cue {
  display: none !important;
}
html.lite .hero { padding-bottom: 90px; min-height: auto; }
html.lite .hero-logo { animation: none !important; filter: none; width: min(112px, 36vw); }
html.lite .scrolled .nav,
html.lite .toast {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.lite .display em, html.lite .display-md em, html.lite .display-lg em {
  animation: none !important; filter: none; background: none;
  -webkit-background-clip: unset; background-clip: unset; color: var(--accent-hi);
}
html.lite .dot, html.lite .pulse { animation: none !important; box-shadow: none; }
html.lite .sheen::after { display: none !important; }
html.lite .btn, html.lite .magnetic { will-change: auto; transform: none !important; }
