/* Bxpify website. Colors and type come from the app's tokens (mobile/src/lib/tokens.ts):
   the site uses the app's Night scheme, since most visitors arrive from TikTok at night-mode brightness. */

@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_300Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ink: #140E15;
  --plum-deep: #1E1520;
  --plum: #2B1D2C;
  --coral: #F0997B;
  --coral-strong: #D85A30;
  --gold: #FAC775;
  --cream: #FFF8F2;
  --soft: rgba(255, 248, 242, 0.62);
  --muted: rgba(255, 248, 242, 0.45);
  --glass: rgba(255, 248, 242, 0.08);
  --glass-strong: rgba(255, 248, 242, 0.12);
  --line: rgba(255, 248, 242, 0.14);
  --on-air: #FF4D4D;
  --brand: linear-gradient(135deg, var(--coral-strong), var(--coral) 55%, var(--gold));
  --display: 'Bricolage', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --edge: clamp(20px, 5vw, 64px);
  --tint-a: var(--coral-strong);
  --tint-b: var(--plum);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 16px/1.45 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Film grain over everything: keeps big flat darks from looking cheap. */
body::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: 0.05;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.kicker { font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker.gold { color: var(--gold); }
.two { font-family: var(--display); letter-spacing: -0.03em; line-height: 0.95; margin: 0; }
.two .lt { font-weight: 300; display: block; }
.two .bd { font-weight: 800; display: block; }
.mega { font-size: clamp(54px, 8.4vw, 136px); }
.mega .lt { font-size: 0.46em; letter-spacing: -0.02em; margin-bottom: 0.18em; }
.big { font-size: clamp(40px, 6.4vw, 92px); }
.mid { font-size: clamp(30px, 4vw, 52px); }
.lede { color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 34ch; margin: 20px 0 0; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--edge); transition: background 250ms, border-color 250ms; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(20, 14, 21, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 24px/1 var(--display); letter-spacing: -0.04em; }
.brand img { width: 30px; height: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 700 16px/1 var(--body); border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; color: var(--cream);
  transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(0.97); }
.btn.go { background: var(--brand); color: var(--plum); border: 0; box-shadow: 0 10px 30px rgba(216, 90, 48, 0.45); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.soon { font-size: 12px; font-weight: 600; color: var(--muted); }
.btn .soon { color: inherit; opacity: 0.7; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- the record ---------- */
.record { position: relative; aspect-ratio: 1; border-radius: 50%; }
.record .disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(255,248,242,0.07) 10% 16%, transparent 18% 58%, rgba(255,248,242,0.05) 60% 66%, transparent 68%),
    repeating-radial-gradient(circle, var(--plum) 0 3px, #241826 3px 4px),
    var(--plum);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255,248,242,0.06);
  animation: spin 6s linear infinite;
}
.record .label {
  position: absolute; inset: 31%; border-radius: 50%; background: var(--brand); background-size: cover; background-position: center;
  display: grid; place-items: center; overflow: hidden;
}
.record .label::after { content: ''; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.record .label .x { position: absolute; width: 46%; aspect-ratio: 1; }
.record .label .x::before, .record .label .x::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 26%; height: 100%; margin-left: -13%; border-radius: 6px;
  background: var(--plum); transform: rotate(45deg);
}
.record .label .x::after { transform: rotate(-45deg); }
.record.has-cover .label .x { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sound bars ---------- */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; background: var(--coral); border-radius: 2px; animation: bar 900ms ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 40%; animation-delay: -200ms; }
.bars i:nth-child(2) { height: 90%; animation-delay: -500ms; }
.bars i:nth-child(3) { height: 60%; animation-delay: -100ms; }
.bars i:nth-child(4) { height: 80%; animation-delay: -700ms; }
@keyframes bar { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.bars i { transform-origin: bottom; }

/* ---------- glass card ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px var(--edge) 60px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(60% 55% at 70% 30%, rgba(216, 90, 48, 0.55), transparent 70%),
              radial-gradient(40% 40% at 20% 80%, rgba(250, 199, 117, 0.16), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero .record { width: min(40vw, 580px); margin-left: auto; }
.hero .cta { margin-top: 36px; }
.hero .tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 860px) {
  .hero { padding-top: 96px; align-items: start; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero .record { width: 78vw; margin: 0 auto 8px; order: -1; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--plum-deep); }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font: 800 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -0.02em; padding: 0 22px; white-space: nowrap; }
.marquee span:nth-child(3n+2) { font-weight: 300; color: var(--soft); }
.marquee b { color: var(--coral); padding: 0 4px; font-weight: 800; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- home: sections ---------- */
section.block { padding: clamp(80px, 12vw, 160px) var(--edge); position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.num { font: 800 15px/1 var(--display); color: var(--coral); letter-spacing: 0.02em; margin-bottom: 18px; display: block; }

/* Share card visual */
.share-demo { padding: 22px; margin: 0 auto; }
.share-demo .tt { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255,248,242,0.06); color: var(--coral); font-weight: 700; }
.share-demo .listen { margin: 26px 0 18px; display: flex; align-items: center; gap: 14px; color: var(--soft); }
.share-demo .wave { display: flex; align-items: center; gap: 3px; height: 40px; flex: 1; }
.share-demo .wave i { flex: 1; border-radius: 3px; background: var(--coral); opacity: 0.85; animation: bar 700ms ease-in-out infinite alternate; transform-origin: center; }
.found { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,248,242,0.06); }
.found .art { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); flex: none; position: relative; }
.found .art::after { content: ''; position: absolute; inset: 42%; border-radius: 50%; background: var(--ink); }
.found b { display: block; font: 800 18px/1.2 var(--display); }
.found small { color: var(--soft); }

