:root {
  --bg: #140f2b;
  --bg-alt: #1b1440;
  --surface: #211a4a;
  --surface-2: #291f59;
  --border: rgba(244, 241, 251, 0.10);
  --border-strong: rgba(244, 241, 251, 0.18);

  --buzz-red: #ff3d3d;
  --buzz-red-dark: #c81f1f;
  --volt: #ffcf3f;
  --violet: #8b5cf6;
  --mint: #33d9b2;

  --text: #f5f2ff;
  --text-muted: #a89fcf;
  --text-dim: #7a7099;

  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Painted once on a fixed compositor layer, never during scroll/animation.
   Oversized (120%) so the slow drift below never exposes a hard edge.
   The grain texture is layered in here as a 4th background-image instead
   of a separate body::after — see the perf note below for why. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 8%, rgba(139, 92, 246, 0.22), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(255, 61, 61, 0.16), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(51, 217, 178, 0.10), transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

/* transform-only drift — no repaint, stays on the compositor thread. */
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.05); }
}

/* PERF FIX: the grain used to live on its own body::after with
   position:fixed + mix-blend-mode:overlay. A blend mode has to know
   what's underneath it to compute the result, so on a fixed element
   that sits over content that keeps scrolling past, the browser was
   recomputing that blend on every single scroll frame — same root cause
   as the backdrop-filter issue noted on <header> below, and the actual
   source of the scroll lag. Folding the noise into body::before as a
   plain (non-blended) background-image removes that recompute entirely:
   it's now one static image painted once on the same compositor layer
   as the gradients, with zero extra cost during scroll. */

/* Note: a content-visibility:auto + contain-intrinsic-size trick was
   tried here to skip offscreen rendering, but the placeholder height
   didn't match these sections' real height, causing a visible layout
   jump right as they scrolled into view — worse than the cost it saved.
   Removed in favor of the lighter, jank-free optimizations below. */

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
  z-index: 1;
}

/* The sound-picker popover can overflow the bottom edge of the hero.
   Every <section> shares z-index:1, so without this the next section
   (later in DOM order, same z-index) painted over that overflow and
   silently ate clicks on the lower menu items. */
.hero {
  z-index: 2;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--volt);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--buzz-red);
  box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.18);
}

/* ---------- SCROLL PROGRESS ---------- */
/* Even simpler than .reveal below: driven straight off scroll(root), no
   JS, no per-frame class toggling. Scales from 0 to 1 as the page reads. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--buzz-red), var(--volt), var(--violet), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  @keyframes scroll-progress-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .scroll-progress {
    animation: scroll-progress-fill linear both;
    animation-timeline: scroll(root);
  }
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* backdrop-filter: blur() on a fixed element forces the browser to
     re-sample everything scrolling underneath it, every single frame.
     On Android that's routinely the #1 cause of scroll jank on a page
     like this. A slightly more opaque solid background reads almost
     identically and costs the compositor nothing. */
  background: rgba(17, 13, 36, 0.94);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.3px;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--buzz-red);
  box-shadow: 0 0 14px 2px rgba(131, 69, 226, 0.7);
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 0 14px 2px rgba(131, 69, 226, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- MOBILE NAV (< 860px) ---------- */
/* Below 860px the links used to just vanish entirely (display:none, no
   alternative), leaving mobile visitors with only the logo in the header.
   This turns them into a proper dropdown panel behind a hamburger button. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 859px) {
  nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(17, 13, 36, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
  }

  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    padding: 6px 28px 16px;
  }

  .nav-links li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 13px 2px;
  }
}

@media(min-width:860px) {
  .nav-toggle {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ff5555, var(--buzz-red-dark));
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(255, 61, 61, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::after {
    animation: btn-shimmer .85s ease;
  }
}

@keyframes btn-shimmer {
  from { left: -60%; }
  to { left: 130%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(255, 61, 61, 0.9);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.nav-cta {
  display: none;
}

@media(min-width:860px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 168px 0 100px;
  display: grid;
  gap: 56px;
}

@media(min-width:960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 180px 0 120px;
  }
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy p,
.hero-copy .hero-actions,
.hero-copy .hero-tags,
.buzzer-stage {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-copy .eyebrow { animation-delay: .05s; }
.hero-copy h1 { animation-delay: .15s; }
.hero-copy p { animation-delay: .25s; }
.hero-copy .hero-actions { animation-delay: .35s; }
.hero-copy .hero-tags { animation-delay: .42s; }
.buzzer-stage { animation-delay: .3s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 18px 0 20px;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--buzz-red), var(--volt), var(--buzz-red));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 5s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-copy p {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

/* Buzzer button */
.buzzer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.buzzer-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: 6px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 61, 61, 0.35);
}

