:root {
  --bg: #08080c;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --accent: rgb(70, 50, 110); /* set from the current demo cover */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
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; }

/* ---------- The wall: a full-screen live wallpaper ---------- */
.wall {
  position: relative;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}
.wall > .backdrop, .wall > canvas, .wall > .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop { background: var(--accent); transition: background-color 1.2s var(--ease); }
canvas.bg { opacity: 0; transition: opacity 1s var(--ease); }
canvas.bg.wave { top: auto; height: 26%; }
.wall[data-background="aurora"] #demo-aurora,
.wall[data-background="glow"] #demo-glow,
.wall[data-background="wave"] #demo-wave { opacity: 1; }
.shade { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent 30%, transparent 60%, rgba(0, 0, 0, 0.45)); pointer-events: none; }

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.22); }

.center {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px 120px; text-align: center;
  transition: padding-bottom 0.8s var(--ease);
}
.cover {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  width: min(38vh, 64vw); height: min(38vh, 64vw);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease);
}
.cover:hover { transform: scale(1.02); }
.cover .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.cover .art.shown { opacity: 1; }

h1 {
  margin: 40px 0 0;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.lede { margin: 14px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.8); }

.now { position: absolute; z-index: 1; left: clamp(18px, 4vw, 40px); bottom: 34px; }
.now .title { font-weight: 600; }
.now .artist { font-size: 14px; color: var(--muted); }

.styles {
  position: absolute; z-index: 1; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.styles button {
  border: 0; border-radius: 999px; padding: 7px 15px; cursor: pointer;
  background: none; color: var(--muted); font: 500 14px Inter, sans-serif;
  transition: background 0.2s, color 0.2s;
}
.styles button:hover { color: var(--text); }
.styles button[aria-checked="true"] { background: rgba(255, 255, 255, 0.9); color: #000; }

/* Wave keeps the bottom clear for the bars, as in the app. */
.wall[data-background="wave"] .center { padding-bottom: 26vh; }

@media (max-width: 640px) {
  .now { display: none; }
}

/* ---------- Points ---------- */
.points {
  max-width: 1100px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) 24px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.points p { margin: 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.points strong { display: block; margin-bottom: 6px; color: var(--text); font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -0.015em; }

/* ---------- Get ---------- */
.get { text-align: center; padding: 40px 24px clamp(80px, 12vw, 140px); }
.get img { margin: 0 auto 22px; filter: drop-shadow(0 14px 36px rgba(43, 111, 255, 0.4)); }
.get h2 { margin: 0 0 26px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
.fine { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

.waitlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 440px; margin: 0 auto; }
.waitlist input[type=email] {
  flex: 1 1 230px; min-width: 0; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: var(--text); font: inherit; font-size: 16px;
}
.waitlist input[type=email]:focus { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 1px; }
.waitlist button {
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #000; font: 600 16px Inter, sans-serif;
  transition: transform 0.15s;
}
.waitlist button:hover { transform: translateY(-1px); }
.waitlist button:disabled { opacity: 0.6; transform: none; cursor: default; }
.waitlist .hp { position: absolute; left: -9999px; }
.form-note { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.form-note.ok { color: #8ff0c4; }
.form-note.err { color: #ff9f9f; }

.site-footer {
  display: flex; justify-content: center; gap: 22px;
  padding: 28px 16px 36px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

/* ---------- Shared with privacy / 404 ---------- */
.page-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(18px, 4vw, 40px); }
.page-nav .nav-cta { background: rgba(255, 255, 255, 0.1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