/* Your DJ orb */
.orb-wrap { position: relative; width: min(80vw, 440px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.orb { width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE6B8, var(--gold) 20%, var(--coral) 52%, var(--coral-strong) 85%); box-shadow: 0 0 120px rgba(240, 153, 123, 0.45); animation: breathe 2.8s ease-in-out infinite; }
.ring { position: absolute; inset: 21%; border-radius: 50%; border: 1px solid rgba(240, 153, 123, 0.6); animation: ripple 3.2s ease-out infinite; }
.ring.two { animation-delay: 1.6s; }
.onair { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--on-air); color: #fff; font: 800 12px/1 var(--body); letter-spacing: 0.12em; }
.onair::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.2; } }
.quote { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--gold); color: var(--cream); font: 300 clamp(20px, 2vw, 24px)/1.3 var(--display); }
.quote b { font-weight: 800; }

/* Scratch visual: two decks */
.decks { display: flex; gap: 16px; justify-content: center; }
.decks .record { width: min(38vw, 260px); }
.decks .record:last-child .disc { animation-direction: reverse; animation-duration: 3.2s; }
.decks .record:last-child .label { background: linear-gradient(135deg, var(--gold), var(--coral)); }

/* Party visual */
.party { padding: 28px; margin: 0 auto; text-align: center; }
.party .code { display: inline-block; margin: 14px 0 18px; padding: 10px 18px; border-radius: 999px; background: rgba(250, 199, 117, 0.14); color: var(--gold); font: 800 22px/1 var(--display); letter-spacing: 0.3em; }
.emojis { display: flex; justify-content: center; gap: 8px; font-size: 26px; }
.emojis span { animation: float 2.4s ease-in-out infinite; }
.emojis span:nth-child(2) { animation-delay: -0.6s; } .emojis span:nth-child(3) { animation-delay: -1.2s; } .emojis span:nth-child(4) { animation-delay: -1.8s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Creators */
.creators { text-align: center; overflow: hidden; }
.creators::before { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 45% at 50% 55%, rgba(216, 90, 48, 0.28), transparent 75%); pointer-events: none; }
.creators .two { position: relative; }
.perks { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 56px auto 0; max-width: 1080px; text-align: left; }
.perks .glass { padding: 26px; }
.perks h3 { font: 800 22px/1.15 var(--display); margin: 14px 0 8px; letter-spacing: -0.01em; }
.perks p { margin: 0; color: var(--soft); }
.dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 153, 123, 0.16); color: var(--coral); }
.dot svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }

/* Final call */
.final { text-align: center; padding-bottom: 120px; }
.final .record { width: min(60vw, 300px); margin: 0 auto 40px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px var(--edge) 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--cream); }

/* ---------- link pages (track, profile, party) ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1; display: grid; place-items: center; padding: 96px var(--edge) 48px; overflow: hidden; }
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 0%, var(--tint-a), transparent 70%), radial-gradient(45% 35% at 50% 0%, var(--tint-b), transparent 70%);
  opacity: 0.9; transition: opacity 600ms;
}
.card { position: relative; width: 100%; max-width: 460px; text-align: center; }
.card .record { width: min(72vw, 300px); margin: 0 auto 32px; }
.card h1 { font: 800 clamp(32px, 8vw, 48px)/1.02 var(--display); letter-spacing: -0.03em; margin: 12px 0 10px; overflow-wrap: anywhere; }
.card .by { color: var(--soft); font-size: 17px; }
.card .by b { color: var(--coral); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font: 700 12px/1 var(--body); letter-spacing: 0.1em; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chips .chip { letter-spacing: 0; font-weight: 600; font-size: 13px; }
.chips .chip.orig { color: var(--plum); background: var(--coral); border-color: transparent; }
.actions { display: grid; gap: 12px; margin-top: 34px; }
.actions .btn { width: 100%; }
.note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--plum); font: 800 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.avatar { width: 132px; height: 132px; margin: 0 auto 22px; border-radius: 50%; padding: 4px; background: var(--brand); }
.avatar > div { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--ink); background: var(--coral) center/cover; display: grid; place-items: center; font: 800 56px/1 var(--display); color: var(--plum); }
.stats { display: flex; justify-content: center; gap: 28px; margin-top: 22px; }
.stats div { text-align: center; }
.stats b { display: block; font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { font: 600 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.list { margin-top: 30px; display: grid; gap: 4px; text-align: left; }
.list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.list a:hover { background: var(--glass); }
.list .cv { width: 48px; height: 48px; border-radius: 12px; background: var(--brand) center/cover; flex: none; }
.list b { display: block; font-weight: 600; }
.list small { color: var(--soft); }
.big-code { font: 800 clamp(40px, 12vw, 64px)/1 var(--display); letter-spacing: 0.18em; color: var(--gold); margin: 18px 0 6px; padding-left: 0.18em; }
.skeleton { color: transparent !important; background: var(--glass); border-radius: 10px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: opacity 200ms !important; }
  .reveal { transform: none; }
  html { scroll-behavior: auto; }
}

/* Section visuals: a warm glow behind each, and a slight tilt that survives the reveal. */
.share-demo, .party { max-width: 480px; box-shadow: 0 40px 140px rgba(216, 90, 48, 0.28); }
.share-demo { transform: none; rotate: -3deg; }
.party { transform: none; rotate: 2deg; }
.decks { filter: drop-shadow(0 30px 80px rgba(216, 90, 48, 0.25)); }

/* Small print under the store buttons. */
.fine { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.final .fine { text-align: center; }
a.btn[aria-disabled="true"] { cursor: default; }