.buzzer-ring-wrap {
  position: relative;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzzer-ring-wrap::before,
.buzzer-ring-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 61, 61, 0.35);
  animation: pulse-ring 2.6s ease-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

/* JS pauses ambient loops once the hero scrolls off-screen or the tab
   is backgrounded, so idle browser tabs and long scroll sessions don't
   keep burning GPU cycles on animations nobody is looking at. */
.anim-paused .buzzer-ring-wrap::before,
.anim-paused .buzzer-ring-wrap::after,
.anim-paused .phone {
  animation-play-state: paused;
}

/* The background aurora runs page-wide (not scroll-linked like the two
   rules above), so it only needs pausing when the tab itself is hidden —
   handled by the visibilitychange listener in script.js. */
body.anim-paused::before {
  animation-play-state: paused;
}

body.anim-paused .hero-copy h1 span {
  animation-play-state: paused;
}

.buzzer-ring-wrap::after {
  animation-delay: 1.3s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.82);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

#buzzBtn {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ff7a7a, var(--buzz-red) 55%, var(--buzz-red-dark) 100%);
  box-shadow:
    0 18px 0 0 #8f1414,
    0 26px 40px -10px rgba(255, 61, 61, 0.55),
    inset 0 6px 14px rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: transform .08s ease, box-shadow .08s ease;
}

#buzzBtn svg {
  width: clamp(38px, 7vw, 52px);
  height: clamp(38px, 7vw, 52px);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

#buzzBtn:active,
#buzzBtn.pressed {
  transform: translateY(14px);
  box-shadow:
    0 4px 0 0 #8f1414,
    0 10px 20px -6px rgba(255, 61, 61, 0.5),
    inset 0 6px 14px rgba(255, 255, 255, 0.3);
}

#buzzBtn:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 6px;
}

.buzz-counter {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}

.buzz-counter b {
  color: var(--volt);
  font-family: var(--display);
}

/* ---------- SOUND PICKER ---------- */
.sound-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sound-picker {
  position: relative;
}

.sound-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sound-picker-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sound-picker-btn b {
  color: var(--text);
  font-weight: 800;
}

.sound-picker-btn:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

.sound-picker-chevron {
  transition: transform .18s ease;
}

.sound-picker-btn[aria-expanded="true"] .sound-picker-chevron {
  transform: rotate(180deg);
}

.sound-picker-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  transform-origin: top center;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.65);
  padding: 6px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.sound-picker-menu:not([hidden]) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sound-picker-menu li {
  list-style: none;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.sound-picker-menu li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sound-picker-menu li[aria-selected="true"] {
  background: rgba(139, 92, 246, 0.18);
  color: var(--text);
}

.sound-picker-menu li[aria-selected="true"]::after {
  content: "✓";
  float: right;
  color: var(--volt);
  font-weight: 800;
}

.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  padding: 9px 16px;
  border-radius: 100px;
}

.volume-control input[type="range"] {
  width: 90px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px rgba(255, 207, 63, 0.2);
  transition: transform .12s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px rgba(255, 207, 63, 0.2);
}

.volume-control input[type="range"]:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

/* ---------- SECTION HEADS ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 16px;
}

.section-pad {
  padding: 110px 0;
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- PRESENTATION / PHONES ---------- */
.presentation {
  display: grid;
  gap: 50px;
  align-items: center;
}

