@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0e0c12;
  --bg-deep: #08070a;
  --panel: #17121c;
  --panel-soft: #211927;
  --line: rgba(247, 240, 232, 0.12);
  --line-strong: rgba(247, 240, 232, 0.22);
  --text: #f7f0e8;
  --muted: #b9adb8;
  --faint: #817580;
  --accent: #ff6b35;
  --accent-bright: #ff9a5e;
  --mint: #35e0a1;
  --pink: #ff5b9e;
  --gold: #ffc24b;
  --blue: #4fc8f5;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --content: 1180px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #faf5ee;
  --bg-deep: #f3ebe0;
  --panel: #fffaf4;
  --panel-soft: #f0e4d7;
  --line: rgba(25, 17, 21, 0.12);
  --line-strong: rgba(25, 17, 21, 0.22);
  --text: #191115;
  --muted: #66565d;
  --faint: #817077;
  --accent: #c33f0c;
  --accent-bright: #ed5a20;
  --mint: #0b7a57;
  --pink: #bc1259;
  --gold: #95620a;
  --blue: #04688f;
  --shadow: 0 28px 70px rgba(59, 33, 20, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 107, 53, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(124, 72, 255, 0.12), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-140%);
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.desktop-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 150ms ease, background 150ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--panel-soft);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.icon-button:hover,
.menu-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.theme-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.menu-button {
  display: none;
}

.mobile-panel {
  display: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff7f1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.18);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.28);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--panel-soft);
}

.button.small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.82rem;
}

.arrow {
  transition: transform 150ms ease;
}

a:hover .arrow,
button:hover .arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-bright);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7.4vw, 6.9rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: 64px;
}

.hero-copy h1 em {
  color: var(--accent-bright);
  font-style: normal;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px color-mix(in srgb, var(--mint) 70%, transparent);
  content: "";
}

.studio-console {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 107, 53, 0.2), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.studio-console::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.7%, var(--line) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, var(--line) 50%, transparent 50.3%);
  background-size: 80px 80px;
  content: "";
  opacity: 0.34;
}

.console-head,
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-label {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

.pulse-stage {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
}

.orbit,
.pulse-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  border: 1px solid var(--line);
}

.orbit.one {
  width: 276px;
  height: 276px;
}

.orbit.two {
  width: 210px;
  height: 210px;
  border-style: dashed;
  animation: spin 18s linear infinite;
}

.orbit.three {
  width: 152px;
  height: 152px;
}

.pulse-core {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: 0 0 0 18px rgba(255, 107, 53, 0.08), 0 0 70px rgba(255, 107, 53, 0.35);
  cursor: pointer;
  user-select: none;
  transition: transform 100ms ease;
}

.pulse-core.is-beat {
  animation: beat 320ms ease-out;
}

.pulse-core:active {
  transform: scale(0.94);
}

.beat-nodes {
  position: absolute;
  inset: 0;
}

.beat-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid var(--panel);
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.beat-node:nth-child(1) { top: 28px; left: calc(50% - 9px); }
.beat-node:nth-child(2) { top: calc(50% - 9px); right: 28px; }
.beat-node:nth-child(3) { bottom: 28px; left: calc(50% - 9px); }
.beat-node:nth-child(4) { top: calc(50% - 9px); left: 28px; }

.beat-node.active {
  transform: scale(1.22);
  background: var(--accent-bright);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

.tempo-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.tempo-slider {
  width: 54%;
  accent-color: var(--accent);
}

.wave-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding-inline: 16px;
  opacity: 0.72;
}

