:root {
  --bg: #0d0d0f;
  --surface: #151518;
  --raised: #1c1c21;
  --raised-2: #24242a;
  --border: #2a2a31;
  --text: #ededf0;
  --muted: #a1a1ab;
  --faint: #6f6f7a;
  --yellow: #ffc81f;
  --yellow-hover: #ffd651;
  --yellow-ink: #141100;
  --yellow-soft: rgba(255, 200, 31, 0.12);
  --yellow-line: rgba(255, 200, 31, 0.35);
  --red: #ff5f5f;
  --orange: #ffa53d;
  --green: #4ade80;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1200px;
}

* { box-sizing: border-box; }
/* The tilted marquee and hero decorations extend past the edges; never let them add a sideways scroll. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(255, 200, 31, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code, .mono {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: var(--raised-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 8px; }
.brand strong { color: var(--yellow); font-weight: 800; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav-links a:hover { color: var(--text); background: var(--raised); }
.nav-links a.active { color: var(--yellow); background: var(--yellow-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, transform 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: var(--yellow-hover); color: var(--yellow-ink); }
.btn-secondary { background: var(--raised-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #2c2c33; color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-large { padding: 14px 26px; font-size: 16px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--raised); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--raised-2); }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { outline: none; min-height: 70vh; }
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--yellow); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}

/* Hero */
.hero { padding: 80px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 18px; }
.hero h1 span { color: var(--yellow); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-art {
  position: relative; aspect-ratio: 1; border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 200, 31, 0.30), transparent 60%),
    linear-gradient(160deg, #1b1b20, #0f0f12);
  border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 75%);
}
.hero-art img {
  position: relative; width: 66%;
  filter: drop-shadow(0 24px 40px rgba(255, 200, 31, 0.35));
  animation: float 6s ease-in-out infinite;
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--raised); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; }
.chip-yellow { background: var(--yellow-soft); border-color: var(--yellow-line); color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Project cards (home) */
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.15s, transform 0.15s;
}
.project-card:hover { border-color: var(--yellow-line); transform: translateY(-2px); }
.project-icon { width: 88px; height: 88px; position: relative; flex-shrink: 0; }
.project-icon img {
  width: 100%; height: 100%; border-radius: 20%;
  box-shadow: 0 10px 30px rgba(0, 110, 200, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.project-icon .badge {
  position: absolute; right: -6px; bottom: -6px;
  background: var(--yellow); color: var(--yellow-ink);
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 3px solid var(--surface);
}
.project-card h3 { font-size: 21px; font-weight: 800; color: var(--text); }
.project-card h3 a { color: inherit; }
.project-card .by { color: var(--faint); font-size: 14px; font-weight: 500; }
.project-card p.summary { color: var(--muted); margin: 8px 0 14px; }
.project-card .card-foot .btn { margin-left: auto; }
.project-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step-num {
  position: absolute; top: 20px; left: 24px;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 800;
  display: grid; place-items: center; font-size: 15px;
}
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--yellow); margin-bottom: 14px;
}
.feature .feature-icon svg { width: 21px; height: 21px; }
.confidence { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.confidence.high { background: rgba(255, 95, 95, 0.14); color: var(--red); }
.confidence.medium { background: rgba(255, 165, 61, 0.14); color: var(--orange); }
.confidence.low { background: var(--yellow-soft); color: var(--yellow); }
.confidence.info { background: var(--raised-2); color: var(--muted); }

/* Split callout */
.callout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0;
}
.callout > div { padding: 30px; }
.callout > div + div { border-left: 1px solid var(--border); background: var(--raised); }
.callout h3 { font-size: 20px; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); }
.ticks li svg { color: var(--yellow); margin-top: 3px; }
.ticks.cross li svg { color: var(--faint); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Project page */
.project-header {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center;
  padding: 36px 0 26px;
}
.project-header .project-icon { width: 112px; height: 112px; border-radius: 24px; }
.project-header h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.project-header .summary { color: var(--muted); font-size: 17px; margin: 6px 0 12px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-actions { display: flex; gap: 10px; }
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px;
  overflow-x: auto; overflow-y: hidden;
}
.tabs a { color: var(--muted); font-weight: 700; padding: 12px 16px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--yellow); box-shadow: inset 0 -2px var(--yellow); }
.project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; padding-bottom: 72px; }
.sidebar { display: grid; gap: 16px; position: sticky; top: 84px; }
.sidebar .card { padding: 20px; }
.sidebar h3 { font-size: 15px; margin-bottom: 12px; }
.sidebar .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; padding: 4px 0; }
.sidebar .row strong { color: var(--text); font-weight: 600; text-align: right; }
.sidebar .sub { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 14px 0 8px; }
.sidebar .sub:first-of-type { margin-top: 0; }
.link-list { display: grid; gap: 4px; }
.link-list a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.link-list a:hover { background: var(--raised); color: var(--text); }

