/* Beatkey — aquadics.com/beatkey
   Self-contained design system, built from the app icon: two key tiles in their
   real key colours over a black stage, and a big rounded number. No build step. */

:root {
  --bg: #050507;
  --bg-2: #0d0d12;
  --bg-3: #14141b;
  --ink: #f5f4f8;
  --ink-2: #b5b2c2;
  --ink-3: #7a7789;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --pink: #cc7dc4;      /* key 8A, exactly as the icon draws it */
  --cyan: #60bcd9;      /* key 11A */
  --pink-hi: #e9a3e0;
  --cyan-hi: #8ad6ee;
  --grad: linear-gradient(120deg, var(--pink) 0%, var(--cyan) 100%);
  --glow: 0 0 60px rgba(204, 125, 196, 0.32), 0 0 120px rgba(96, 188, 217, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, system-ui, sans-serif;
  --beat: 0.4839s;      /* one beat at 124 BPM, the number on the icon */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.h-display {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-2); max-width: 44ch; }
.small { font-size: 14px; color: var(--ink-3); }
.num { font-family: var(--font-round); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(5, 5, 7, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--ink); color: #0b0a10; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) { .nav__links { display: none; } }

/* "Coming soon" stand-in for the App Store badge until the record exists */
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 18px 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--ink); line-height: 1.1;
}
.soon svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.soon small { display: block; font-size: 11px; color: var(--ink-2); letter-spacing: .02em; }
.soon b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge { display: inline-flex; height: 52px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.aurora {
  position: absolute; inset: -20% -10% auto; height: 120%;
  z-index: -1; pointer-events: none;
  filter: blur(70px) saturate(130%);
  opacity: .7;
}
.aurora span {
  position: absolute; border-radius: 50%;
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  mix-blend-mode: screen;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { left: -8%; top: 6%; background: radial-gradient(circle, rgba(204,125,196,.5), transparent 62%); }
.aurora span:nth-child(2) { right: -10%; top: -4%; background: radial-gradient(circle, rgba(96,188,217,.5), transparent 62%); animation-duration: 30s; animation-delay: -9s; }
.aurora span:nth-child(3) { left: 34%; top: 36%; background: radial-gradient(circle, rgba(140,150,255,.22), transparent 62%); animation-duration: 26s; animation-delay: -15s; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.15); }
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { display: grid; gap: 26px; }
.hero__copy .lede { max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-3); }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* The hero object is the app icon itself, breathing on the beat. */
.hero__visual { display: grid; place-items: center; }
.icon-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.icon-stage::before {
  content: ""; position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,125,196,.45), rgba(96,188,217,.28) 45%, transparent 70%);
  filter: blur(28px);
  animation: pulse calc(var(--beat) * 2) ease-in-out infinite;
}
.icon-stage__icon {
  position: relative;
  width: 62%; height: auto;
  border-radius: 22.37%;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset;
  animation: beat var(--beat) ease-out infinite;
}
@keyframes beat {
  0%   { transform: scale(1.012); }
  35%  { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(20,20,27,.9); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: hover 7s ease-in-out infinite;
}
.float-chip .key {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px;
  font-family: var(--font-round); font-weight: 800; font-size: 14px; color: #0a0a0c;
}
.float-chip .key--pink { background: var(--pink); }
.float-chip .key--cyan { background: var(--cyan); }
.float-chip:nth-of-type(1) { left: -2%; top: 12%; animation-delay: -1s; }
.float-chip:nth-of-type(2) { right: -4%; top: 66%; animation-delay: -3s; }
.float-chip:nth-of-type(3) { left: 2%; bottom: 8%; animation-delay: -5s; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .icon-stage { width: min(78vw, 340px); }
  .float-chip:nth-of-type(1) { left: -4%; top: 6%; }
  .float-chip:nth-of-type(2) { right: -6%; top: 76%; }
  .float-chip:nth-of-type(3) { left: -2%; bottom: -8%; }
}

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; background: var(--bg-2); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ticker__track span::after { content: "·"; margin-left: 48px; color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid; gap: 14px; align-content: start;
}
.step__n { font-family: var(--font-round); font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.step__n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* ---------- Notation strip ---------- */
.notation {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.note {
  padding: 22px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2);
  display: grid; gap: 6px; text-align: center;
}
.note__key {
  font-family: var(--font-round); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1;
  margin-inline: auto; padding: 8px 16px; border-radius: 12px; color: #0a0a0c; min-width: 84px;
}
.note__key--pink { background: var(--pink); }
.note__key--cyan { background: var(--cyan); }
.note__label { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 720px) { .notation { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid; gap: 14px; align-content: start;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card--2 { grid-column: span 2; }
.card--3 { grid-column: span 3; }
.card--6 { grid-column: span 6; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.ico svg { width: 22px; height: 22px; color: var(--cyan-hi); }
.card__art { margin-top: 8px; }

/* beat keeper illustration: four segments that fill over a phrase */
.segs { display: flex; gap: 8px; margin-top: 10px; }
.segs i {
  flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; position: relative;
}
.segs i::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: var(--grad);
  animation: fill calc(var(--beat) * 16) linear infinite;
}
.segs i:nth-child(1)::after { animation-delay: 0s; }
.segs i:nth-child(2)::after { animation-delay: calc(var(--beat) * 4); }
.segs i:nth-child(3)::after { animation-delay: calc(var(--beat) * 8); }
.segs i:nth-child(4)::after { animation-delay: calc(var(--beat) * 12); }
@keyframes fill {
  0%   { transform: scaleX(0); }
  25%  { transform: scaleX(1); }
  99%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
.count { display: flex; gap: 14px; font-family: var(--font-round); font-weight: 900; font-size: 22px; color: var(--ink-3); }
.count b { color: var(--ink); }

.ranges { display: grid; gap: 8px; margin-top: 6px; }
.ranges span {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.ranges span.is-on { border-color: var(--cyan); color: var(--ink); }
.ranges b { font-family: var(--font-round); font-weight: 800; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill {
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-2);
}
.pill.is-on { background: var(--ink); color: #0a0a0c; border-color: transparent; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--2, .card--3 { grid-column: span 1; }
  .card--6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card--6 { grid-column: span 1; }
}

/* ---------- Band ---------- */
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.band blockquote {
  margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.12;
  max-width: 22ch;
}
.band cite { display: block; margin-top: 18px; font-style: normal; color: var(--ink-2); max-width: 60ch; }

/* ---------- Privacy ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 8px; }
.trust h3 { font-size: 18px; font-weight: 700; }
.trust p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px solid var(--line-2); border-radius: 28px;
  text-align: center; display: grid; gap: 18px; justify-items: center;
  background: var(--bg-2);
}
.cta .aurora { opacity: .55; }
.cta__icon { width: 96px; height: auto; border-radius: 22.37%; box-shadow: var(--glow); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 44px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal__meta { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.prose { max-width: 72ch; margin-top: 36px; display: grid; gap: 14px; }
.prose h2 { font-size: 21px; font-weight: 700; margin-top: 18px; letter-spacing: -0.01em; }
.prose p, .prose address { color: var(--ink-2); font-style: normal; }
.prose a { color: var(--cyan-hi); }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--line-2); color: var(--ink-2); }
.reversed { direction: rtl; unicode-bidi: bidi-override; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