.wave-strip i {
  width: 3px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.hero-marquee {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-marquee div {
  width: max-content;
  padding: 10px 0;
  animation: marquee 28s linear infinite;
}

.hero-marquee b {
  margin: 0 18px;
  color: var(--accent);
}

.stat-band {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}

.stat:last-child {
  border-right: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.section {
  padding: 120px 0;
}

.section.compact {
  padding: 84px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}

.split-heading h2,
.split-heading p {
  margin-bottom: 0;
}

.split-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.feature-card.large {
  grid-column: span 7;
}

.feature-card.small {
  grid-column: span 5;
}

.feature-card.tint-orange {
  background: linear-gradient(150deg, rgba(255, 107, 53, 0.19), transparent 60%), var(--panel);
}

.feature-card.tint-mint {
  background: linear-gradient(150deg, rgba(53, 224, 161, 0.12), transparent 60%), var(--panel);
}

.feature-card.tint-purple {
  background: linear-gradient(150deg, rgba(183, 156, 255, 0.14), transparent 60%), var(--panel);
}

.feature-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

.feature-card p {
  max-width: 500px;
  color: var(--muted);
}

.mini-bars {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  height: 48px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: color-mix(in srgb, var(--accent) 75%, var(--panel));
  opacity: var(--o, 1);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #2e1818, #1c1432 62%, #111c24);
  color: #f7f0e8;
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.03), 0 0 0 100px rgba(255, 255, 255, 0.02);
  content: "";
}

.cta-panel h2 {
  max-width: 740px;
}

.cta-panel p {
  max-width: 590px;
  color: #c8bec6;
}

.cta-panel .hero-actions {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 70px 0 26px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
}

/* Interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  top: -340px;
  right: -260px;
  width: 680px;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 107, 53, 0.025), 0 0 0 160px rgba(183, 156, 255, 0.018);
  content: "";
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--accent-bright);
}

.breadcrumbs span[aria-hidden] {
  opacity: 0.5;
}

.visual-stage {
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.visual-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 72px);
}

.visual-copy p {
  color: var(--muted);
}

.visual-copy .big-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.visual-image {
  position: relative;
  min-height: 420px;
  background: #17111f;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--panel), transparent 20%);
  content: "";
  pointer-events: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chip {
  min-height: 40px;
  background: var(--panel);
  cursor: pointer;
}

.chip:hover,
.chip.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card .card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-bright);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  counter-increment: process;
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list li::before {
  color: var(--accent-bright);
  content: "0" counter(process);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.process-list h3 {
  margin-bottom: 8px;
}

.process-list p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mode-card {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.mode-card:nth-child(2) { --mode-color: var(--pink); }
.mode-card:nth-child(3) { --mode-color: var(--gold); }
.mode-card:nth-child(4) { --mode-color: var(--mint); }
.mode-card:nth-child(5) { --mode-color: #b79cff; }
.mode-card:nth-child(6) { --mode-color: var(--blue); }

.mode-art {
  position: relative;
  height: 184px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--mode-color, var(--accent)) 10%, var(--panel));
}

.mode-art::before,
.mode-art::after {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid color-mix(in srgb, var(--mode-color, var(--accent)) 55%, transparent);
  border-radius: 50%;
  content: "";
}

.mode-art::after {
  width: 110px;
  height: 110px;
  border-style: dashed;
}

.mode-symbol {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mode-color, var(--accent));
  color: #0e0c12;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 0 45px color-mix(in srgb, var(--mode-color, var(--accent)) 45%, transparent);
}

.mode-copy {
  flex: 1;
  padding: 28px;
}

.mode-copy .mode-index {
  display: block;
  margin-bottom: 12px;
  color: var(--mode-color, var(--accent-bright));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mode-copy p {
  color: var(--muted);
}

.mode-copy .instruction {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.genre-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.genre-card::after {
  position: absolute;
  right: -28px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 18px solid var(--genre-color, var(--accent));
  border-radius: 50%;
  content: "";
  opacity: 0.12;
}

.genre-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.genre-card p {
  max-width: 230px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.genre-card .genre-dot {
  width: 10px;
  height: 10px;
  display: block;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--genre-color, var(--accent));
  box-shadow: 0 0 16px var(--genre-color, var(--accent));
}

.filter-bar {
  position: sticky;
  z-index: 20;
  top: 92px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.filter-label {
  margin: 0 8px;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.exercise-card {
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.exercise-card[hidden] {
  display: none;
}

.exercise-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.exercise-category {
  color: var(--category-color, var(--accent-bright));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exercise-bpm {
  color: var(--faint);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.pattern {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.pattern i {
  width: 6px;
  height: 20px;
  border-radius: 99px;
  background: var(--line-strong);
}

.pattern i.hit {
  height: 30px;
  background: var(--category-color, var(--accent));
}

.result-note {
  display: none;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.result-note.show {
  display: block;
}

.quote-panel {
  padding: clamp(38px, 7vw, 78px);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--panel);
}

.quote-panel blockquote {
  max-width: 850px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.quote-panel p {
  margin: 26px 0 0;
  color: var(--muted);
}

.company-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.company-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-facts div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts dt {
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.company-facts dd {
  margin: 0;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
}

.contact-stack {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: transform 150ms ease, border-color 150ms ease;
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
}

.support-form {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.form-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.support-form .button {
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.faq-list summary {
  padding: 20px 34px 20px 0;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  float: right;
  margin-right: -28px;
  color: var(--accent-bright);
  content: "+";
  font-size: 1.3rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 850px;
  margin: 0 0 22px;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 780px);
  align-items: start;
  justify-content: space-between;
  gap: 80px;
}

.legal-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 4px;
}

.legal-nav strong {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--text);
}

.legal-copy .updated {
  margin-bottom: 38px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-copy h2 {
  margin-top: 54px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.legal-copy h3 {
  margin-top: 34px;
  font-size: 1.2rem;
}

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

.legal-copy a:not(.button) {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 1.25rem;
}

.legal-copy li {
  margin-bottom: 10px;
}

.notice {
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.notice strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
}

.notice p {
  margin-bottom: 0;
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.legal-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.legal-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.legal-card span {
  color: var(--accent-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-soft);
  font-family: "Space Grotesk", sans-serif;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.error-page {
  min-height: calc(100svh - 82px);
  display: grid;
  place-items: center;
  padding: 70px 0;
  text-align: center;
}

.error-code {
  margin-bottom: 24px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(7rem, 24vw, 16rem);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.08em;
  opacity: 0.35;
}

.error-page .lead {
  margin-inline: auto;
}

.error-page .hero-actions {
  justify-content: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.65fr);
  gap: 40px;
  padding-bottom: 56px;
}

.footer-intro {
  max-width: 340px;
}

.footer-intro p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.76rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes beat {
  0% { transform: scale(1); }
  18% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .desktop-nav,
  .nav-actions .button {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .mobile-panel {
    position: fixed;
    z-index: 90;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    gap: 8px;
    padding: 18px 20px 26px;
    transform: translateY(-130%);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .menu-open .mobile-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
  }

  .mobile-panel a[aria-current="page"],
  .mobile-panel a:hover {
    background: var(--panel);
    color: var(--text);
  }

  .mobile-panel .button {
    margin-top: 8px;
    color: white;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .studio-console {
    width: min(100%, 580px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .feature-card.large,
  .feature-card.small {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(2, 0.8fr);
  }

  .footer-col:last-child {
    grid-column: 2;
  }

  .content-grid,
  .genre-grid,
  .exercise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-stage,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .visual-image::after {
    background: linear-gradient(0deg, var(--panel), transparent 18%);
  }

  .legal-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 44px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-wrap {
    min-height: 72px;
  }

  .brand-copy span {
    display: none;
  }

  .mobile-panel {
    top: 72px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 96px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .studio-console {
    min-height: 470px;
    padding: 20px;
    border-radius: 26px;
  }

  .pulse-stage {
    height: 295px;
    transform: scale(0.9);
  }

  .console-foot {
    align-items: end;
    flex-wrap: wrap;
  }

  .tempo-slider {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 26px 18px;
  }

  .section {
    padding: 84px 0;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-card.large,
  .feature-card.small {
    grid-column: 1 / -1;
  }

  .feature-card {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 62px 0 54px;
  }

  .content-grid,
  .mode-grid,
  .genre-grid,
  .exercise-grid,
  .legal-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 0;
  }

  .visual-stage {
    min-height: 0;
  }

  .visual-copy {
    min-height: 370px;
  }

  .visual-image {
    min-height: 280px;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }

  .filter-bar {
    top: 80px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .chip,
  .filter-label {
    flex: 0 0 auto;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-nav strong {
    grid-column: 1 / -1;
  }

  .legal-nav a {
    border-left: 0;
    border-bottom: 2px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
