/* Blendwave site — tokens in OKLCH, neutrals tinted toward the brand violet */
:root {
  --bg: oklch(0.145 0.006 300);
  --bg-2: oklch(0.185 0.008 300);
  --bg-3: oklch(0.235 0.01 300);
  --line: oklch(0.42 0.012 300 / 0.35);
  --ink: oklch(0.975 0.004 300);
  --ink-2: oklch(0.86 0.006 300);
  --dim: oklch(0.68 0.012 300);
  --accent: oklch(0.68 0.215 1);
  --teal: oklch(0.83 0.145 178);
  --violet: oklch(0.65 0.2 295);
  --amber: oklch(0.82 0.16 75);
  --pink: var(--accent);

  --display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --body: "Satoshi", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* fine grain over everything, very quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 200;
}
.skip:focus {
  left: 8px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: oklch(0.145 0.006 300 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.brand b {
  font-weight: 600;
}
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nav-cta {
  margin-left: 6px;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px 0 18px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.btn small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--bg-2);
  color: var(--dim);
  cursor: default;
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: 14px;
}
.nav-links .btn-sm {
  color: var(--bg);
  background: var(--ink);
}
.nav-links .btn-sm:hover {
  background: var(--ink-2);
  color: var(--bg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.hero h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(52px, 8.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  margin-top: 26px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- the playable pad ---------- */
.pad-stage {
  position: relative;
}
.pad {
  position: relative;
  aspect-ratio: 1;
  border-radius: 34px;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.08),
    0 50px 120px -40px oklch(0.68 0.215 1 / 0.45),
    0 30px 80px -30px oklch(0.65 0.2 295 / 0.45);
  transform: rotate(-2.5deg);
  transition: transform 0.6s var(--ease);
}
.pad:hover,
.pad.live {
  transform: rotate(0deg) scale(1.01);
}
.pad canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pad-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.92);
  padding: 7px 11px;
  border-radius: 99px;
  background: oklch(0.15 0.01 300 / 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.pad-label.tl {
  top: 16px;
  left: 16px;
}
.pad-label.tr {
  top: 16px;
  right: 16px;
}
.pad-label.bl {
  bottom: 16px;
  left: 16px;
}
.pad-label.br {
  bottom: 16px;
  right: 16px;
}
.pad-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 99px;
  background: oklch(0.15 0.01 300 / 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
  transition: opacity 0.4s;
}
.pad-hint i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: ping 1.6s var(--ease) infinite;
}
.pad.live .pad-hint {
  opacity: 0;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 oklch(1 0 0 / 0.6);
  }
  100% {
    box-shadow: 0 0 0 16px oklch(1 0 0 / 0);
  }
}
.pad-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.mute {
  font: inherit;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 0;
  border-radius: 99px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- sound marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-2);
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.6;
}
.marquee-track span:nth-child(4n + 1)::after {
  background: var(--teal);
  opacity: 1;
}
.marquee-track span:nth-child(4n + 3)::after {
  background: var(--accent);
  opacity: 1;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
section {
  scroll-margin-top: 80px;
}
.section {
  padding: clamp(80px, 11vw, 160px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head p {
  color: var(--dim);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 520px;
  justify-self: end;
}
@media (max-width: 820px) {
  .section-head p {
    justify-self: start;
  }
}

/* steps: three phones, staggered */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.step:nth-child(2) {
  margin-top: 80px;
}
.step:nth-child(3) {
  margin-top: 160px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .step:nth-child(n) {
    margin-top: 0;
  }
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.step p {
  margin-top: 10px;
  color: var(--dim);
  max-width: 340px;
}
.phone {
  margin-top: 28px;
  border-radius: 44px;
  padding: 10px;
  background: oklch(0.22 0.008 300);
  box-shadow:
    inset 0 0 0 1px oklch(1 0 0 / 0.07),
    0 40px 90px -40px oklch(0 0 0 / 0.9);
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  background: #000;
}

/* bento of features */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}
.tile h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.tile p {
  margin-top: 8px;
  color: var(--dim);
  font-size: 15.5px;
  max-width: 420px;
}
.t-sounds {
  grid-column: span 4;
  grid-row: span 2;
}
.t-loops {
  grid-column: span 2;
}
.t-tune {
  grid-column: span 2;
}
.t-wav {
  grid-column: span 3;
}
.t-midi {
  grid-column: span 3;
}
.t-private {
  grid-column: span 6;
}
@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile[class*="t-"] {
    grid-column: auto;
    grid-row: auto;
  }
}
.big-num {
  font-family: var(--display);
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin-bottom: auto;
}
.sound-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 28px;
}
.sound-cloud span {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--bg-3);
  font-size: 14.5px;
  font-weight: 500;
}
.sound-cloud span.c1 {
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.sound-cloud span.c2 {
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
.sound-cloud span.c3 {
  box-shadow: inset 0 0 0 1.5px var(--amber);
}
.sound-cloud span.c4 {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.wave {
  width: 100%;
  height: 70px;
  margin-bottom: auto;
  color: var(--ink);
}
.dots {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 14px;
  margin-bottom: auto;
}
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dim);
  opacity: 0.55;
}
.dots i.hot {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 18px var(--accent);
}
.t-private {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills span {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--ink-2);
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
}
@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.plan {
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(26px, 3vw, 44px);
}
.plan.pro {
  background: var(--ink);
  color: var(--bg);
}
.plan .tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.plan .price {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.plan .price small {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 10px;
  opacity: 0.6;
}
.plan ul {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.plan li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16.5px;
}
.plan li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transform: translateY(-2px);
}
.plan.pro li::before {
  background: var(--accent);
  opacity: 1;
}

/* faq */
.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
}
.faq details {
  border-radius: 20px;
  background: var(--bg-2);
  padding: 0 26px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 26px;
  font-weight: 300;
  color: var(--dim);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 22px;
  color: var(--dim);
  max-width: 680px;
}

/* closing CTA */
.closer {
  padding: clamp(90px, 12vw, 180px) 0;
  text-align: left;
}
.closer h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(54px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.closer h2 em {
  font-style: normal;
  color: var(--accent);
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--dim);
  font-size: 14.5px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer a {
  text-decoration: none;
  color: var(--ink-2);
}
footer a:hover {
  color: var(--ink);
}

/* reveal on scroll (Polish lens: one easing, one distance, staggered) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track,
  .pad-hint i {
    animation: none;
  }
  .pad {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- legal pages ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gutter) 120px;
}
.doc .eyebrow {
  margin-bottom: 18px;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.doc .updated {
  margin-top: 16px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}
.doc .summary {
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--bg-2);
  font-size: 18px;
}
.doc h2 {
  margin-top: 52px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.doc p,
.doc li {
  margin-top: 14px;
  color: var(--ink-2);
}
.doc ul {
  padding-left: 22px;
}
.doc strong {
  color: var(--ink);
}
.doc a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* Clash Display runs tight at large sizes: give the words a little air */
.hero h1,
.section-head h2,
.closer h2,
.doc h1,
.big-num {
  word-spacing: 0.06em;
}