/* Prose (description tab) */
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.prose h3 { font-size: 17px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.notice {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: var(--yellow-soft); border: 1px solid var(--yellow-line); color: var(--text);
}
.notice svg { color: var(--yellow); margin-top: 3px; }
.notice p { color: var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 14px 10px; }
td { padding: 13px 14px; border-top: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
td strong { color: var(--text); }
td:not(:first-child) { white-space: nowrap; }
.table-card { padding: 18px 10px 8px; overflow-x: auto; }

/* Changelog */
.changelog { display: grid; gap: 0; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 24px; position: relative; padding-bottom: 32px; }
.release-side { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 4px; }
.release-side .ver { color: var(--text); font-size: 20px; font-weight: 800; display: block; }
.release h3 { font-size: 15px; margin: 16px 0 8px; color: var(--yellow); }
.release h3:first-child { margin-top: 0; }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }

/* Versions */
.version-name { display: flex; align-items: center; gap: 12px; }
.version-name .dl {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--yellow); color: var(--yellow-ink); flex-shrink: 0;
}
.version-name .dl:hover { background: var(--yellow-hover); color: var(--yellow-ink); }
.version-name small { display: block; color: var(--faint); font-size: 13px; }
.channel { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--yellow-soft); color: var(--yellow); }
.channel.latest { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.release + .release { border-top: 1px solid var(--border); padding-top: 28px; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--faint); word-break: break-all; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(520px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 20px; }
.modal-body { padding: 22px; display: grid; gap: 16px; }
.modal-body label { font-weight: 700; font-size: 14px; }
select {
  width: 100%; margin-top: 8px; font: inherit; color: var(--text);
  background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.file-card { display: flex; align-items: center; gap: 14px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.file-card .meta { flex: 1; min-width: 0; }
.file-card .meta strong { display: block; font-size: 14px; word-break: break-all; }
.file-card .meta span { color: var(--faint); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 24px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: 14px; }
.brand-footer { font-size: 15px; }

@media (max-width: 960px) {
  .hero-grid, .callout { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .callout > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .project-cards { grid-template-columns: 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .project-header { grid-template-columns: 88px 1fr; }
  .project-header .project-icon { width: 88px; height: 88px; }
  .project-actions { grid-column: 1 / -1; }
  .release { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .navbar-inner { justify-content: space-between; }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .project-card { grid-template-columns: 64px 1fr; }
  .project-card .project-icon { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Richer visuals ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 900px; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 40% 50%, #000 10%, transparent 65%);
}

.hero .container { position: relative; z-index: 1; }
.hero h1 span {
  background: linear-gradient(100deg, #ffe27a, var(--yellow) 45%, #ff9f1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--raised); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.live-pill b { background: var(--yellow); color: var(--yellow-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

/* Caution tape */
.tape {
  position: relative; overflow: hidden; transform: rotate(-1.5deg); margin: 8px -20px;
  background:
    repeating-linear-gradient(-45deg, #0d0d0f 0 14px, var(--yellow) 14px 28px) top / 100% 6px no-repeat,
    repeating-linear-gradient(-45deg, #0d0d0f 0 14px, var(--yellow) 14px 28px) bottom / 100% 6px no-repeat,
    var(--yellow);
  padding: 6px 0;
  box-shadow: 0 20px 50px rgba(255, 200, 31, 0.12);
}
.tape-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.tape-track span {
  color: var(--yellow-ink); font-weight: 800; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 0 12px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px;
}
.tape-track span::after { content: "\25C6"; font-size: 10px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { position: relative; overflow: hidden; }
.stat-card .value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.stat-card .value em { color: var(--yellow); font-style: normal; }
.stat-card .label { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 10px; }


/* Glow cards */
.glow { position: relative; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.glow:hover {
  border-color: var(--yellow-line); transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 200, 31, 0.07);
}

/* Steps connector */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 35px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow-line) 0 10px, transparent 10px 18px);
}
.step { background: var(--surface); }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.showcase .col { display: grid; gap: 20px; }
.window { padding: 0; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--raised); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; color: var(--faint); font-size: 13px; font-weight: 600; }
.window-caption { padding: 14px 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.window-caption strong { color: var(--text); }

.mc-screen {
  position: relative; height: 320px; display: grid; place-items: center; text-align: center;
  font-family: "Pixelify Sans", monospace; color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    repeating-conic-gradient(#3b2a1d 0 25%, #4a3424 0 50%) 0 0 / 32px 32px;
}
.mc-screen .mc-title { font-size: 28px; text-shadow: 3px 3px 0 #3f3f3f; }
.mc-screen .mc-sub { margin-top: 10px; font-size: 16px; color: #c8c8c8; text-shadow: 2px 2px 0 #333; }
.mc-bar { width: 220px; height: 8px; margin: 20px auto 0; background: #222; border: 2px solid #555; position: relative; overflow: hidden; }
.mc-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: #7ce26b; animation: load 2.4s ease-in-out infinite; }

.discord { background: #313338; padding: 18px; display: flex; gap: 14px; }
.discord .avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.discord .name { color: #f2f3f5; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.discord .bot { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.discord .time { color: #949ba4; font-size: 12px; font-weight: 500; }
.embed {
  margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--red); border-radius: 4px;
  padding: 12px 14px; display: grid; grid-template-columns: 1fr 56px; gap: 10px 12px; max-width: 460px;
}
.embed h4 { color: #f2f3f5; font-size: 15px; grid-column: 1; }
.embed .fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; grid-column: 1 / -1; }
.embed .f b { display: block; color: #f2f3f5; font-size: 12px; }
.embed .f span { color: #dbdee1; font-size: 13px; }
.embed pre { grid-column: 1 / -1; margin: 0; background: #1e1f22; border-radius: 4px; padding: 8px 10px; color: #dbdee1; font-size: 12px; }
.embed .thumb { grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 8px; }
.embed .foot { grid-column: 1 / -1; color: #949ba4; font-size: 11px; }

.console { background: #0a0a0c; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; padding: 16px 18px; line-height: 1.8; color: #a8a8b3; overflow-x: auto; }
.console div { white-space: nowrap; }
.console .t { color: #5c5c66; }
.console .ok { color: var(--green); }
.console .warn { color: var(--orange); }
.console .bad { color: var(--red); }
.console .y { color: var(--yellow); }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 48px;
  background: var(--yellow); color: var(--yellow-ink);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta::before {
  content: ""; position: absolute; right: -60px; top: -40px; bottom: -40px; width: 360px; transform: skewX(-18deg);
  background: repeating-linear-gradient(-45deg, #0d0d0f 0 18px, transparent 18px 36px);
  opacity: 0.16;
}
.cta > * { position: relative; }
.cta h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin-top: 10px; font-size: 17px; color: rgba(20, 17, 0, 0.75); max-width: 560px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-dark { background: #0d0d0f; color: var(--yellow); }
.btn-dark:hover { background: #1c1c21; color: var(--yellow-hover); }
.btn-outline-dark { background: transparent; color: var(--yellow-ink); border-color: rgba(20, 17, 0, 0.35); }
.btn-outline-dark:hover { background: rgba(20, 17, 0, 0.08); color: var(--yellow-ink); }

/* Project page banner */
.project-banner { position: relative; }
.project-banner::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 280px; pointer-events: none;
  background:
    radial-gradient(600px 220px at 12% 30%, rgba(255, 200, 31, 0.14), transparent 70%),
    radial-gradient(500px 200px at 85% 0%, rgba(0, 110, 200, 0.14), transparent 70%);
}
.project-banner::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 280px; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(#000, transparent);
}
.project-banner > .container { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .stat-card .value { font-size: 32px; }
  .cta h2 { font-size: 30px; }
  .embed .fields { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .tape-track, .live-dot, .mc-bar::after { animation: none !important; }
}

/* ---------- Effects (see effects.js) ---------- */

/* LightRays */


/* Headline: BlurText + RotatingText */
.hero-title { display: grid; gap: 2px; }
.hero h1.hero-title span { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }
.hero-line { display: block; }
.bt-word {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(-0.35em);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-in .bt-word { opacity: 1; filter: blur(0); transform: none; }
.hero h1.hero-title .rotating { display: inline-grid; overflow: hidden; padding-bottom: 0.08em; }
.hero h1.hero-title .rt-item {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(100deg, #ffe27a, var(--yellow) 45%, #ff9f1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(70%); filter: blur(8px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.55s ease;
}
.hero h1.hero-title .rt-item.rt-active { opacity: 1; transform: none; filter: blur(0); }
.hero h1.hero-title .rt-item.rt-leave { opacity: 0; transform: translateY(-70%); filter: blur(8px); }

/* ShinyText */
.shiny {
  background: linear-gradient(110deg, var(--muted) 35%, #ffffff 50%, var(--muted) 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.2s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* AnimatedContent: reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity 0.8s ease var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), filter 0.8s ease var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-blur-text] { opacity: 1; transform: none; filter: none; }
.glow[data-reveal].is-in:hover { transform: translateY(-3px); }

/* SpotlightCard */
[data-spotlight] { position: relative; overflow: hidden; isolation: isolate; }
[data-spotlight]::before,
[data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease;
}
[data-spotlight]::before {
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 200, 31, 0.13), transparent 70%);
}
[data-spotlight]::after {
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 200, 31, 0.85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }
.window[data-spotlight]::before { z-index: 0; }

/* StarBorder: a light that travels around the button's outline */
@property --sb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.star-border { position: relative; isolation: isolate; }
.star-border::before {
  content: ""; position: absolute; inset: -3px; border-radius: 15px; z-index: -1; padding: 3px;
  background: conic-gradient(from var(--sb-angle), transparent 0 70%, rgba(255, 255, 255, 0.95) 82%, #fff3b0 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sb-spin 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 230, 140, 0.9));
}
@keyframes sb-spin { to { --sb-angle: 360deg; } }

/* TiltedCard */
.hero-art { perspective: 900px; }
.hero-art-inner {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d;
}
.hero-art-inner img { transform: translateZ(40px); }

/* DotGrid */
.has-dots { position: relative; }
.dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.has-dots > .container { position: relative; z-index: 1; }
.has-dots .dots { mask-image: radial-gradient(ellipse at 50% 45%, #000 35%, transparent 80%); }
.dots-banner { height: 280px; mask-image: linear-gradient(#000 40%, transparent); }
.project-banner::after { display: none; }

/* ClickSpark */
.spark-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  .shiny, .star-border::before { animation: none; }
  [data-reveal], .bt-word { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Scrollbar ---------- */
/* Chrome, Edge, Safari: a rounded yellow thumb on a black track. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b0b0d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe27a, var(--yellow) 50%, #ff9f1a);
  border: 3px solid #0b0b0d; border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--yellow-hover); }
::-webkit-scrollbar-corner { background: #0b0b0d; }
/* Firefox only: in Chromium, setting scrollbar-color would switch off the styling above. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--yellow) #0b0b0d; scrollbar-width: thin; }
}
