:root {
  --bg: #050507;
  --bg-2: #0d0d14;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #F4EEF7;
  --muted: #A9A3B8;
  --pink: #FF5FA2;
  --pink-2: #FF3D7F;
  --lime: #B6FF3B;
  --cyan: #4DE8FF;
  --ink: #1B0A14;
  --radius: 22px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1000px 600px at 75% -10%, #1d0d1a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--display);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); }
em { font-style: normal; color: var(--lime); }

#bubbles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before { /* lab grid */
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--b);
  font: 800 1rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-pink { background: var(--pink); color: var(--ink); box-shadow: 0 6px 0 var(--pink-2), 0 12px 40px rgba(255, 95, 162, .35); }
.btn-pink:hover { box-shadow: 0 9px 0 var(--pink-2), 0 18px 50px rgba(255, 95, 162, .5); }
.btn-ghost { background: transparent; color: var(--text); --b: var(--line); }
.btn-ghost:hover { --b: var(--lime); color: var(--lime); }
.btn-phantom { --b: #AB9FF2; background: #AB9FF2; color: #1C1C33; box-shadow: 0 6px 0 #7B6CDB, 0 12px 40px rgba(171, 159, 242, .3); }
.btn-phantom:hover { box-shadow: 0 9px 0 #7B6CDB, 0 18px 50px rgba(171, 159, 242, .45); }
.phantom-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; margin-top: 28px;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(171, 159, 242, .14), rgba(171, 159, 242, .03)); border: 1px solid rgba(171, 159, 242, .35); }
.phantom-box h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.phantom-box .eyebrow { color: #AB9FF2; }
.phantom-actions { display: flex; flex-direction: column; gap: 12px; }
.phantom-actions [hidden] { display: none; }
.fallback-note { margin: 8px 0 -4px; font-size: .78rem; color: var(--muted); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 2em; font-size: 1.15rem; }
.btn.is-soon { opacity: .55; cursor: not-allowed; }
.btn.is-soon:hover { transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(11, 15, 26, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; }
.brand img { transition: transform .4s; }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--lime); transition: right .25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 7vw, 96px) var(--pad) clamp(40px, 6vw, 80px);
  min-height: calc(100svh - 70px);
}
.eyebrow { color: var(--lime); font-size: .8rem; letter-spacing: .16em; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 var(--pink); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.title { margin: 0; font-weight: 800; font-size: clamp(5rem, 17vw, 12.5rem); line-height: .86; letter-spacing: -.03em; }
.glitch { position: relative; display: inline-block; color: var(--text);
  background: linear-gradient(180deg, #fff 30%, #ffc2da); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-fill-color: currentColor; mix-blend-mode: screen; opacity: .8; }
.glitch::before { color: var(--pink); animation: glitch 3.4s infinite steps(1); }
.glitch::after { color: var(--cyan); animation: glitch 3.4s infinite steps(1) reverse; }
@keyframes glitch {
  0%, 86%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  88% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); }
  90% { transform: translate(5px, -3px); clip-path: inset(60% 0 8% 0); }
  92% { transform: translate(-3px, 1px); clip-path: inset(35% 0 40% 0); }
  94% { transform: translate(4px, 0); clip-path: inset(0 0 80% 0); }
}
.tagline-big { margin: 18px 0 0; font: 700 clamp(1.4rem, 3.4vw, 2.1rem)/1.2 var(--mono); color: var(--lime); letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34ch; margin: 10px 0 26px; }

.ca {
  display: flex; align-items: center; gap: 10px; max-width: 520px;
  padding: 8px 8px 8px 14px; border-radius: 16px;
  background: var(--panel); border: 1px dashed rgba(182, 255, 59, .45);
}
.ca-label { color: var(--lime); font-weight: 700; font-size: .8rem; }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--text); }
.ca-copy { background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.ca-copy:disabled { opacity: .35; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-art { position: relative; display: grid; place-items: center; }
.tank-glow { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 162, .35), rgba(77, 232, 255, .12) 55%, transparent 70%); filter: blur(20px);
  animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .75; } }
