/* ================= home page ================= */
:root { --purple: #c084fc; --cyan: #22d3ee; }
.home { overflow-x: hidden; }
kbd { font: 600 12px var(--sans); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; padding: 1px 6px; }
.btn-xl { padding: 15px 26px; font-size: 16px; border-radius: 11px; }
.btn-ghost { background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.btn.copied, .path-chip.copied { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.tag.warn { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
.home .toast { top: 76px; bottom: auto; z-index: 40; }

/* shine sweep on primary CTAs */
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * .5s);
}
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 140%; } }

/* ---------- nav ---------- */
header.site.home-nav { position: fixed; left: 0; right: 0; top: 0; z-index: 25; background: transparent; border-color: transparent; backdrop-filter: none; transition: background .3s, border-color .3s; }
header.site.home-nav.scrolled { background: rgba(13, 15, 14, .82); border-color: var(--line); backdrop-filter: blur(10px); }
.home-nav .brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 22px; height: 22px; display: inline-block; filter: drop-shadow(0 0 6px rgba(74, 222, 128, .5)); }
.brand-icon svg, .how-icon svg, .cta-icon svg, .dock-icon svg, .ccard-icon svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 20px; }

/* ---------- hero ---------- */
.splash {
  position: relative; overflow: hidden; min-height: min(100svh, 900px); display: flex; align-items: center; padding: 76px 0 64px;
  background:
    radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(74, 222, 128, .10), transparent 60%),
    radial-gradient(ellipse 70% 55% at 72% 38%, rgba(192, 132, 252, .12), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(74, 222, 128, .14), transparent 70%);
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 46%;
  transform-origin: 50% 100%; transform: perspective(360px) rotateX(64deg);
  background-image:
    linear-gradient(rgba(74, 222, 128, .45) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(74, 222, 128, .45) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%);
  mask-image: linear-gradient(to bottom, transparent, #000 75%);
  opacity: .5; animation: floor 1.4s linear infinite;
}
@keyframes floor { to { background-position: 0 56px; } }
.scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55));
}
.splash::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at 72% 45%, rgba(255, 255, 255, .55), rgba(192, 132, 252, .25) 30%, transparent 65%);
}
.splash.flash::after { opacity: 1; transition: none; }
.splash.shake .splash-inner { animation: shake .4s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { translate: -2px 1px; } 20%, 80% { translate: 4px -2px; }
  30%, 50%, 70% { translate: -7px 3px; } 40%, 60% { translate: 7px -3px; }
}

