/* Deck — marketing page
   A light hero in the app's own neutrals, then the "night": a dark room
   where every tile glows in a colour taken from the screens inside it. */

:root {
  color-scheme: light;
  --canvas: #fbfaf9;
  --ink: #16131f;
  --ink-2: #4a4556;
  --ink-3: #736d80;
  --hairline: rgba(22, 19, 31, 0.09);
  --action: #5e48d8;
  --action-hi: #8b86ff;
  --phone-shadow: rgba(22, 19, 31, 0.22);

  --night: #0a0714;
  --tile: #15111f;
  --tile-line: rgba(255, 255, 255, 0.08);
  --on-night: #ffffff;
  --on-night-2: rgba(255, 255, 255, 0.62);
  --on-night-3: rgba(255, 255, 255, 0.42);

  --display: "Bricolage Grotesque", "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0b0a10;
    --ink: #f4f2fa;
    --ink-2: #c9c5d4;
    --ink-3: #9a95a8;
    --hairline: rgba(255, 255, 255, 0.09);
    --action: #8b86ff;
    --phone-shadow: rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b0a10;
  --ink: #f4f2fa;
  --ink-2: #c9c5d4;
  --ink-3: #9a95a8;
  --hairline: rgba(255, 255, 255, 0.09);
  --action: #8b86ff;
  --phone-shadow: rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--action-hi); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Nav: a floating pill ---------- */

.nav {
  position: fixed;
  z-index: 20;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 6px 6px 6px;
  border-radius: 999px;
  background: rgba(14, 11, 22, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(10, 7, 20, 0.45);
  color: #fff;
}
.wordmark-sm {
  font: 800 22px/1 var(--display);
  letter-spacing: -0.05em;
  text-decoration: none;
}
.nav-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  transition: transform 300ms var(--ease);
}
.nav-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.nav-icon:hover { transform: rotate(18deg) scale(1.08); }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 160ms;
}
.nav-links a:hover { color: #fff; }
/* Clean flat TestFlight pill */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1 var(--body);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: #6d55f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  text-shadow: none;
  transition: background-color 150ms var(--ease), opacity 150ms var(--ease);
}
.nav-cta:hover {
  background: #7d67f5;
}
.nav-cta:active {
  background: #5d46e0;
  opacity: 0.9;
}

/* ---------- Device frame ---------- */

/* The bezel image (iPhone 14 Pro) is 892 × 1810 with a transparent
   784 × 1702 screen at (54, 54). The screenshot sits in that hole, a hair
   oversized so no gap shows at the antialiased edge, and the bezel (with
   its island) lies on top. */
.phone {
  position: relative;
  aspect-ratio: 892 / 1810;
  max-width: 100%;
  filter: drop-shadow(0 30px 30px var(--phone-shadow));
}
.phone img {
  position: absolute;
  left: 5.85%;
  top: 2.8%;
  width: 88.3%;
  height: 94.4%;
  object-fit: cover;
  object-position: top;
  border-radius: 15% / 6.9%;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bezel.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); overflow: hidden; }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 14px; }
.wordmark {
  font: 800 clamp(72px, 11vw, 136px)/0.86 var(--display);
  letter-spacing: -0.055em;
  padding-right: 0.04em;
}
.tagline {
  font: 500 clamp(21px, 2.4vw, 30px)/1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink-2);
  max-width: 24ch;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  font: 600 14px/1 var(--body);
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--hairline);
}
.badge--dark { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: var(--tile-line); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2s infinite; }
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

.stage {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  height: clamp(540px, 58vw, 720px);
  margin-top: clamp(28px, 4vw, 44px);
  perspective: 1600px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
}
.stage > * {
  --dx: 0px; --dy: 0px;
  position: absolute;
  transform-style: preserve-3d;
}
.stage-phone {
  left: 50%;
  top: 0;
  width: clamp(250px, 25vw, 330px);
  transform: translate3d(calc(-50% + var(--dx)), var(--dy), 0) rotateX(var(--rx)) rotateY(var(--ry));
  z-index: 2;
}

/* A record sliding out from behind the phone. Grooves are fine repeating
   rings; the sheen is a conic highlight that stays put while the record
   turns underneath it. */
