:root {
  color-scheme: dark;
  --black: #000000;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --dim: rgba(255, 255, 255, 0.4);
  --red: #ef4444;
  --red-hot: #ff2d2d;
  --border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header--home {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

nav,
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-nav .logo {
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 1100px) {
  .nav-links {
    gap: 1.35rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  animation: nav-strobe 620ms steps(2, end) 4;
}

.nav-cta-flash:hover,
.nav-cta-flash:focus-visible {
  animation: nav-strobe 620ms steps(2, end) 4;
}

@keyframes nav-strobe {
  0%,
  49.9% {
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
  }

  50%,
  99.9% {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  }
}

.nav-cta[aria-current='page'] {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  animation: nav-strobe 620ms steps(2, end) 4;
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta-flash:hover,
  .btn-ghost.btn-flash-hover:hover,
  .btn-ghost.btn-flash-hover:focus-visible {
    animation: none;
  }
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hot);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 2rem;
}

.page-main {
  padding: 3rem 0 4rem;
}

.get-app-section {
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

.store-badge-btn {
  margin-top: 0.5rem;
}

.store-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--dim);
}

.waitlist-section--android {
  max-width: 32rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.waitlist-section--android h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.beta-callout {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.beta-callout-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.beta-callout-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.beta-callout-steps li + li {
  margin-top: 0.35rem;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--dim);
}

.field-optional {
  font-weight: 500;
  color: var(--dim);
}

.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.field textarea:focus {
  outline: 2px solid rgba(239, 68, 68, 0.45);
  outline-offset: 1px;
}

.cta-row--center {
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.store-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.store-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.store-cta--center,
.store-cta-block--center {
  align-items: center;
}

.store-cta-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cta-pair--center {
  justify-content: center;
}

.btn-cta-pair {
  height: 52px;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 8px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.app-store-badge--lg img {
  height: 52px;
}

.waitlist-section {
  max-width: 520px;
}

.waitlist-form {
  display: grid;
  gap: 1.25rem;
}

.field label,
.field legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field legend {
  margin-bottom: 0.65rem;
}

.field input[type='email'],
.field input[type='text'],
.field input[type='url'] {
  width: 100%;
  min-height: 48px;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font: inherit;
}

.field input[type='email']:focus,
.field input[type='text']:focus,
.field input[type='url']:focus {
  outline: none;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.platform-options {
  display: grid;
  gap: 0.55rem;
}

.platform-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.platform-option:has(input:checked) {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
  color: var(--white);
}

.platform-option input {
  accent-color: var(--red);
}

.consent-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.5;
  cursor: pointer;
}

.consent-label input {
  margin-top: 0.2rem;
  accent-color: var(--red);
  flex-shrink: 0;
}

.waitlist-status {
  min-height: 1.25rem;
  font-size: 0.88rem;
  margin: 0;
}

.waitlist-status.ok {
  color: #86efac;
}

.waitlist-status.err {
  color: #fca5a5;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.back-link {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--white);
}

/* Squad Sounds */
.sounds-page {
  max-width: 960px;
}

.sounds-lead {
  max-width: 42rem;
}

.sounds-listen {
  margin-bottom: 2rem;
}

.sounds-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.sounds-layout__main {
  min-width: 0;
}

.sounds-curator-line--main {
  margin-top: 1.25rem;
}

.sounds-player {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.sounds-player__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sounds-player__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.sounds-player__now {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sounds-player__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.sounds-player__btn {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  cursor: pointer;
}

.sounds-player__btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.sounds-player__btn--play {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(239, 68, 68, 0.45);
}

.sounds-player__btn:hover,
.sounds-player__btn:focus-visible {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.35);
}

.sounds-player__meta {
  min-width: 0;
  flex: 1;
}

.sounds-player__track-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sounds-player__track-user {
  display: inline-block;
  margin-top: 0.15rem;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.sounds-player__track-user:hover {
  text-decoration: underline;
}

.sounds-player__scrub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sounds-player__time {
  flex-shrink: 0;
  width: 2.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  text-align: center;
}

.sounds-player__progress {
  position: relative;
  flex: 1;
  height: 1.15rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.sounds-player__progress-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.sounds-player__progress-fill {
  position: absolute;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 999px;
  background: var(--red);
  pointer-events: none;
}

.sounds-player__progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sounds-player__tracks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
  padding-right: 0.15rem;
}

.sounds-player__track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--white);
}

.sounds-player__track:hover,
.sounds-player__track:focus-within {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.sounds-player__track.is-active {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(127, 29, 29, 0.28);
}

.sounds-player__track-play {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.sounds-player__track-play:hover,
.sounds-player__track-play:focus-visible {
  outline: none;
}

.sounds-player__track-index {
  flex-shrink: 0;
  width: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dim);
  padding-top: 0.1rem;
}

.sounds-player__track-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sounds-player__track-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sounds-player__track-artist {
  flex-shrink: 0;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fca5a5;
  text-decoration: none;
}

.sounds-player__track-artist:hover {
  text-decoration: underline;
}

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

@media (min-width: 900px) {
  .sounds-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: 2.5rem;
  }

  .sounds-player {
    position: sticky;
    top: 5.5rem;
  }

  .sounds-submit--solo {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.sounds-listen__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.sounds-embed iframe {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
}

.sounds-embed,
.sounds-embed-placeholder {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.sounds-embed-placeholder {
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sounds-embed-placeholder p {
  margin: 0 0 0.65rem;
}

.sounds-embed-placeholder p:last-child {
  margin-bottom: 0;
}

.sounds-curator-line {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.sounds-curator-line a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.sounds-curator-line a:hover {
  text-decoration: underline;
}

.sounds-play-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--dim);
}

.sounds-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.sounds-note {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 2rem;
}

.sounds-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sounds-note a {
  color: #fca5a5;
  font-weight: 600;
  text-decoration: none;
}

.sounds-note a:hover {
  text-decoration: underline;
}

.sounds-submit--solo {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.sounds-submit--solo h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
}

@media (min-width: 800px) {
  .sounds-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.sounds-submit h2,
.sounds-setup h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
}

.sounds-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.sounds-copy--dim {
  font-size: 0.85rem;
  color: var(--dim);
  margin-bottom: 0;
}

.sounds-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  display: grid;
  gap: 0.85rem;
}

.sounds-steps strong {
  color: var(--white);
}

.sounds-steps code {
  font-size: 0.82rem;
  color: #fecaca;
}

.sounds-teaser {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.sounds-teaser h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 auto 0.65rem;
  max-width: 36rem;
  text-align: center;
}

.sounds-teaser p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  line-height: 1.55;
}

.sounds-teaser-note {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.5;
}

.sounds-embed--site-player {
  padding: 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sounds-embed--site-player p {
  margin: 0 0 0.65rem;
}

.sounds-embed--site-player p:last-child {
  margin-bottom: 0;
}

.sounds-embed--site-player a {
  color: #fca5a5;
  font-weight: 600;
  text-decoration: none;
}

.sounds-embed--site-player a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--dim);
}

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

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

@keyframes strobe-pulse {
  0%,
  49.9% {
    box-shadow:
      inset 0 0 0 1px rgba(239, 68, 68, 0.5),
      0 0 14px rgba(239, 68, 68, 0.18);
  }
  50%,
  99.9% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.35),
      0 0 14px rgba(255, 255, 255, 0.1);
  }
}

.strobe-target:hover {
  animation: strobe-pulse 680ms steps(2, end) 3;
}

.strobe-target:active {
  animation: strobe-pulse 480ms steps(2, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .strobe-target:hover,
  .strobe-target:active {
    animation: none !important;
  }
}