.splash-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--sans); color: var(--muted);
  border: 1px solid var(--line); background: rgba(21, 25, 23, .75); backdrop-filter: blur(6px); border-radius: 99px; padding: 6px 6px 6px 14px;
}
.pill code { color: var(--text); }
.pill-copy { background: rgba(74, 222, 128, .15); color: var(--accent); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 99px; }
.pill:hover { border-color: rgba(74, 222, 128, .5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }

.kicker { font-family: var(--pixel); font-size: clamp(10px, 1.6vw, 13px); color: var(--accent); margin: 26px 0 14px; letter-spacing: 1px; }
.kicker::after { content: '_'; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.splash-title { margin: 0 0 22px; font: 900 clamp(46px, 7.4vw, 96px)/.98 var(--sans); letter-spacing: -.045em; }
.line { display: block; }
.line:not(.glitch) {
  background: linear-gradient(180deg, #fff 35%, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glitch { position: relative; color: var(--accent); text-shadow: 0 0 40px rgba(74, 222, 128, .55), 0 0 2px rgba(74, 222, 128, .8); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; text-shadow: none; }
.glitch.live::before { color: var(--purple); animation: glitch-a 3.6s infinite steps(1); }
.glitch.live::after { color: var(--cyan); animation: glitch-b 3.6s infinite steps(1); }
@keyframes glitch-a {
  0%, 84%, 100% { opacity: 0; transform: none; }
  86% { opacity: .9; transform: translate(-5px, 1px); clip-path: inset(8% 0 58% 0); }
  89% { opacity: .9; transform: translate(4px, -1px); clip-path: inset(62% 0 6% 0); }
  92% { opacity: .9; transform: translate(-3px, 0); clip-path: inset(36% 0 38% 0); }
}
@keyframes glitch-b {
  0%, 85%, 100% { opacity: 0; transform: none; }
  87% { opacity: .8; transform: translate(5px, -1px); clip-path: inset(50% 0 20% 0); }
  90% { opacity: .8; transform: translate(-4px, 1px); clip-path: inset(15% 0 70% 0); }
  93% { opacity: .8; transform: translate(2px, 0); clip-path: inset(70% 0 4% 0); }
}
.splash-sub { color: #aab5ae; font-size: clamp(16px, 1.6vw, 18px); max-width: 520px; margin: 0 0 30px; }
.splash-sub code { color: var(--text); }
.splash-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.splash-cta .btn-primary { box-shadow: 0 10px 34px -6px rgba(74, 222, 128, .6); transition: transform .15s, box-shadow .15s; }
.splash-cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -6px rgba(74, 222, 128, .8); }
.stats-strip { display: inline-flex; margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; background: rgba(21, 25, 23, .7); backdrop-filter: blur(6px); }
.stats-strip div { padding: 12px 22px; display: flex; flex-direction: column; }
.stats-strip div + div { border-left: 1px solid var(--line); }
.stats-strip strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats-strip > div > span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- end crystal (pure CSS 3D) ---------- */
.splash-art { display: flex; flex-direction: column; align-items: center; }
.crystal-stage { --tx: 0deg; --ty: 0deg; position: relative; width: 320px; height: 380px; perspective: 900px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.crystal-stage:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 14px; }
.crystal-float, .slab { position: absolute; left: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.crystal-float { top: 40%; transform: rotateX(var(--ty)) rotateY(var(--tx)); transition: transform .4s ease-out; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -18px; } }
.slab { top: 80%; transform: rotateX(-24deg) rotateY(45deg) scaleY(.3); }

.cube { --s: 100px; position: absolute; width: var(--s); height: var(--s); left: calc(var(--s) / -2); top: calc(var(--s) / -2); transform-style: preserve-3d; animation: spin var(--t, 8s) linear infinite; }
@keyframes spin { from { transform: rotate3d(var(--ax), 0deg); } to { transform: rotate3d(var(--ax), 360deg); } }
.cube i {
  position: absolute; inset: 0; border: 2px solid var(--edge); background-color: var(--fill);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 25% 25%; box-shadow: inset 0 0 calc(var(--s) * .18) var(--glow), 0 0 14px var(--glow);
}
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.c1 { --s: 150px; --t: 10s; --ax: 1, 1, 0; --edge: rgba(167, 243, 208, .85); --fill: rgba(74, 222, 128, .05); --grid: rgba(167, 243, 208, .14); --glow: rgba(74, 222, 128, .35); }
.c2 { --s: 104px; --t: 7s; --ax: 1, 0, 1; --edge: rgba(209, 250, 229, .8); --fill: rgba(34, 211, 238, .05); --grid: rgba(209, 250, 229, .12); --glow: rgba(34, 211, 238, .3); animation-direction: reverse; }
.c3 { --s: 56px; --t: 4.5s; --ax: 0, 1, 1; --edge: #e9d5ff; --fill: #9333ea; --grid: transparent; --glow: rgba(192, 132, 252, .85); }
.c3 i { background-image: conic-gradient(#c084fc 25%, #7e22ce 0 50%, #c084fc 0 75%, #7e22ce 0); background-size: 50% 50%; }
.c0 { --s: 140px; --edge: #3a433e; --fill: #1a1f1c; --grid: transparent; --glow: transparent; animation: none; }
.c0 i { background-image: conic-gradient(#2a312d 25%, #141816 0 50%, #2a312d 0 75%, #141816 0); background-size: 20% 20%; border-width: 1px; }

.beam {
  position: absolute; left: 50%; bottom: 60%; width: 8px; height: 900px; translate: -50% 0; border-radius: 4px;
  background: linear-gradient(to top, rgba(233, 213, 255, .95), rgba(192, 132, 252, .5) 30%, transparent);
  box-shadow: 0 0 24px 4px rgba(192, 132, 252, .45); animation: beam 2.6s ease-in-out infinite; transition: opacity .2s;
}
@keyframes beam { 50% { opacity: .55; } }
.glow-ring {
  position: absolute; left: 50%; top: 80%; width: 260px; height: 70px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(74, 222, 128, .45), rgba(192, 132, 252, .15) 45%, transparent 70%);
  filter: blur(6px); animation: ring 4s ease-in-out infinite;
}
@keyframes ring { 50% { opacity: .55; scale: .88; } }
.crystal-stage.boom .crystal-float { scale: 1.9; opacity: 0; transition: scale .22s ease-out, opacity .22s; }
.crystal-stage.boom .beam { opacity: 0; }
.crystal-stage.respawn .crystal-float { animation: respawn .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes respawn { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
.crystal-hint { font-family: var(--pixel); font-size: 9px; color: var(--muted); margin-top: -6px; letter-spacing: 1px; animation: blink 2.4s steps(1) infinite; }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 20px; translate: -50% 0; width: 24px; height: 38px; border: 2px solid rgba(230, 235, 231, .3); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap; padding: 15px 0; border-block: 1px solid rgba(74, 222, 128, .25);
  background: linear-gradient(90deg, rgba(74, 222, 128, .07), rgba(192, 132, 252, .07));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; font-family: var(--pixel); font-size: 11px; color: #aab5ae; text-transform: uppercase; animation: tick var(--dur, 40s) linear infinite; }
.ticker-track b { color: var(--accent); font-weight: normal; }
.ticker-track i { color: var(--purple); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section-head { margin-bottom: 30px; }
.eyebrow-num { font-family: var(--pixel); font-size: 10px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.section-head h2 { font: 900 clamp(34px, 5.4vw, 60px)/1.02 var(--sans); letter-spacing: -.04em; margin: 14px 0 0; }
.section-head h2 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px rgba(74, 222, 128, .45); }

.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise .75s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* how it works */
.how { padding: 96px 0 24px; scroll-margin-top: 40px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.how-steps::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 50px; height: 2px; z-index: 0; opacity: .6;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); animation: march .8s linear infinite;
}
@keyframes march { to { background-position: 16px 0; } }
.how-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: border-color .2s, box-shadow .2s;
}
.how-step:hover { border-color: rgba(74, 222, 128, .45); box-shadow: 0 16px 40px -20px rgba(74, 222, 128, .5); }
.how-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.how-icon { width: 56px; height: 56px; padding: 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); filter: drop-shadow(0 0 10px rgba(74, 222, 128, .2)); }
.how-n { font: 900 60px/1 var(--sans); color: transparent; -webkit-text-stroke: 1.5px rgba(74, 222, 128, .45); }
.how-step h3 { margin: 0 0 6px; font-size: 19px; }
.how-step p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.path-chip { width: 100%; justify-content: space-between; background: var(--bg); font-weight: 500; text-decoration: none; }
.path-chip code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.path-chip span { color: var(--accent); font-size: 12px; font-weight: 700; }
.path-chip:hover { border-color: rgba(74, 222, 128, .5); }
.how-foot { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* clients */
#clients { padding: 80px 0 24px; scroll-margin-top: 50px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ccard {
  position: relative; isolation: isolate; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  transition: transform .18s ease-out, border-color .2s, box-shadow .2s; will-change: transform;
}
.ccard::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 222, 128, .16), transparent 45%);
}
.ccard:hover { border-color: rgba(74, 222, 128, .45); box-shadow: 0 24px 50px -22px rgba(74, 222, 128, .45); }
.ccard:hover::before { opacity: 1; }
.ccard.top { border-color: transparent; background: linear-gradient(180deg, rgba(74, 222, 128, .09), var(--panel) 45%); box-shadow: 0 0 50px -18px rgba(74, 222, 128, .55); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ccard-border {
  position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--accent), var(--purple), var(--cyan), var(--accent));
  -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: ang 4s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }
.ribbon { position: absolute; top: -12px; right: 18px; z-index: 1; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 99px; box-shadow: 0 6px 18px -4px rgba(74, 222, 128, .7); }
.ccard-head { display: flex; gap: 14px; align-items: center; }
.ccard-icon { width: 54px; height: 54px; flex: none; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.ccard-eyebrow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; align-items: center; }
.ccard h3 { margin: 3px 0 0; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.ccard h3 a { color: inherit; text-decoration: none; }
.ccard-desc { color: var(--muted); margin: 14px 0 0; font-size: 14px; }
.ccard-feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; font-size: 14px; }
.ccard-feats li { display: flex; gap: 9px; align-items: baseline; }
.ccard-feats li::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--accent); box-shadow: 0 0 8px var(--accent); translate: 0 -1px; }
.ccard-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.ccard-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.ccard-dl { flex: 1; justify-content: center; padding: 13px; font-size: 15px; font-weight: 800; }
.ccard-dl small { font-weight: 600; opacity: .65; }
.ccard-dl.done { background: #bbf7d0; border-color: #bbf7d0; }
.ccard-more { padding: 13px 15px; }
.ccard-meta { font-size: 12px; color: var(--muted); margin-top: 11px; text-align: center; }

/* discord band */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; margin: 88px 0 0; padding: 32px;
  border-radius: 22px; border: 1px solid rgba(74, 222, 128, .35);
  background: linear-gradient(120deg, rgba(74, 222, 128, .16), rgba(192, 132, 252, .1));
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(74, 222, 128, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 222, 128, .3) 1px, transparent 1px);
  background-size: 28px 28px; animation: floor 2.4s linear infinite;
}
.cta-band { isolation: isolate; }
.cta-icon { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 0 14px rgba(74, 222, 128, .5)); }
.cta-copy { flex: 1; }
.cta-band h2 { margin: 0 0 4px; font: 900 clamp(24px, 3.4vw, 34px)/1.1 var(--sans); letter-spacing: -.03em; }
.cta-band p { margin: 0; color: #aab5ae; }

/* footer */
.site-foot { padding: 72px 0 40px; text-align: center; overflow: hidden; }
.foot-mark {
  font-family: var(--pixel); font-size: clamp(20px, calc(88vw / var(--len, 10)), 120px); line-height: 1.1; white-space: nowrap; padding: 0 16px;
  color: transparent; -webkit-text-stroke: 1px rgba(74, 222, 128, .28);
  background: linear-gradient(180deg, rgba(74, 222, 128, .12), transparent); -webkit-background-clip: text; background-clip: text;
}
.site-foot p { color: var(--muted); font-size: 13px; margin: 20px auto 0; }
.site-foot a { color: var(--muted); }

/* "what next" dock */
.dock {
  position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 30; width: min(580px, calc(100% - 32px));
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 18px;
  background: rgba(21, 25, 23, .96); border: 1px solid rgba(74, 222, 128, .5); border-radius: 18px; backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px -10px rgba(0, 0, 0, .8), 0 0 0 5px rgba(74, 222, 128, .08);
  animation: dock-in .45s cubic-bezier(.2, .9, .3, 1.25);
}
@keyframes dock-in { from { opacity: 0; translate: -50% 40px; } }
.dock-icon { width: 40px; height: 40px; flex: none; margin-top: 2px; }
.dock-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dock-body > span { color: var(--muted); }
.dock-body code { color: var(--text); }
.dock-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dock-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; }
.dock-x:hover { color: var(--text); }

#burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .splash { min-height: 0; padding-top: 72px; }
  .splash-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .splash-art { order: -1; }
  .crystal-stage { scale: .62; margin: -64px 0 -92px; }
  .crystal-hint { margin-top: 0; }
  .splash-cta { justify-content: center; }
  .splash-sub { margin-left: auto; margin-right: auto; }
  .stats-strip div { padding: 10px 14px; }
  .stats-strip strong { font-size: 18px; }
  .scroll-cue { display: none; }
  .how-steps { grid-template-columns: 1fr; gap: 18px; }
  .how-steps::before { left: 50px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .nav .nav-link { display: none; }
  .splash-cta .btn { width: 100%; justify-content: center; }
  .how, #clients { padding-top: 64px; }
  .cta-band .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.in, .floor, .cta-band::before, .cube, .crystal-float, .beam, .glow-ring, .ticker-track, .shine::after,
  .dot, .glitch.live::before, .glitch.live::after, .ccard-border, .how-steps::before, .kicker::after, .crystal-hint { animation: none; }
  .ticker { overflow-x: auto; }
  .c1 { transform: rotateX(-25deg) rotateY(35deg); } .c2 { transform: rotateX(30deg) rotateY(-20deg); } .c3 { transform: rotateX(-35deg) rotateY(45deg); }
}

/* ---------- ESP / hacked-client HUD theme ---------- */
.splash .wrap { max-width: 1200px; }
.kicker-sub { color: var(--muted); }
.hud { position: absolute; z-index: 2; pointer-events: none; font-family: var(--pixel); font-size: 9px; }
@property --hue { syntax: '<number>'; inherits: true; initial-value: 0; }
.hud-arraylist { top: 76px; right: 0; display: flex; flex-direction: column; align-items: flex-end; animation: hue 6s linear infinite; }
@keyframes hue { to { --hue: 360; } }
.hud-arraylist div {
  color: hsl(calc(var(--hue) + var(--i) * 24) 85% 68%); background: rgba(0, 0, 0, .45); border-right: 2px solid currentColor;
  padding: 4px 8px 3px; max-height: 20px; overflow: hidden; text-shadow: 1px 1px 0 #000;
  transition: max-height .3s, padding .3s, opacity .3s, transform .3s;
}
.hud-arraylist div.off { max-height: 0; padding-block: 0; opacity: 0; transform: translateX(100%); }
.hud-coords { right: 16px; bottom: 18px; text-align: right; line-height: 2; color: var(--text); text-shadow: 1px 1px 0 #000; }
.hud-coords span { color: var(--muted); }
.hud-coords b { font-weight: normal; }
#hud-loot, #hud-stash { color: var(--accent); }
.hud-tip { color: #fb923c; animation: blink 2.4s steps(1) infinite; }

.esp-box {
  --c: rgba(192, 132, 252, .95); --hp: 100%;
  position: absolute; left: calc(50% - 112px); top: calc(40% - 118px); width: 224px; height: 236px; pointer-events: none;
  animation: bob 4s ease-in-out infinite; transition: --c .2s;
  background:
    linear-gradient(var(--c), var(--c)) top left / 24px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 24px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 24px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 24px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 24px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 24px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 24px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 24px no-repeat;
}
.esp-label {
  position: absolute; bottom: 100%; left: 50%; translate: -50% -8px; white-space: nowrap; font-family: var(--pixel); font-size: 9px;
  color: var(--c); background: rgba(0, 0, 0, .6); padding: 5px 8px 4px; text-shadow: 1px 1px 0 #000;
}
.esp-label b { color: var(--text); font-weight: normal; margin-left: 6px; }
.esp-hp { position: absolute; left: -10px; top: 0; bottom: 0; width: 3px; background: rgba(0, 0, 0, .55); }
.esp-hp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hp); background: var(--accent); box-shadow: 0 0 6px var(--accent); transition: height .25s; }
.crystal-stage.boom .esp-box { --c: rgba(248, 113, 113, 1); --hp: 0%; }
.crystal-stage.boom .esp-label b { color: #f87171; }

@media (max-width: 900px), (max-height: 760px) { .hud { display: none; } }
@media (max-width: 900px) { .esp-label { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .hud-arraylist, .hud-tip, .esp-box { animation: none; } }
/* keep the copy readable over the ESP noise */
.splash-inner::before {
  content: ''; position: absolute; z-index: -1; inset: -40px -60px -40px -400px; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(13, 15, 14, .78), transparent 70%);
}
@media (max-width: 900px) { .splash-inner::before { inset: 0 -40px; background: radial-gradient(ellipse 80% 60% at 50% 65%, rgba(13, 15, 14, .8), transparent 75%); } }

/* headline decrypt: hidden until the slots are measured (no flash of the real text),
   with a CSS failsafe so the headline still appears if the script never runs */
.js [data-scramble] { visibility: hidden; animation: sc-failsafe 0s 3s forwards; }
.js [data-scramble].sc-on { visibility: visible; animation: none; }
@keyframes sc-failsafe { to { visibility: visible; } }
.sc-w { white-space: nowrap; }
.sc-c { display: inline-block; text-align: center; }

/* ---------- ratings, sparklines, trending ---------- */
.tag.hot { color: #fdba74; border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .08); }
.ccard-pulse { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.ccard-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.ccard-rating .stars { font-size: 14px; }
.ccard-rating b { color: var(--text); }
.ccard-rating:hover b { color: var(--accent); }
.ccard-trend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.ccard-trend b { color: var(--text); font-variant-numeric: tabular-nums; }
.spark { display: block; overflow: visible; }
.spark rect { fill: #16a34a; transition: fill .15s; }
.spark rect:hover { fill: var(--accent); }
.spark rect:last-child { fill: #16a34a; opacity: .55; }

/* ---------- odometer ---------- */
.stats-strip strong { line-height: 1.15; }
.odo { display: inline-flex; align-items: flex-start; height: 1.15em; line-height: 1.15em; white-space: nowrap; }
.odo-s { display: inline-block; height: 1.15em; }
.odo-d { display: inline-block; height: 1.15em; overflow: hidden; }
.odo-d > span { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--k) * 70ms); }
.odo-d i { font-style: normal; height: 1.15em; line-height: 1.15em; text-align: center; }

/* ---------- live feed (Minecraft chat style) ---------- */
.clients-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.clients-head .section-head { margin-bottom: 0; }
.livefeed { width: min(420px, 100%); flex: none; }
.lf-title { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 10px; color: var(--accent); margin-bottom: 8px; }
.lf-title span:last-child { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.lf-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.lf-line {
  display: flex; align-items: baseline; gap: 6px; padding: 4px 10px; background: rgba(0, 0, 0, .5); color: #e7ece9;
  text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden;
}
.lf-line:nth-child(n+4) { opacity: .7; }
.lf-line:nth-child(n+6) { opacity: .4; }
.lf-line.new { animation: lf-in .5s cubic-bezier(.2, .9, .3, 1.2); background: rgba(74, 222, 128, .14); }
@keyframes lf-in { from { opacity: 0; translate: -16px 0; } }
.lf-ico { font-size: 10px; width: 12px; flex: none; }
.lf-ico.dl { color: var(--accent); }
.lf-ico.rv, .lf-stars { color: #facc15; }
.lf-c { color: #86efac; font-weight: 600; }
.lf-name { color: #c4b5fd; font-weight: 600; }
.lf-line time { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 11px; }

/* ---------- review wall ---------- */
.reviews-sec { padding: 88px 0 0; }
.reviews-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); margin: 14px 0 0; }
.reviews-sum .stars { font-size: 18px; }
.reviews-sum b { color: var(--text); }
.wall {
  display: grid; gap: 16px; margin-inline: calc(50% - 50vw); padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; animation: tick var(--dur, 60s) linear infinite; }
.wall-row.rev .wall-track { animation-direction: reverse; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall-set { display: flex; gap: 16px; padding-right: 16px; }
.rcard {
  margin: 0; width: 320px; flex: none; display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: border-color .2s, transform .2s;
}
.rcard:hover { border-color: rgba(74, 222, 128, .45); transform: translateY(-3px); }
.rcard-top { display: flex; align-items: center; gap: 10px; }
.rcard-av { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.rcard-av svg { width: 100%; height: 100%; display: block; }
.rcard-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rcard-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.rcard-who span { font-size: 11px; color: var(--muted); }
.rcard .stars { font-size: 13px; }
.rcard blockquote { margin: 0; font-size: 14px; color: #d4dbd6; line-height: 1.5; flex: 1; }
.rcard figcaption .tag { text-decoration: none; }

@media (max-width: 900px) {
  .clients-head { flex-direction: column; align-items: stretch; }
  .livefeed { width: 100%; }
  .stats-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-strip div + div { border-left: 0; }
  .stats-strip div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rcard { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .odo-d > span, .lf-line.new { transition: none; animation: none; }
  .wall-track { animation: none; }
  .wall-row { overflow-x: auto; }
}

/* ---------- category filters + paused clients ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.chip { border-radius: 99px; padding: 7px 14px; font-size: 13px; background: var(--panel); gap: 6px; }
.chip span { color: var(--muted); font-weight: 600; font-size: 12px; }
.chip:hover { border-color: rgba(74, 222, 128, .5); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.on span { color: var(--accent-ink); opacity: .7; }
.ccard.paused { opacity: .62; }
.ccard.paused:hover { opacity: 1; }

/* card buttons never clip: if a label ever outgrows the row, "Setup guide" drops to its own line */
.ccard-foot { flex-wrap: wrap; }
.ccard-dl { flex: 1 1 auto; }
.ccard-more { flex: 0 0 auto; }
.ccard-meta { text-wrap: balance; }

/* ---------- card cover (first preview) ---------- */
.ccard-cover {
  position: relative; display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 19px 19px 0 0; border-bottom: 1px solid var(--line); background: #070908;
}
.ccard-cover img, .ccard-cover video { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .7s cubic-bezier(.2, .8, .2, 1); }
.ccard:hover .ccard-cover img, .ccard:hover .ccard-cover video { scale: 1.06; }
.ccard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21, 25, 23, .85)); pointer-events: none; }
.ccard-cover-n {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); padding: 3px 8px; border-radius: 99px;
}
.ccard-border { z-index: 2; }
.ribbon { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .ccard:hover .ccard-cover img, .ccard:hover .ccard-cover video { scale: none; } }