.vinyl-wrap {
  --vinyl-x: -8%;
  --vinyl-y: 36px;
  left: 50%;
  top: 0;
  width: clamp(340px, 34vw, 460px);
  aspect-ratio: 1;
  transform: translate3d(calc(var(--vinyl-x) + var(--dx, 0px)), calc(var(--vinyl-y) + var(--dy, 0px)), 0);
  z-index: 1;
}
.vinyl-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,0.18) 12%, transparent 17% 52%, rgba(255,255,255,0.12) 58%, transparent 64%);
  pointer-events: none;
}
.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.05) 31.4%, transparent 32%),
    repeating-radial-gradient(circle, #141217 0 1.1px, #1d1b22 1.3px 2.2px),
    #141217;
  box-shadow: 0 30px 60px -20px rgba(22, 19, 31, 0.55), inset 0 0 0 2px #0b0a0d, inset 0 0 0 5px #23212a;
  display: grid;
  place-items: center;
}
.vinyl-label {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #1b122e;
  box-shadow: 0 0 0 3px #0d0c10;
}
.vinyl-label img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.15); }
.vinyl-label::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9%; height: 9%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .vinyl { animation: spin 2.4s linear infinite; }
  .vinyl-wrap { animation: slide-out 1400ms var(--ease) 300ms both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-out {
  from {
    transform: translate3d(calc(-50% + var(--dx, 0px)), calc(var(--vinyl-y) + var(--dy, 0px)), 0);
    opacity: 0.5;
  }
  to {
    transform: translate3d(calc(var(--vinyl-x) + var(--dx, 0px)), calc(var(--vinyl-y) + var(--dy, 0px)), 0);
    opacity: 1;
  }
}

/* Floating fragments cut from real screens. */
.chip {
  border-radius: 24px;
  box-shadow:
    0 2px 4px rgba(22, 19, 31, 0.06),
    0 28px 50px -18px rgba(22, 19, 31, 0.35);
  outline: 1px solid rgba(22, 19, 31, 0.06);
}
.stage .chip { transition: transform 600ms var(--ease); }
.chip--a { width: 250px; left: calc(50% - 500px); top: 40px;  transform: translate3d(var(--dx), var(--dy), 0) rotate(-6deg); z-index: 3; }
.chip--b { width: 330px; left: calc(50% + 175px); top: 90px;  transform: translate3d(var(--dx), var(--dy), 0) rotate(4deg); z-index: 3; }
.chip--c { width: 330px; left: calc(50% - 540px); top: 330px; transform: translate3d(var(--dx), var(--dy), 0) rotate(3deg); z-index: 1; }
.chip--d { width: 300px; left: calc(50% + 205px); top: 370px; transform: translate3d(var(--dx), var(--dy), 0) rotate(-4deg); z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .stage-phone { animation: rise 1000ms var(--ease) both; }
  .stage .chip { animation: pop 900ms var(--ease) both; }
  .chip--a { animation-delay: 250ms; }
  .chip--b { animation-delay: 350ms; }
  .chip--c { animation-delay: 450ms; }
  .chip--d { animation-delay: 550ms; }
}
@keyframes rise { from { transform: translate3d(-50%, 60px, 0); } }
@keyframes pop  { from { transform: translate3d(0, 30px, 0) scale(0.92); } }

/* ---------- The night ---------- */

.night {
  position: relative;
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(94, 72, 216, 0.35), transparent 70%),
    var(--night);
  color: var(--on-night);
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  padding-top: 8px;
  z-index: 1;
}

