:root {
  --bg: #0b0b0d;
  --bg-elev: #121216;
  --surface: #16161a;
  --surface-2: #1c1c22;
  --text: #f4f1ea;
  --muted: #a39e93;
  --line: rgba(255, 255, 255, 0.1);
  --yellow: #f7ec08;
  --yellow-dim: #c4b806;
  --yellow-ink: #14140a;
  --cyan: #4fd2e8;
  --orange: #f2a03a;
  --header-h: 4.25rem;
  --wrap: 70rem;
  --radius: 1rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(60rem 32rem at 82% -8%, rgba(247, 236, 8, 0.08), transparent 55%),
    radial-gradient(42rem 28rem at 0% 72%, rgba(79, 210, 232, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.55rem 0.85rem;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 11, 13, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: var(--header-h);
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.45rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 50%;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.brand-name {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.25;
}

.brand-name:hover {
  color: var(--yellow);
}

.nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 50;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(247, 236, 8, 0.55);
  border-radius: 0.55rem;
  background: #1c1c22;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

body.nav-open {
  overflow: hidden;
}

.nav-toggle-bar {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--text);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.6rem 1rem 1rem;
  background: rgba(11, 11, 13, 0.97);
  border-bottom: 1px solid var(--line);
}

body.nav-open .site-nav {
  display: flex;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .btn-nav {
  margin-top: 0.75rem;
  border-bottom: 0;
}

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

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
    margin-left: auto;
    background: transparent;
    border-bottom: 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0;
    border-bottom: 0;
  }

  .site-nav .btn-nav {
    margin-top: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.btn-primary:hover {
  background: #fff36a;
  color: var(--yellow-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(247, 236, 8, 0.55);
}

.btn-nav {
  min-height: 2.4rem;
  padding-inline: 1rem;
  font-size: 0.92rem;
}

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero {
  position: relative;
  padding: 3.6rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.hello {
  margin: 0 0 1.05rem;
  color: var(--text);
  font-size: 1.08rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.blurb {
  margin: 1.6rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  width: 116%;
  height: 7rem;
  opacity: 0.35;
  pointer-events: none;
}

.phase-line {
  transform-box: fill-box;
  transform-origin: center;
  animation: phase 7s linear infinite;
}

@keyframes phase {
  from { transform: translateX(0); }
  to { transform: translateX(28rem); }
}

.module-frame {
  position: relative;
  margin-inline: auto;
  width: min(100%, 22.5rem);
  padding: 0.85rem 0.75rem 1.4rem;
  background: linear-gradient(180deg, #242428, #121214 55%, #0e0e10);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.35rem;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(247, 236, 8, 0.08);
}

.module-frame::before,
.module-frame::after {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9a9aa3, #3a3a40 55%, #1a1a1c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.module-frame::before { top: 0.45rem; left: 0.45rem; }
.module-frame::after { top: 0.45rem; right: 0.45rem; }

.module-screws {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  height: 0.55rem;
  pointer-events: none;
}

.module-screws::before,
.module-screws::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9a9aa3, #3a3a40 55%, #1a1a1c);
}

.module-screws::before { left: 0; }
.module-screws::after { right: 0; }

.module-frame img {
  width: 100%;
  border-radius: 0.15rem;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.35rem 1.3rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 236, 8, 0.28);
}

.card h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--surface-2);
}

.card-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.card-wave { color: var(--cyan); }
.card-live { color: var(--orange); }
.card-rack { color: var(--yellow); }

.yt-facade {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  aspect-ratio: 16 / 9;
  max-height: 32rem;
  background: #000;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
}

.yt-facade picture,
.yt-facade img,
.yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.yt-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.04), rgba(11, 11, 13, 0.38));
  color: var(--yellow);
  text-decoration: none;
  cursor: pointer;
}

.yt-play:hover,
.yt-play:focus-visible {
  color: var(--yellow);
}

.yt-play .play-mark {
  margin: 0;
  width: 5rem;
  height: 5rem;
  background: rgba(11, 11, 13, 0.78);
  border-color: rgba(247, 236, 8, 0.75);
}

.yt-consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  overflow: auto;
  text-align: center;
  background: rgba(11, 11, 13, 0.9);
}

.yt-consent[hidden],
.yt-play[hidden] {
  display: none;
}

.yt-consent p {
  margin: 0;
  max-width: 38rem;
  color: var(--text);
  font-size: 0.95rem;
}

.play-mark {
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid rgba(247, 236, 8, 0.35);
  background: rgba(11, 11, 13, 0.55);
  color: var(--yellow);
}

.play-mark svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.15rem;
}

.yt-play .play-mark svg {
  width: 1.85rem;
  height: 1.85rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.updates-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
}

.notice {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(247, 236, 8, 0.12);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ghost-form {
  display: grid;
  gap: 0.75rem;
}

.ghost-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.ghost-form input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
}

.fine-print {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 2.4rem 0 2.6rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  align-items: flex-start;
}

.footer-brand {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.legal-page {
  padding: 3rem 0 4.5rem;
}

.legal-page h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
}

.legal-page h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-copy {
  max-width: 42rem;
  color: var(--muted);
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy strong {
  color: var(--text);
  font-weight: 650;
}

.legal-lang {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: var(--yellow-ink);
}

.legal-page h2.legal-title {
  color: var(--text);
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

/* Jump targets sit below the sticky header, with the first line fully visible */
#privacy-de,
#privacy-en,
#youtube,
#demo,
#features,
#arpegizer {
  scroll-margin-top: 6.5rem;
}

.tagline {
  margin: 0 0 1.4rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-sep {
  display: inline-block;
  margin: 0 0.6em;
  color: #6f6c66;
  font-weight: 400;
}

.btn.is-dead,
.btn.is-dead:hover {
  cursor: default;
  transform: none;
}

.paste-slot {
  margin: 1rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(247, 236, 8, 0.35);
  border-radius: 0.8rem;
  background: rgba(247, 236, 8, 0.04);
}

.paste-slot code,
.paste-hint {
  display: block;
  margin-top: 0.6rem;
  color: var(--yellow-dim);
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.error-page {
  min-height: calc(100vh - 12rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-size: 2.4rem;
}

.error-page p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .feature-grid,
  .updates-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .module-frame {
    width: min(100%, 19rem);
  }

  .brand {
    max-width: calc(100% - 3.6rem);
  }

  .yt-consent p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phase-line { animation: none; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
