:root {
  --bg: #05060b;
  --ink: #eef1f8;
  --ink-2: rgba(238, 241, 248, .66);
  --ink-3: rgba(238, 241, 248, .38);
  --accent: #7cc4ff;
  --accent-2: #b59cff;
  --accent-3: #5ef0c8;
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --edge: rgba(255, 255, 255, .14);
  --radius: 28px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
em { font-style: normal; color: var(--ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55; mix-blend-mode: screen;
  will-change: transform;
}
.b1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: radial-gradient(circle, #2b5cff 0%, transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; right: -12vmax; top: 10vh; background: radial-gradient(circle, #8a4dff 0%, transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 20vw; bottom: -20vmax; background: radial-gradient(circle, #00c2a8 0%, transparent 65%); animation: drift3 28s ease-in-out infinite alternate; opacity: .35; }
.b4 { width: 25vmax; height: 25vmax; left: 55vw; top: 45vh; background: radial-gradient(circle, #ff5fa2 0%, transparent 65%); animation: drift1 36s ease-in-out infinite alternate-reverse; opacity: .25; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vw, 30vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-15vw, -25vh) scale(1.2); } }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

/* ---------- Liquid glass ---------- */
.glass {
  --mx: 50%; --my: 0%;
  position: relative;
  background:
    radial-gradient(120% 80% at var(--mx) var(--my), rgba(255,255,255,.10), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 40%, rgba(255,255,255,.04));
  backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 1px 0 0 rgba(255,255,255,.08),
    inset -1px 0 0 rgba(255,255,255,.05),
    0 20px 60px -20px rgba(0,0,0,.65),
    0 2px 10px rgba(0,0,0,.25);
  isolation: isolate;
}
/* specular rim */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.05) 30%, rgba(255,255,255,0) 60%, rgba(255,255,255,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
/* inner sheen that follows the pointer */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(170, 210, 255, .16), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease); z-index: 0;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.nav.compact { transform: scale(.94); }
.nav.hidden { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-logo { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(64,140,255,.55)); transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .25s, background .25s; }
.nav ul a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav ul a.active { color: var(--ink); background: rgba(255,255,255,.1); }
.nav-cta { color: var(--bg) !important; background: var(--ink) !important; font-weight: 600; }

/* ---------- Layout bits ---------- */
section { position: relative; padding: 140px max(24px, 6vw); }
.eyebrow { font-size: 12px; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 600; max-width: 14ch; }
h2 .serif { letter-spacing: -.01em; }
h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; line-height: 1.15; }
.section-head { margin-bottom: 70px; }
.link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent); transition: transform .3s var(--ease), color .3s; }
.link:hover { transform: translateX(4px); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }

/* reveal (blur-to-sharp lift) */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }


/* ---------- Nav brand ---------- */
.brand-logo { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(64,140,255,.55)); transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
body.locked { overflow: hidden; }
.muted { color: var(--ink-3); }
code { font-family: var(--mono); font-size: .88em; padding: 2px 7px; border-radius: 7px; background: rgba(124,196,255,.1); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(124,196,255,.18); white-space: nowrap; }