.band { padding-block: clamp(72px, 9vw, 120px) 0; }
.band-title {
  font: 800 clamp(40px, 6.2vw, 78px)/0.98 var(--display);
  letter-spacing: -0.045em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.band-title span { color: var(--on-night-3); }

/* ---------- Laser rig ---------- */

.band--lasers { position: relative; }
.lasers {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 760px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.band--lasers .wrap { position: relative; }
.band--lasers .band-title { padding-top: 120px; text-shadow: 0 4px 30px rgba(10, 7, 20, 0.9); }
.band--lasers .band-title span { color: rgba(255, 255, 255, 0.55); }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
/* The glow: a colour from the tile's own screens, lit from below. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 60% at 50% 100%, var(--glow, transparent), transparent 70%);
  opacity: 0.55;
  transition: opacity 400ms;
}
.tile:hover::before { opacity: 0.8; }
.glow-violet   { --glow: #5e48d8; }
.glow-ember    { --glow: #e0452f; }
.glow-sun      { --glow: #e59a14; }
.glow-rose     { --glow: #d9365e; }
.glow-moss     { --glow: #4c7a3a; }
.glow-ice      { --glow: #3a86c8; }
.tile.glow-spectrum::before {
  background:
    radial-gradient(45% 55% at 25% 100%, rgba(255, 55, 95, 0.9), transparent 70%),
    radial-gradient(45% 55% at 75% 100%, rgba(0, 190, 230, 0.8), transparent 70%);
}

.lede {
  font: 500 clamp(18px, 1.6vw, 21px)/1.38 var(--body);
  color: var(--on-night-2);
  max-width: 40ch;
}
.lede strong { color: var(--on-night); font-weight: 600; }

.tile-media {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding-top: 40px;
  min-height: 320px;
  perspective: 1400px;
}
.phone--bleed { width: min(290px, 64%); margin-bottom: -46%; }
.tile-media--pair .phone--bleed { width: min(260px, 45%); margin-bottom: -40%; }

/* 3D tilt, eased back toward flat when the tile is hovered. */
.tilt-l, .tilt-r { transition: transform 700ms var(--ease); }
.tilt-l { transform: rotateY(16deg) rotateX(10deg) rotateZ(-4deg); }
.tilt-r { transform: rotateY(-16deg) rotateX(10deg) rotateZ(4deg); }
.tile-media--pair .tilt-r { margin-top: 44px; }
.tile:hover .tilt-l { transform: rotateY(8deg) rotateX(4deg) rotateZ(-2deg) translateY(-10px); }
.tile:hover .tilt-r { transform: rotateY(-8deg) rotateX(4deg) rotateZ(2deg) translateY(-10px); }

.chip--float {
  position: absolute;
  width: min(300px, 62%);
  right: 4%;
  top: 46%;
  transform: rotate(-5deg);
  transition: transform 700ms var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  outline: 1px solid rgba(255, 255, 255, 0.08);
}
.tile:hover .chip--float { transform: rotate(-3deg) translateY(-14px); }
.chip--float-capture { right: auto; left: 4%; top: 52%; transform: rotate(4deg); }
.tile:hover .chip--float-capture { transform: rotate(2deg) translateY(-14px); }

.tile--rank       { grid-column: span 8; }
.tile--trajectory { grid-column: span 4; }
.tile--tiers      { grid-column: span 5; }
.tile--tracks     { grid-column: span 7; }
.tile--radar      { grid-column: span 7; }
.tile--versus     { grid-column: span 5; }
.tile--shows      { grid-column: span 5; }
.tile--activity   { grid-column: span 7; }
.tile--capture    { grid-column: span 7; }
.tile--native     { grid-column: span 5; min-height: 0; justify-content: space-between; }

/* Scores, set the way the app sets them: whole number large, tenth small. */
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.score {
  font: 500 15px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--on-night-3);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--tile-line);
  padding: 9px 12px;
  border-radius: 12px;
}
.score b { font-size: 22px; font-weight: 500; color: var(--on-night); }

.at {
  font: 500 0.95em/1 var(--mono);
  color: #b3adff;
  background: rgba(139, 134, 255, 0.18);
  padding: 2px 6px;
  border-radius: 6px;
}

.glass-crop {
  margin: 32px 0 36px;
  border-radius: 24px;
  overflow: hidden;
  transform: perspective(900px) rotateX(14deg);
  transform-origin: bottom;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  transition: transform 700ms var(--ease);
}
.tile:hover .glass-crop { transform: perspective(900px) rotateX(0deg) translateY(-6px); }