.hero-mascot { position: relative; width: min(100%, 520px); height: auto; overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; cursor: grab; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
.hero-mascot .gills-l { transform-origin: 112px 280px; animation: gillL 2.6s ease-in-out infinite; }
.hero-mascot .gills-r { transform-origin: 400px 280px; animation: gillR 2.6s ease-in-out infinite; }
@keyframes gillL { 50% { transform: rotate(-7deg); } }
@keyframes gillR { 50% { transform: rotate(7deg); } }
.hero-mascot .eyes, .hero-mascot .shades { transition: transform .15s ease-out; transform-origin: 258px 276px; }
.hero-mascot .eyes.blink { animation: blink .18s; }
.hero-mascot .shades.blink { animation: peek .5s; }
@keyframes peek { 50% { transform: translateY(14px); } }
@keyframes blink { 50% { transform: scaleY(.1); } }
.hero-mascot.boop { animation: boop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes boop { 30% { transform: scale(.9, 1.1); } 60% { transform: scale(1.08, .94); } }
.specimen-label { position: relative; margin: 10px 0 0; font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-align: center; }
.specimen-label b { color: var(--pink); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--lime); color: var(--ink); transform: rotate(-1.5deg); margin: 0 -10px; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; font-weight: 700; font-size: 1.05rem; }
.marquee-track span { padding: 14px 28px; white-space: nowrap; }
.marquee-track span::after { content: '✦'; margin-left: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) var(--pad) 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; }
.sub { color: var(--muted); max-width: 52ch; margin: 14px 0 0; }
.center { text-align: center; margin-top: 36px; }
.center-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.terminal { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(5, 8, 14, .8); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); }
.log { list-style: none; margin: 0; padding: 22px clamp(16px, 3vw, 28px); font-size: clamp(.8rem, 1.6vw, .95rem); line-height: 1.9; }
.log li { opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .4s; }
.terminal.in .log li { opacity: 1; transform: none; }
.terminal.in .log li:nth-child(2) { transition-delay: .35s; } .terminal.in .log li:nth-child(3) { transition-delay: .7s; }
.terminal.in .log li:nth-child(4) { transition-delay: 1.05s; } .terminal.in .log li:nth-child(5) { transition-delay: 1.4s; }
.terminal.in .log li:nth-child(6) { transition-delay: 1.75s; }
.terminal.in .log li:nth-child(7) { transition-delay: 2.1s; } .terminal.in .log li:nth-child(8) { transition-delay: 2.45s; }
.log time { color: var(--cyan); margin-right: 12px; }
.log q { color: var(--muted); }
.warn { color: var(--pink); } .lime { color: var(--lime); }
.cursor { color: var(--lime); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card, .phase, .step, .stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover, .phase:hover, .step:hover, .stat:hover { transform: translateY(-6px); border-color: rgba(255, 95, 162, .5); background: rgba(255, 95, 162, .06); }
.card-icon { font-size: 2rem; }
.card h3, .phase h3, .step h3 { margin: 10px 0 6px; font-size: 1.35rem; }
.card p, .step p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat span { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.stat b { display: block; margin-top: 6px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.15; }
.disclosure { margin: 22px 0 0; font-size: .85rem; color: var(--muted); border-left: 3px solid var(--lime); padding-left: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step-n { color: var(--pink); font-weight: 700; font-size: 1.6rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meme { padding: 0; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; cursor: zoom-in; transition: transform .3s, border-color .3s; }
.meme:hover { transform: rotate(-1.5deg) scale(1.03); border-color: var(--lime); }
.meme:nth-child(even):hover { transform: rotate(1.5deg) scale(1.03); }
.meme img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

.wall { margin-top: 56px; }
.wall-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.wall-head h3 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.wall-contest { margin: 0; color: var(--lime); font-size: .9rem; }
.fan { margin: 0; }
.fan .meme { width: 100%; }
.fan figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.wall-empty { border: 2px dashed var(--line); border-radius: 18px; padding: 32px 24px; text-align: center; }
.wall-empty p { margin: 0 0 8px; color: var(--muted); }
.wall-empty .mono { color: #fff; }
.wall-empty .btn { margin-top: 12px; }
[hidden] { display: none !important; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tagline { color: var(--lime); font-size: .8rem; letter-spacing: .14em; }
.phase ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.phase li::marker { color: var(--pink); }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(182, 255, 59, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-family: var(--mono); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { max-width: 1240px; margin: clamp(80px, 10vw, 140px) auto 0; padding: 40px var(--pad) 48px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.6rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; } .footer-links a:hover { color: var(--lime); }
.legal { margin: 0; color: var(--muted); font-size: .8rem; max-width: 90ch; }

/* ---------- lightbox / toast ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 8, 14, .88); backdrop-filter: blur(6px); }
.lightbox img { border-radius: 18px; width: 100%; height: auto; }
.lightbox[open] { animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.lb-close { position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pink); color: var(--ink); font-size: 1.6rem; cursor: pointer; z-index: 1; }
#lbDownload { margin: 14px auto 0; display: flex; width: max-content; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--lime); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-weight: 700; transition: transform .35s cubic-bezier(.3,1.6,.5,1); z-index: 100; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero-art { order: -1; }
  .hero-mascot { width: min(64vw, 360px); }
  .hero { padding-top: 20px; gap: 16px; }
  .lead, .tagline-big { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .ca { margin-inline: auto; }
  .cta { justify-content: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts, .phases, .phantom-box { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav .btn-sm { margin-left: auto; }
  .burger { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .burger span { width: 20px; height: 2px; background: var(--text); transition: transform .3s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(11, 15, 26, .97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .stats, .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat, .card, .phase, .step { padding: 20px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta .btn { flex: 1 1 100%; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .log li { opacity: 1; transform: none; }
}
