/* Muninn website: dark-first, glassy cards, gradient accents. Light mode follows the system. */
:root {
  --bg: #0a0c14;
  --bg-glow-1: rgba(99, 102, 241, 0.22);
  --bg-glow-2: rgba(168, 85, 247, 0.16);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef6;
  --muted: #9aa0b5;
  --accent: #8b8cff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #ec4899 100%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --nav-bg: rgba(10, 12, 20, 0.7);
  --code-bg: rgba(139, 140, 255, 0.12);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-glow-1: rgba(99, 102, 241, 0.14);
    --bg-glow-2: rgba(168, 85, 247, 0.1);
    --surface: rgba(255, 255, 255, 0.75);
    --surface-strong: #ffffff;
    --border: rgba(20, 24, 40, 0.09);
    --border-strong: rgba(20, 24, 40, 0.16);
    --text: #161a2b;
    --muted: #5b6178;
    --accent: #5b5ef0;
    --shadow: 0 20px 50px -24px rgba(30, 35, 70, 0.28);
    --nav-bg: rgba(246, 247, 251, 0.75);
    --code-bg: rgba(91, 94, 240, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% -10%, var(--bg-glow-1), transparent 70%),
    radial-gradient(800px 500px at 100% 0%, var(--bg-glow-2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code {
  font: 0.88em/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--code-bg);
  color: var(--text);
  padding: 0.2em 0.45em;
  border-radius: 6px;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: #0a0c14;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px -6px rgba(139, 92, 246, 0.8);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 15px; padding: 7px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-strong); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: #fff; background: var(--gradient); border: 0;
  box-shadow: 0 10px 28px -10px rgba(139, 92, 246, 0.9); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 1); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { background: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--accent); }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.hero-logo {
  width: 150px; height: 150px; margin: 0 auto 28px; border-radius: 36px; background: #0a0c14;
  box-shadow: 0 0 0 1px var(--border-strong), 0 24px 70px -18px rgba(168, 85, 247, 0.75);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 22px 0 16px; font-weight: 800; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 760px; margin: 56px auto 0; }
.stat { padding: 18px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.stat strong { display: block; font: 800 28px/1.1 "Plus Jakarta Sans", sans-serif; }
.stat > span { color: var(--muted); font-size: 13px; }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; transition: transform 0.25s, box-shadow 0.25s, background 0.25s; }
.feature:hover { transform: translateY(-4px); background: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2)); box-shadow: inset 0 0 0 1px var(--border);
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature code { font-size: 0.82em; }

/* Game showcase */
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }
.shot { padding: 14px; display: flex; flex-direction: column; gap: 12px; grid-column: span 2; }
.shot.wide { grid-column: span 3; }
.shot img { border-radius: 12px; width: 100%; height: auto; }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 2px; }
.shot figcaption strong { font-size: 15px; }
.shot figcaption span { color: var(--muted); font-size: 13px; }
figure { margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  font: 800 16px/1 "Plus Jakarta Sans", sans-serif; color: #fff; background: var(--gradient);
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { text-align: center; padding: 48px 24px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, var(--bg-glow-1), transparent); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* Legal pages */
.doc-hero { padding: 64px 0 28px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 14px 0 8px; line-height: 1.1; }
.doc-hero p { color: var(--muted); margin: 0; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-bottom: 56px; }
.toc { position: sticky; top: 92px; padding: 18px; font-size: 14px; }
.toc strong { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; color: var(--muted); padding: 6px 10px; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.toc a:hover, .toc a.active { color: var(--text); background: var(--surface-strong); text-decoration: none; }
.toc a.active { box-shadow: inset 2px 0 0 var(--accent); }
.prose { padding: 36px 40px; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent); }
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); margin: 12px 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface); }
.callout { padding: 14px 18px; border-radius: 12px; background: var(--code-bg); box-shadow: inset 3px 0 0 var(--accent); margin: 16px 0; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 24px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 36px; flex-wrap: wrap; }
footer p { margin: 0; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 18px; font-size: 14px; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }

/* Scroll-in animation (skipped for people who prefer less motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot.wide { grid-column: span 3; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav .container { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 48px 0 40px; }
  .hero-logo { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .shot, .shot.wide { grid-column: span 6; }
  .toc ol { grid-template-columns: 1fr; }
  .prose { padding: 24px 20px; }
  section { padding: 40px 0; }
}

/* =====================================================================
   v2 effects (ideas adapted from the Topnet Motion Lookbook)
   ===================================================================== */
.container.narrow { max-width: 760px; }
.reveal { transition-delay: var(--d, 0ms); }

/* Header: shrinks after scrolling, with a reading-progress line */
.nav .container { transition: height 0.35s ease; }
.nav.stuck .container { height: 56px; }
.nav .brand-mark { transition: width 0.35s, height 0.35s; }
.nav.stuck .brand-mark { width: 30px; height: 30px; }
.nav.stuck { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gradient); }