/* Live Activity illustration */
.tile-media--activity { align-items: center; padding-bottom: 28px; }
.lock {
  width: min(380px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  padding: 26px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background:
    radial-gradient(80% 70% at 20% 10%, rgba(255, 145, 77, 0.6), transparent 70%),
    radial-gradient(70% 70% at 90% 90%, rgba(120, 90, 255, 0.65), transparent 70%),
    #1b1030;
  border: 1px solid var(--tile-line);
  box-shadow: 0 40px 60px -24px rgba(0, 0, 0, 0.8);
}
.lock-time { font: 700 58px/1 var(--display); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.94); }
.activity {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(16, 12, 26, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid; gap: 3px;
}
.activity-meta { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.activity-now { font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; }
.activity-sub { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.activity-bar { height: 4px; border-radius: 4px; margin: 8px 0 6px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.activity-bar span { display: block; width: 58%; height: 100%; background: #ff9f43; border-radius: inherit; }
.activity-next { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.activity-next b { color: #ff9f43; font-weight: 600; }
.caption { position: absolute; right: 22px; bottom: 18px; font-size: 12px; color: var(--on-night-3); }

/* ---------- Privacy ---------- */

.privacy { position: relative; }
.privacy::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 520px;
  background: radial-gradient(50% 60% at 50% 30%, rgba(94, 72, 216, 0.45), transparent 70%);
  pointer-events: none;
}
.privacy-head {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.privacy-head .band-title { margin-bottom: 12px; }
.privacy-lede {
  font: 500 clamp(19px, 2vw, 24px)/1.35 var(--body);
  color: var(--on-night-2);
  max-width: 34ch;
}
/* The one big object on the page: a lock rendered as a lit glass tile. */
.vault {
  width: 112px; height: 112px;
  border-radius: 30px;
  display: grid; place-items: center;
  margin-bottom: 28px;
  background: linear-gradient(160deg, #8b7bff 0%, #5e48d8 45%, #2c1d7a 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -10px 24px rgba(0, 0, 0, 0.25) inset,
    0 30px 60px -12px rgba(94, 72, 216, 0.75),
    0 0 0 10px rgba(94, 72, 216, 0.12);
  transform: perspective(600px) rotateX(12deg);
}
.vault svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }

.pillars {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillars li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: 26px;
  padding: 26px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform 400ms var(--ease), border-color 400ms;
}
.pillars li:hover { transform: translateY(-4px); border-color: rgba(139, 134, 255, 0.4); }
.pillars h3 { font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; margin-top: 10px; }
.pillars p { color: var(--on-night-2); font-size: 16px; }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(139, 134, 255, 0.35), rgba(94, 72, 216, 0.18));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 20px -8px rgba(94, 72, 216, 0.6);
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: #d9d5ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon {
  display: inline-block;
  margin-left: 6px;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(139, 134, 255, 0.22);
  color: #d9d5ff;
  vertical-align: 4px;
}

/* ---------- TestFlight ---------- */

.tf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid var(--tile-line);
  background: var(--tile);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 480px;
}
.tf::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 100%, rgba(94, 72, 216, 0.8), transparent 70%),
    radial-gradient(40% 60% at 60% 0%, rgba(224, 69, 47, 0.35), transparent 70%);
}
.tf-copy { padding: clamp(28px, 4vw, 56px); display: grid; gap: 16px; justify-items: start; }
.tf h2 { font: 800 clamp(36px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.04em; }
.tf-copy > p:not(.badge) { color: var(--on-night-2); font-size: 19px; max-width: 32ch; }
/* A DJ controller top plate: one jog wheel and a 4 × 4 pad grid,
   seen from above and tipped back. */
.controller {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 40px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, #26222f, #121017);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 40px 60px -20px rgba(0, 0, 0, 0.8),
    0 14px 0 -6px #0a090d;
  transform: perspective(1100px) rotateX(24deg) rotateZ(-3deg);
}
.jog {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(from 0deg, #3a3642, #1a1820, #3a3642, #1a1820, #3a3642);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 10px 20px -6px rgba(0, 0, 0, 0.8);
}
.jog-platter {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #8b86ff 0 7%, #2a1055 7.5% 22%, transparent 22.5%),
    repeating-radial-gradient(circle, #16141a 0 1px, #211e27 1.2px 2px);
  box-shadow: inset 0 0 0 2px #0b0a0e;
  position: relative;
}
.jog-platter::after {
  content: "";
  position: absolute;
  left: 50%; top: 4%;
  width: 3px; height: 16%;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .jog-platter { animation: spin 1.8s linear infinite; }
}
.pads {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 10px;
}
.pad {
  --c: #8b86ff;
  aspect-ratio: 1;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c) 16%, #1b1922);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 0 rgba(0, 0, 0, 0.45), 0 2px 0 #09080c;
  transition: background 380ms ease-out, box-shadow 380ms ease-out;
}
.pad--m { --c: #ff375f; }
.pad--o { --c: #ff9f0a; }
.pad--c { --c: #64d2ff; }
.pad--v { --c: #bf5af2; }
.pad--g { --c: #30d158; }
.pad.is-hit, .pad.is-lit {
  background: color-mix(in srgb, var(--c) 85%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 2px 0 #09080c,
    0 0 22px 2px var(--c);
  transition: none;
}

/* ---------- Footer ---------- */

.foot { padding-block: 72px 40px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.foot p { color: var(--on-night-3); font-size: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -0.05em; }
.foot-brand img { width: 32px; height: 32px; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stage { height: clamp(500px, 52vw, 620px); }
  .stage-phone { width: clamp(230px, 24vw, 270px); }
  .vinyl-wrap {
    --vinyl-x: -12%;
    --vinyl-y: 28px;
    width: clamp(290px, 32vw, 370px);
  }
  .chip--a { left: calc(50% - 370px); width: 190px; }
  .chip--c { left: calc(50% - 390px); width: 250px; top: 280px; }
  .chip--b { left: calc(50% + 140px); width: 240px; }
  .chip--d { left: calc(50% + 150px); width: 230px; top: 310px; }
}

@media (max-width: 1020px) {
  .tile--rank, .tile--tracks, .tile--radar, .tile--activity, .tile--capture { grid-column: span 12; }
  .tile--trajectory, .tile--tiers, .tile--versus, .tile--shows, .tile--native { grid-column: span 6; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controller { transform: perspective(1100px) rotateX(20deg) scale(0.86); margin: 0 0 32px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-pill { gap: 14px; padding: 5px 6px; }
  .hero { overflow: hidden; }
  .stage {
    height: clamp(440px, 118vw, 520px);
    margin-top: 14px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .stage-phone {
    width: clamp(175px, 44vw, 205px);
    top: 16px;
    left: 44%;
    transform: translate3d(-50%, 0, 0);
  }
  /* The spinning vinyl peeking out from the right with its disco ball center label visible */
  .vinyl-wrap {
    --vinyl-x: -10%;
    --vinyl-y: -15px;
    left: 44%;
    width: clamp(210px, 52vw, 250px);
    top: 0;
  }
  /* Two focused, clean accent chips framing the phone on mobile */
  .chip--a {
    width: clamp(105px, 26vw, 125px);
    left: clamp(8px, 2.5vw, 18px);
    top: 20px;
    transform: rotate(-6deg);
    z-index: 3;
  }
  .chip--b {
    width: clamp(140px, 36vw, 175px);
    left: auto;
    right: clamp(8px, 2.5vw, 18px);
    top: clamp(255px, 64vw, 295px);
    bottom: auto;
    transform: rotate(3deg);
    z-index: 3;
  }
  .chip--c { display: none; }
  .chip--d { display: none; }

  .bento { gap: 14px; }
  .bento > .tile { grid-column: 1 / -1; min-height: 0; }
  .tile-media { min-height: 0; }
  .phone--bleed { width: 64%; margin-bottom: -58%; }
  .tile-media--pair .phone--bleed { width: 46%; margin-bottom: -50%; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .tf { grid-template-columns: minmax(0, 1fr); }
  .controller { gap: 16px; padding: 18px; transform: perspective(900px) rotateX(20deg) scale(0.92); }
  .jog { width: 128px; }
  .pads { grid-template-columns: repeat(4, 30px); gap: 7px; }
  .band--lasers .band-title { padding-top: 72px; }
  .lasers { height: 560px; }
  .night { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-l, .tilt-r, .chip, .glass-crop, .pillars li { transition: none; }
}