@media(min-width:960px) {
  .presentation {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
  }
}

.phones {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle scroll-linked parallax on the whole group, driven straight off
   scroll position on the compositor — zero JS, zero scroll listeners.
   Uses the standalone `translate` property (not `transform`) so it never
   fights with the rotate/offset transforms already set on each .phone. */
@supports (animation-timeline: view()) {
  @keyframes phones-parallax {
    from { translate: 0 36px; }
    to   { translate: 0 -36px; }
  }

  .phones {
    animation: phones-parallax linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

.phone {
  position: absolute;
  width: 190px;
  height: 390px;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 10px;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  will-change: translate;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--bg);
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-1 {
  transform: rotate(-9deg) translate(-64px, 6px);
  z-index: 1;
}

.phone-2 {
  transform: rotate(3deg) translate(56px, -18px);
  z-index: 2;
  animation-delay: .8s;
}

.phone-3 {
  transform: rotate(-2deg) translate(-4px, 40px) scale(0.94);
  z-index: 3;
  animation-delay: 1.6s;
  opacity: 0.9;
}

/* Fixed-size, translated phone mockups start overflowing their own
   container's visible width once the viewport gets narrow enough
   (iPhone SE and similar) — scaled down here so nothing gets clipped. */
@media (max-width: 420px) {
  .phones {
    height: 340px;
  }

  .phone {
    width: 148px;
    height: 304px;
  }

  .phone-1 {
    transform: rotate(-9deg) translate(-46px, 4px);
  }

  .phone-2 {
    transform: rotate(3deg) translate(40px, -14px);
  }

  .phone-3 {
    transform: rotate(-2deg) translate(-2px, 30px) scale(0.94);
  }
}

@keyframes float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.presentation-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 16px;
}

.presentation-copy .section-head {
  margin-bottom: 0;
}

.mini-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
}

.mini-list li b {
  color: var(--text);
  font-family: var(--body);
  font-weight: 700;
}

.mini-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--volt);
}

/* ---------- FEATURES GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media(min-width:640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:980px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  contain: layout style paint;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.6);
  }
}

.card:active {
  transform: translateY(-1px) scale(0.99);
  border-color: var(--border-strong);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
  }
}

.card h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 16.5px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.ic-red {
  background: rgba(255, 61, 61, 0.14);
  color: var(--buzz-red);
}

.ic-volt {
  background: rgba(255, 207, 63, 0.14);
  color: var(--volt);
}

.ic-violet {
  background: rgba(139, 92, 246, 0.16);
  color: var(--violet);
}

.ic-mint {
  background: rgba(51, 217, 178, 0.14);
  color: var(--mint);
}

.soon-badge {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--volt);
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

.new-badge {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--mint);
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- CHANGELOG STRIP ---------- */
.changelog {
  background: linear-gradient(120deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  gap: 30px;
}

@media(min-width:860px) {
  .changelog {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  background: rgba(255, 207, 63, 0.12);
  color: var(--volt);
  border: 1px solid rgba(255, 207, 63, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.changelog h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-muted);
}

.changelog-list li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 800;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(51, 217, 178, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

/* ---------- DOWNLOAD ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width:860px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.dl-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.dl-ico {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.dl-card h3 {
  font-size: 20px;
}

.dl-card p {
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
}

.dl-note {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.dl-card .btn {
  width: 100%;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- REVEAL ---------- */
/* Fallback for browsers without native scroll-driven animations:
   IntersectionObserver (script.js) toggles .in / .animating. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.animating {
  will-change: opacity, transform;
}

/* Native scroll-driven reveal: each element scrubs its own entrance
   directly off scroll position instead of a transition triggered by a
   JS observer callback — no main-thread polling, no per-frame class
   toggling, and it stays perfectly in sync even on a janky scroll. */
@supports (animation-timeline: view()) {
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: none;
    animation: reveal-in .8s cubic-bezier(.16, 1, .3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  .reveal.in,
  .reveal.animating {
    opacity: revert;
    transform: revert;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}