/* Buttons: shine sweep, arrow circle, fill on hover */
.btn { position: relative; overflow: hidden; }
.btn.shine::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
}
.btn.shine:hover::after { transition: transform 0.8s ease; transform: translateX(130%); }
.loaded .hero .btn.shine::after { animation: shine 1.2s 1.1s ease; }
@keyframes shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.btn-arrow { padding-right: 52px; }
.btn-arrow .circ {
  position: absolute; right: 6px; top: 6px; bottom: 6px; aspect-ratio: 1; border-radius: 9px;
  background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; transition: background 0.3s, color 0.3s;
}
.btn-arrow .circ svg { width: 16px; height: 16px; transition: transform 0.35s; }
.btn-arrow:hover .circ { background: #fff; color: #7c3aed; }
.btn-arrow:hover .circ svg { transform: rotate(-45deg); }
.btn-fill { background: linear-gradient(var(--accent), var(--accent)) 0 0 / 0 100% no-repeat, var(--surface); transition: background-size 0.45s cubic-bezier(.2, .8, .2, 1), color 0.3s, box-shadow 0.3s, transform 0.2s; }
.btn-fill:hover { background-size: 100% 100%; color: #fff; }

/* Hero: drifting dot grid, glowing blobs, parallax badges */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-grid {
  position: absolute; inset: -40px; z-index: -1;
  background-image: radial-gradient(rgba(167, 139, 250, 0.35) 1.2px, transparent 1.4px); background-size: 24px 24px;
  animation: drift 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 10%, transparent 70%);
}
@keyframes drift { to { transform: translate(24px, 24px); } }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.blob-a { width: 380px; height: 380px; background: #6d28d9; left: -120px; top: -80px; animation: blob 12s ease-in-out infinite alternate; }
.blob-b { width: 320px; height: 320px; background: #db2777; right: -100px; top: 160px; opacity: 0.35; animation: blob 15s ease-in-out infinite alternate-reverse; }
@keyframes blob { to { transform: translate(60px, 40px) scale(1.15); } }
@media (prefers-color-scheme: light) { .blob { opacity: 0.18; } .blob-b { opacity: 0.12; } }
.hero-visual { position: relative; width: min(620px, 100%); height: 196px; margin: 0 auto 8px; display: grid; place-items: center; }
.hero-visual .hero-logo { margin: 0; }
.hero-visual [data-depth] { transition: translate 0.35s ease-out; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 14px; text-align: left;
  background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); white-space: nowrap; animation: bob 4.5s ease-in-out infinite;
}
.float-badge b { display: block; font-size: 13px; line-height: 1.2; }
.float-badge small { color: var(--muted); font-size: 11.5px; }
.fb-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-strong); font-size: 16px; }
.fb-1 { left: 0; top: 6px; }
.fb-2 { right: 0; top: 66px; animation-delay: -1.5s; }
.fb-3 { left: 40px; bottom: 4px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.loaded .float-badge { animation: pop-in 0.7s cubic-bezier(.2, .9, .25, 1.12) both, bob 4.5s 1s ease-in-out infinite; }
.loaded .fb-1 { animation-delay: 0.6s, 1.3s; }
.loaded .fb-2 { animation-delay: 0.8s, 1.5s; }
.loaded .fb-3 { animation-delay: 1s, 1.7s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
.loaded .hero-logo { animation: logo-in 1s 0.1s cubic-bezier(.2, .9, .25, 1.12) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(30px) rotate(-6deg) scale(0.9); } }

/* Headline: words rise in; the last part rotates through phrases with a drawn underline */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
.loaded .w > span { animation: rise 0.8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { from { transform: translateY(110%); } }
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: 0.12em; }
.rot > span {
  grid-area: 1 / 1; justify-self: start; white-space: nowrap; transform: translateY(105%); opacity: 0;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.4s;
}
.rot > span::after {
  content: ""; display: block; height: 4px; border-radius: 4px; margin-top: 2px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s 0.3s cubic-bezier(.2, .8, .2, 1);
}
.rot > span.on { transform: none; opacity: 1; }
.rot > span.on::after { transform: scaleX(1); }
.rot > span.out { transform: translateY(-105%); opacity: 0; }

/* Features: tabs with sliding indicator + Discord mock */
.tabs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tab-list { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tab-list button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px 12px 18px; border-radius: 14px;
  background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; transition: background 0.25s, color 0.25s;
}
.tab-list button b { display: block; color: var(--text); font-size: 15px; }
.tab-list button small { font-size: 13px; }
.tab-list button:hover { background: var(--surface); }
.tab-list button[aria-selected="true"] { background: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.t-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--surface-strong); transition: background 0.3s; }
.tab-list button[aria-selected="true"] .t-ic { background: var(--gradient); }
.tab-ind { position: absolute; left: 0; width: 3px; border-radius: 3px; background: var(--gradient); transition: top 0.45s cubic-bezier(.2, .8, .2, 1), height 0.45s; }
.tab-view { overflow: hidden; min-height: 380px; background: #313338; color: #dbdee1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow); }
.dc-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; color: #f2f3f5; border-bottom: 1px solid #26272d; background: #2b2d31; }
.dc-hash { color: #80848e; font-size: 20px; line-height: 1; }
.dc-dots { margin-left: auto; display: flex; gap: 5px; }
.dc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4e5058; }
.tab-panel { padding: 16px 18px 20px; display: grid; gap: 14px; }
.tab-panel.swap > * { animation: panel-in 0.5s cubic-bezier(.2, .8, .2, 1) both; }
.tab-panel.swap > *:nth-child(2) { animation-delay: 90ms; }
.tab-panel.swap > *:nth-child(3) { animation-delay: 180ms; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.45; }
.msg p { margin: 0; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: #5865f2; }
img.av { background: #0a0c14; }
.av-user { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.who { font-weight: 600; color: #f2f3f5; margin-bottom: 2px !important; }
.who time { font-weight: 400; font-size: 12px; color: #949ba4; margin-left: 6px; }
.app { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; margin-left: 2px; }
.mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 4px; padding: 0 3px; }
.cmd { color: #c9cdfb; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; }
.embed { margin-top: 6px; background: #2b2d31; border-left: 4px solid #a855f7; border-radius: 4px; padding: 10px 14px; font-size: 14px; max-width: 460px; }
.embed b:first-child { display: block; color: #f2f3f5; margin-bottom: 4px; }
.embed ul { margin: 4px 0 0; padding-left: 18px; }
.embed.warn { border-left-color: #f23f43; }
.embed.info { border-left-color: #23a55a; }
.embed .muted { color: #949ba4; font-size: 13px; }
.embed.profile .lvl { color: #dbdee1; font-weight: 600; margin: 2px 0 6px; }
.xp { display: block; height: 6px; border-radius: 6px; background: #1e1f22; overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: var(--gradient); transition: width 1.2s 0.3s cubic-bezier(.2, .8, .2, 1); }
.tab-panel:not([hidden]) .xp i { width: 64%; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pgrid span { display: grid; font-weight: 700; color: #f2f3f5; }
.pgrid small { font-weight: 600; font-size: 12px; color: #b5bac1; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-buttons span { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.dc-buttons span.ok { background: #248046; }
.panel-points { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #3f4147; display: grid; gap: 6px; font-size: 14px; color: #b5bac1; }
.panel-points li::before { content: "✓"; color: #a78bfa; font-weight: 700; margin-right: 8px; }
.panel-points code { background: #1e1f22; color: #dbdee1; }

/* Command ribbons */
.marquee {
  overflow: hidden; margin-top: 16px; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tabs + .marquee { margin-top: 40px; }
.mq-track { display: flex; gap: 10px; width: max-content; animation: mq 42s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 5px)); } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; white-space: nowrap;
  font: 600 14px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.3s, color 0.3s;
}
.chip.alt { background: var(--surface-strong); }
.chip:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Game flip cards */
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flip { perspective: 1100px; aspect-ratio: 1 / 1.05; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.flip-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(.3, .75, .2, 1); }
.face { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.front { background: #0a0c14; box-shadow: inset 0 0 0 1px var(--border); display: flex; align-items: center; justify-content: center; padding: 16px 16px 66px; }
.front img { min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.flip-label {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: rgba(20, 22, 34, 0.9); color: #eceef6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.turn { color: #a78bfa; font-size: 18px; transition: transform 0.5s; }
.flip:hover .turn { transform: rotate(180deg); }
.back {
  transform: rotateY(180deg); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: #fff;
  background: linear-gradient(150deg, #312e81, #6d28d9 55%, #be185d);
}
.back b:first-child { font: 800 22px/1.2 "Plus Jakarta Sans", sans-serif; }
.cmdline { font: 600 13px/1.3 "JetBrains Mono", ui-monospace, monospace; background: rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 7px 10px; align-self: flex-start; }
.back .li { display: flex; gap: 8px; font-size: 15px; }
.back .li::before { content: "✓"; font-weight: 700; color: #f0abfc; }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip.flipped .flip-in, .flip:focus-visible .flip-in { transform: rotateY(180deg); }

/* Chess ladder: auto-advancing steps with a big outline number */
.ladder-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ladder-steps button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--muted); font: inherit; }
.ladder-steps .bar { display: block; height: 4px; border-radius: 4px; background: var(--border-strong); overflow: hidden; margin-bottom: 10px; }
.ladder-steps .bar i { display: block; height: 100%; width: 0; background: var(--gradient); }
.ladder-steps button.done .bar i { width: 100%; }
.ladder-steps button[aria-selected="true"] .bar i { animation: fill 5s linear forwards; }
.ladder:hover .ladder-steps button[aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.ladder-steps small { display: block; font-size: 13px; font-weight: 600; }
.ladder-steps b { font: 800 18px/1.3 "Plus Jakarta Sans", sans-serif; color: var(--text); opacity: 0.5; transition: opacity 0.3s; }
.ladder-steps button[aria-selected="true"] { color: var(--text); }
.ladder-steps button[aria-selected="true"] b { opacity: 1; }
.ladder-panel { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 30px 34px; }
.ladder-num { font: 800 clamp(72px, 12vw, 132px)/0.85 "Plus Jakarta Sans", sans-serif; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px var(--accent); min-width: 3.1ch; }
.ladder-body h3 { margin: 0 0 6px; font-size: 24px; }
.ladder-body p { margin: 0 0 14px; color: var(--muted); max-width: 52ch; }
.reward { display: inline-flex; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 14px; background: var(--code-bg); }
.ladder-panel.swap .ladder-num { animation: num-in 0.6s cubic-bezier(.2, .8, .2, 1) both; }
.ladder-panel.swap .ladder-body > * { animation: panel-in 0.55s cubic-bezier(.2, .8, .2, 1) both; }
.ladder-panel.swap .ladder-body > *:nth-child(2) { animation-delay: 70ms; }
.ladder-panel.swap .ladder-body > *:nth-child(3) { animation-delay: 140ms; }
@keyframes num-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } }

/* Get started: timeline filling as you scroll */
.timeline { position: relative; padding-left: 66px; display: grid; gap: 36px; }
.tl-track, .tl-fill { position: absolute; left: 22px; top: 8px; width: 2px; border-radius: 2px; }
.tl-track { bottom: 8px; background: var(--border-strong); }
.tl-fill { height: 0; background: var(--gradient); }
.tl-step { position: relative; min-height: 70px; }
.tl-dot {
  position: absolute; left: -66px; top: -4px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 800 16px/1 "Plus Jakarta Sans", sans-serif; color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 2px var(--border-strong);
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.tl-step.on .tl-dot { background: var(--gradient); color: #fff; box-shadow: 0 8px 22px -8px rgba(168, 85, 247, 0.9); transform: scale(1.08); }
.tl-step b { display: block; font: 800 19px/1.3 "Plus Jakarta Sans", sans-serif; margin-bottom: 4px; color: var(--muted); transition: color 0.35s; }
.tl-step.on b { color: var(--text); }
.tl-step p { margin: 0; color: var(--muted); }

/* FAQ accordion */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.faq-side h2 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; }
.faq-side > p { color: var(--muted); margin: 0; }
.faq-cta { margin-top: 22px; padding: 22px; }
.faq-cta b { display: block; font: 800 18px/1.3 "Plus Jakarta Sans", sans-serif; }
.faq-cta p { margin: 4px 0 16px; color: var(--muted); }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px;
  background: none; border: 0; color: var(--text); font: 600 16.5px/1.4 "Inter", sans-serif; text-align: left; cursor: pointer; transition: color 0.25s;
}
.qa > button:hover { color: var(--accent); }
.pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-strong); transition: background 0.35s, transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: background 0.35s; }
.pm::after { transform: rotate(90deg); }
.qa.open .pm { background: var(--gradient); transform: rotate(135deg); }
.qa.open .pm::before, .qa.open .pm::after { background: #fff; }
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(.2, .8, .2, 1); }
.qa.open .a { grid-template-rows: 1fr; }
.qa .a > div { overflow: hidden; }
.qa .a p { margin: 0; padding: 0 48px 20px 2px; color: var(--muted); }

/* Responsive for v2 parts */
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tab-list button { flex: none; padding: 10px 14px; }
  .tab-list button small, .tab-ind { display: none; }
  .flips { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .float-badge { display: none; }
  .hero-visual { height: auto; }
  .rot { display: grid; justify-content: center; margin-top: 4px; }
  .rot > span { justify-self: center; }
  .flips { grid-template-columns: 1fr; }
  .ladder-steps { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .ladder-steps button { flex: 0 0 120px; }
  .ladder-panel { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .timeline { padding-left: 58px; }
  .tl-dot { left: -58px; width: 40px; height: 40px; }
  .tl-track, .tl-fill { left: 19px; }
  .nav.stuck .container { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .blob, .mq-track, .float-badge, .loaded .float-badge, .loaded .hero-logo, .loaded .w > span { animation: none !important; }
  .rot > span, .flip-in, .tab-panel.swap > *, .ladder-panel.swap * { transition: none !important; animation: none !important; }
  .ladder-steps button[aria-selected="true"] .bar i { animation: none; width: 100%; }
}