.brand { white-space: nowrap; }
.home-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: -14px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--bg); background: var(--ink); transition: transform .35s var(--ease), background .3s; }
.home-btn:hover { transform: translateX(-2px); background: #fff; }
.home-arrow { transition: transform .35s var(--ease); }
.home-btn:hover .home-arrow { transform: translateX(-3px); }

/* ---------- Hero ---------- */
.hero > * { min-width: 0; }
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: 5vw; padding-top: 130px; padding-bottom: 80px; }
.hero-title { font-size: clamp(52px, 7.4vw, 112px); line-height: .95; letter-spacing: -.05em; font-weight: 700; margin-bottom: 26px; }
.hero-title .serif { display: block; font-weight: 400; letter-spacing: -.02em; background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* console demo */
.console { position: relative; padding: 0; border-radius: 26px; overflow: visible; min-height: 420px; display: flex; flex-direction: column; }
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; color: var(--ink-3); }
.lights { display: flex; gap: 7px; } .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.online b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); margin-right: 5px; animation: pulse 1.6s ease-in-out infinite; }
.console-body { flex: 1; padding: 16px 18px 22px; font-size: 12.5px; line-height: 1.75; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 0 0 26px 26px; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.25)); }
.ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); animation: lnIn .45s var(--ease); }
.ln .t { color: var(--ink-3); }
.ln.ok { color: var(--accent-3); }
.ln.cmd { color: #ffd36b; }
.ln.chat { color: var(--ink); }
.ln i { font-style: normal; } .ln i.g { color: #55ff55; font-weight: 700; } .ln i.r { color: #ff5555; font-weight: 700; } .ln i.y { color: #ffaa00; } .ln i.m { color: #aaaaaa; } .ln i.c { color: #55ffff; }
@keyframes lnIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.toast { position: absolute !important; right: -22px; top: 58px; width: min(300px, 80%); padding: 12px 14px; border-radius: 16px; opacity: 0; transform: translateY(-10px) scale(.96); pointer-events: none; }
.toast.show { animation: toast 3.2s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-14px) scale(.94); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px) scale(.98); } }
.toast-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-bottom: 8px; }
.embed { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 6px; background: rgba(0,0,0,.28); border-left: 4px solid #57f287; font-size: 13px; }
.embed b { font-size: 13.5px; }
.embed span { color: var(--ink-2); }
.toast[data-color="red"] .embed { border-color: #ed4245; }
.toast[data-color="blue"] .embed { border-color: #5865f2; }
.toast[data-color="purple"] .embed { border-color: #b59cff; }

/* ---------- Stats strip ---------- */
.stats-strip { padding-top: 0; padding-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 28px 34px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.04em; line-height: 1.05; }
.stats span { font-size: 13px; color: var(--ink-3); }

.stats-src { margin-top: 12px; font-size: 11px; color: var(--ink-3); text-align: center; }
.stats-src a { color: var(--ink-2); border-bottom: 1px dotted rgba(255,255,255,.3); }
.stats-src a:hover { color: var(--ink); }

/* live usage (bStats) */
.live { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); min-height: 22px; }
.live b { color: var(--ink); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); flex: none; animation: pulse 1.8s ease-in-out infinite; }
.live-dot.off { background: rgba(255,255,255,.25); box-shadow: none; animation: none; }
.live .spark { margin-left: auto; width: 90px; height: 22px; flex: none; }
.spark { overflow: visible; }
.spark .line { fill: none; stroke: var(--accent-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(94,240,200,.5)); }
.spark .area { fill: rgba(94,240,200,.1); }
.sh-live { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: stretch; }
.sh-live-nums { display: flex; flex-direction: column; gap: 8px; }
.sh-live-nums div, .sh-live-chart { padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); display: flex; flex-direction: column; }
.sh-live-nums b { font-size: 22px; letter-spacing: -.02em; color: var(--accent-3); }
.sh-live-nums span { font-size: 11px; color: var(--ink-3); }
.sh-live-chart { justify-content: space-between; gap: 8px; }
.sh-live-chart .spark { width: 100%; height: 70px; }
.sh-live-chart > span { font-size: 10.5px; }
.sheet h3 .mono { font-size: 11px; font-weight: 400; }

/* ---------- Plugins grid ---------- */
.plugins { padding-top: 120px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: -30px 0 34px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--sans); color: var(--ink-3); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: color .3s, background .3s, transform .3s var(--ease); }
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.active { color: var(--bg); background: var(--ink); box-shadow: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3); }
.sort select { appearance: none; font: 600 14px var(--sans); color: var(--ink); background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23eef1f8'/%3E%3C/svg%3E") no-repeat right 14px center; border: 0; border-radius: 999px; padding: 9px 36px 9px 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); cursor: pointer; }
.sort select option { background: #10131e; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 22px; }
.pcard { padding: 26px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; outline: none; opacity: 0; transform: translateY(30px) scale(.97); transition: transform .5s var(--ease), opacity .7s var(--ease), box-shadow .4s; transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s; }
.pcard.in { opacity: 1; transform: none; }
.pcard:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 20px 60px -20px rgba(0,0,0,.65); }
.pcard.top { background: radial-gradient(120% 80% at var(--mx) var(--my), rgba(255,255,255,.10), transparent 55%), linear-gradient(160deg, rgba(124,196,255,.16), rgba(181,156,255,.07) 60%); }
.pcard-head { display: flex; gap: 14px; align-items: center; position: relative; }
.pcard-head h3 { font-size: 21px; overflow-wrap: anywhere; }
.pcard-head > div { min-width: 0; }
.ver { font-size: 11px; color: var(--ink-3); }
.pcard { position: relative; }
.badge { position: absolute !important; top: -11px; right: 22px; z-index: 3 !important; font-size: 9.5px; padding: 5px 9px; border-radius: 999px; background: #0d2a2a; color: var(--accent-3); box-shadow: inset 0 0 0 1px rgba(94,240,200,.3); }
.picon { width: 58px; height: 58px; flex: none; border-radius: 22.6%; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(0,0,0,.7); transition: transform .5s var(--ease); }
.pcard:hover .picon { transform: translateY(-2px) rotate(-4deg) scale(1.05); }
.picon img { width: 100%; height: 100%; object-fit: cover; }
.picon .glyph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #2a1a4a, #12131f); }
.picon .glyph svg { width: 62%; fill: #eef1f8; filter: drop-shadow(0 0 8px rgba(181,156,255,.8)); }
.picon.big { width: 82px; height: 82px; }
.tag { color: var(--ink-2); font-size: 15px; flex: 1; }
.dl-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.dl-bar span { display: block; height: 100%; width: calc(max(var(--w), .04) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms + 250ms); }
.pcard.in .dl-bar span { transform: scaleX(1); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.dl { color: var(--ink-3); font-size: 12px; } .dl b { color: var(--ink); font-size: 14px; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.stars { position: relative; color: rgba(255,255,255,.15); letter-spacing: 2px; font-size: 14px; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--r) * 100%); overflow: hidden; color: #ffd36b; text-shadow: 0 0 10px rgba(255,211,107,.5); }
.pcard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.pcard-actions .link { margin-top: 0; }
.docslink { margin-left: 12px; margin-right: auto; font-size: 10.5px; padding: 4px 9px; border-radius: 999px; color: var(--accent-3); background: rgba(94,240,200,.08); box-shadow: inset 0 0 0 1px rgba(94,240,200,.25); transition: background .25s; }
.docslink:hover { background: rgba(94,240,200,.18); }
.sh-foot .btn.ghost { padding: 10px 4px; }
.pcard:hover .pcard-actions .link { transform: translateX(4px); color: var(--ink); }
.dlbtn { font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08); transition: background .3s, transform .3s var(--ease); }
.dlbtn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }

.pcard.discontinued { opacity: .55; filter: saturate(.4); }
.pcard.discontinued.in { opacity: .6; }
.pcard.discontinued:hover { opacity: .9; filter: none; }
.pcard.discontinued .tag { color: #ffd36b; }
.badge.off { background: #2a2310; color: #ffd36b; box-shadow: inset 0 0 0 1px rgba(255,211,107,.35); }

/* ---------- Detail sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3,4,8,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; z-index: 90; top: 16px; right: 16px; bottom: 16px; width: min(640px, calc(100% - 32px)); border-radius: 30px; background: radial-gradient(120% 60% at 30% 0%, rgba(255,255,255,.08), transparent 50%), rgba(14,16,28,.72); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); transform: translateX(calc(100% + 40px)); transition: transform .55s cubic-bezier(.2,.9,.2,1); }
.sheet.open { transform: none; }
.sheet-close { position: absolute !important; top: 16px; right: 16px; z-index: 3 !important; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background .3s, transform .3s var(--ease); }
.sheet-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.sheet-body { height: 100%; overflow-y: auto; padding: 34px clamp(22px, 4vw, 40px) 40px; overscroll-behavior: contain; }
.sh-head { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; padding-right: 40px; }
.sh-head .eyebrow { margin-bottom: 8px; }
.sh-head h2 { font-size: clamp(24px, 4vw, 40px); max-width: none; overflow-wrap: anywhere; }
.sh-head > div:last-child { min-width: 0; }
.sh-head .tag { margin-top: 6px; }
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.sh-stats div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sh-stats b { font-size: 16px; letter-spacing: -.01em; } .sh-stats span { font-size: 11px; color: var(--ink-3); }
.sh-about { color: var(--ink-2); margin-bottom: 14px; }
.sh-note { font-size: 12px; color: #ffd36b; padding: 10px 14px; border-radius: 12px; background: rgba(255,211,107,.07); box-shadow: inset 0 0 0 1px rgba(255,211,107,.2); margin-bottom: 8px; }
.sheet h3 { font-size: 16px; margin: 26px 0 12px; color: var(--ink); }
.sh-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-features li { position: relative; padding: 10px 12px 10px 34px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 14px; color: var(--ink-2); }
.sh-features li::before { content: "✓"; position: absolute; left: 12px; color: var(--accent-3); font-weight: 700; }
.sh-table { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sheet th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; background: rgba(255,255,255,.04); }
.sheet td { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06); color: var(--ink-2); vertical-align: top; }
.sh-perms { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sh-perms li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.sh-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-langs span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
.sh-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; }

/* ---------- Install steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.steps-line line { stroke-width: 2; stroke-linecap: round; }
#stepsTrack { stroke: rgba(255,255,255,.1); stroke-dasharray: 2 10; }
#stepsFill { stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.step { padding: 30px; z-index: 1; }
.step-n { font-size: 11px; color: var(--accent-3); }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step-art { width: 86px; height: 86px; margin-top: 18px; border-radius: 24px; display: grid; place-items: center; background: rgba(10,12,22,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 30px -10px rgba(0,0,0,.6); position: relative; transition: box-shadow .5s; }
.step.lit .step-art { box-shadow: inset 0 0 0 1px rgba(124,196,255,.5), 0 0 30px -4px rgba(124,196,255,.5); }
.jar span, .drop { font: 700 13px var(--mono); padding: 8px 10px; border-radius: 10px; background: linear-gradient(145deg, #ffb36b, #ff7a59); color: #1a0e08; box-shadow: 0 8px 18px -6px rgba(255,122,89,.7); }
.step.lit .jar span { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.folder::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 34px; border-radius: 6px 6px 10px 10px; background: linear-gradient(#7cc4ff, #4b8fe8); }
.folder::after { content: ""; position: absolute; left: 16px; top: 26px; width: 26px; height: 10px; border-radius: 5px 5px 0 0; background: #5aa4f2; }
.folder .drop { position: absolute; top: 4px; left: 50%; transform: translate(-50%, -30px) scale(.8); opacity: 0; z-index: 2; }
.step.lit .folder .drop { animation: drop 2.6s var(--ease) infinite; }
@keyframes drop { 0% { opacity: 0; transform: translate(-50%, -34px) scale(.8); } 20% { opacity: 1; } 55% { opacity: 1; transform: translate(-50%, 18px) scale(.7); } 70%, 100% { opacity: 0; transform: translate(-50%, 26px) scale(.5); } }
.power i { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: transparent; position: relative; transition: border-color .5s; }
.power i::after { content: ""; position: absolute; left: 50%; top: -10px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: rgba(255,255,255,.25); transition: background .5s; }
.step.lit .power i { border-color: var(--accent-3); border-top-color: transparent; filter: drop-shadow(0 0 10px var(--accent-3)); }
.step.lit .power i::after { background: var(--accent-3); }

/* ---------- Tutorials ---------- */
.yt { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 60px); }
.yt-copy p:not(.eyebrow) { color: var(--ink-2); margin: 18px 0 28px; max-width: 46ch; }
.yt-stats { display: grid; gap: 12px; }
.yt-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 22px; border-radius: 18px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.yt-stats b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; background: linear-gradient(90deg, #ff6b6b, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yt-stats span { color: var(--ink-3); font-size: 14px; }

/* ---------- Support ---------- */
.support { display: grid; place-items: center; min-height: 80vh; }
.support-card { padding: clamp(36px, 6vw, 80px); width: min(980px, 100%); text-align: center; }
.support-card h2 { margin: 0 auto 18px; font-size: clamp(48px, 8vw, 110px); max-width: none; }
.support-card > p:not(.eyebrow) { color: var(--ink-2); max-width: 56ch; margin: 0 auto 34px; }
.support-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.discord { background: linear-gradient(135deg, rgba(88,101,242,.55), rgba(88,101,242,.25)); }
.btn.discord svg { width: 20px; height: 20px; fill: currentColor; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px max(24px, 6vw) 40px; color: var(--ink-3); font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding-block: 90px; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .console { min-height: 340px; }
  .toast { right: 10px; top: 48px; }
  .nav ul li:not(:last-child) { display: none; }
  .nav { gap: 10px; padding-left: 16px; }
  .brand { font-size: 14.5px; gap: 8px; }
  .nav ul a { padding: 8px 10px; }
  .home-btn { margin-left: 0; padding: 8px 12px; }
  .home-label { display: none; }
  .home-btn::after { content: "Home"; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
  .stats > div:last-child { grid-column: 1 / -1; }
  .sh-live { grid-template-columns: 1fr; }
  .sh-live-nums { flex-direction: row; } .sh-live-nums div { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .pcard-head h3 { font-size: 18px; }
  .live { font-size: 10.5px; white-space: nowrap; gap: 6px; }
  .live .spark { width: 56px; }
  .steps { grid-template-columns: 1fr; }
  .yt { grid-template-columns: 1fr; }
  .sh-stats { grid-template-columns: 1fr 1fr; }
  .sh-features { grid-template-columns: 1fr; }
  .sheet { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 88vh; border-radius: 26px; transform: translateY(calc(100% + 30px)); }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pcard { opacity: 1; transform: none; filter: none; }
  .dl-bar span { transform: none; }
  .toast { opacity: 1; transform: none; }
}
