/* BPMroute coming soon — pitch black, liquid glass */
:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #8e8e93;
  --c1: #5ee7ff;   /* cyan */
  --c2: #9b7bff;   /* violet */
  --c3: #ff5ecf;   /* magenta */
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --glass-lo: rgba(255, 255, 255, 0.04);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* custom cursor only on fine pointers */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }
}

/* ---------- Background ---------- */
#fluid, #trail {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
#fluid { z-index: 0; }
#trail { z-index: 60; mix-blend-mode: screen; }

/* CSS fallback when WebGL is unavailable */
.blobs { position: fixed; inset: 0; z-index: 0; filter: blur(80px); opacity: 0; transition: opacity 1s; pointer-events: none; }
.no-webgl .blobs { opacity: .55; }
.blobs i { position: absolute; width: 45vmax; height: 45vmax; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: var(--c2); left: -10vmax; top: -10vmax; }
.blobs i:nth-child(2) { background: var(--c1); right: -15vmax; top: 20vh; animation-delay: -6s; }
.blobs i:nth-child(3) { background: var(--c3); left: 30vw; bottom: -20vmax; animation-delay: -12s; }
@keyframes drift { to { transform: translate(10vw, -8vh) scale(1.2); } }

.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s 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 {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 40%, rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 24px rgba(255,255,255,.03),
    0 20px 60px rgba(0,0,0,.55);
  border-radius: var(--radius);
  isolation: isolate;
}
/* specular highlight that follows the pointer (set via --mx/--my in JS) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 45%);
  opacity: .9; transition: opacity .4s;
}
/* rim light */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, 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;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1100px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 16px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.brand b { font-weight: 300; color: #c7c7cc; }
.nav-links { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: #d1d1d6; transition: color .3s; }
.nav-links a:hover { color: #fff; }
.pill { background: #f5f5f7; color: #000 !important; font-weight: 600; }

/* ---------- Hero ---------- */
main { position: relative; z-index: 2; }
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 120px 16px 80px; overflow: hidden;
}
#orb {
  position: absolute; left: 50%; top: 50%; width: min(980px, 140vw); height: min(980px, 140vw);
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: .9;
}
.hero-copy { position: relative; z-index: 1; text-align: center; max-width: 860px; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: #d1d1d6; font-weight: 500;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48,209,88,.7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(48,209,88,0); } 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); } }

.title {
  margin: 0; font-weight: 700; letter-spacing: -.055em; line-height: .95;
  font-size: clamp(52px, 10.5vw, 136px);
}
.title .line { display: block; }
.grad {
  background: linear-gradient(100deg, var(--c1), var(--c2) 40%, var(--c3) 70%, var(--c1));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
  filter: drop-shadow(0 0 40px rgba(155,123,255,.35));
}
@keyframes sheen { to { background-position: -200% 0; } }

.lede { margin: 28px auto 36px; max-width: 620px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #a1a1a6; }
.lede strong { color: var(--text); font-weight: 600; }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 14px; margin-bottom: 20px; transform-style: preserve-3d;
}
.countdown div { min-width: 84px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; }
.countdown b { font-size: clamp(30px, 5vw, 46px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; transform: translateZ(30px); }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 2px; }
.countdown div + div { border-left: 1px solid rgba(255,255,255,.08); }

.waitlist { display: flex; gap: 6px; padding: 6px; border-radius: 999px; width: min(520px, 100%); }
.waitlist input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  font: inherit; font-size: 16px; padding: 0 18px;
}
.waitlist input::placeholder { color: #6e6e73; }
.btn {
  position: relative; border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 600; font-size: 15px;
  color: #000; background: linear-gradient(135deg, #fff, #d9d9de); white-space: nowrap; overflow: hidden;
  box-shadow: 0 8px 30px rgba(155,123,255,.35), inset 0 1px 0 #fff;
  transition: box-shadow .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(155,123,255,.5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 10px 50px rgba(94,231,255,.5), inset 0 1px 0 #fff; }
.btn span { position: relative; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; min-height: 1.2em; }
.form-note.ok { color: #30d158; }

.eq { display: flex; gap: 5px; align-items: flex-end; height: 34px; margin-top: 44px; }
.eq i { width: 4px; border-radius: 4px; background: linear-gradient(var(--c1), var(--c3)); height: 20%; animation: eq 1s ease-in-out infinite alternate; opacity: .8; }
.eq i:nth-child(odd) { animation-duration: .5s; }
.eq i:nth-child(3n) { animation-duration: .75s; }
.eq i:nth-child(4n) { animation-delay: -.3s; }
.eq i:nth-child(5n) { animation-delay: -.6s; }
@keyframes eq { to { height: 100%; } }

/* ---------- Features ---------- */
.features { padding: 80px 16px 40px; max-width: 1180px; margin: 0 auto; }
.section-title { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.05em; line-height: 1; text-align: center; margin: 0 0 56px; font-weight: 700; }
.muted { color: #6e6e73; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.card { overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; }
.card-media { position: relative; height: 220px; overflow: hidden; border-radius: calc(var(--radius) - 8px); margin: 8px; background: linear-gradient(135deg, #15151b, #0a0a0d); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateZ(0); transition: transform .8s var(--ease); filter: saturate(1.1) contrast(1.05) brightness(.8); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.card:hover .card-media img { transform: scale(1.2); }
.card-body { padding: 14px 24px 28px; transform: translateZ(40px); }
.card h3 { font-size: 26px; letter-spacing: -.03em; margin: 12px 0 8px; }
.card p { color: #a1a1a6; margin: 0; line-height: 1.5; font-size: 15px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d1d1d6; }
.shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); background-size: 250% 100%; background-position: var(--shine, 150%) 0; mix-blend-mode: overlay; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.stat { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 44px; letter-spacing: -.05em; font-weight: 700; background: linear-gradient(90deg, #fff, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #a1a1a6; font-size: 15px; }

/* ---------- Gallery marquee ---------- */
.gallery { padding: 60px 0 40px; overflow: hidden; perspective: 1000px; }
.marquee { transform: rotateX(18deg) rotateZ(-4deg); -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.track figure { margin: 0; width: 340px; height: 220px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #0d0d10; flex: none; }
.track img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.75) contrast(1.1); transition: filter .5s; }
.track figure:hover img { filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; padding: 40px 16px 32px; max-width: 1180px; margin: 0 auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; font-size: 14px; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-brand span b { color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.footer-links a { color: var(--c1); }
.footer-links span { color: var(--muted); font-size: 13px; }
.copyright { text-align: center; font-size: 12px; color: #636366; margin: 22px 0 0; line-height: 1.6; }
.copyright a { text-decoration: underline; }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(2px) saturate(160%); backdrop-filter: blur(2px) saturate(160%);
  background: rgba(255,255,255,.03);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor-ring.hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }
.cursor-ring.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.nav[data-reveal] { transform: translate(-50%, -20px); }
.nav[data-reveal].in { transform: translate(-50%, 0); }
[data-tilt][data-reveal].in { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .card-media { height: 200px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.pill) { display: none; }
  .countdown div { min-width: 0; }
  .waitlist { flex-direction: column; border-radius: 24px; }
  .waitlist input { padding: 14px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
  .track figure { width: 240px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
