/* ============================================================
   OwnFM landing page — self-contained styles (no dependencies)
   ============================================================ */

:root {
  --bg: #070a14;
  --bg-soft: #0d1222;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f6ff;
  --text-muted: #a5adc9;
  --text-dim: #7b849f;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #34d399;
  --blue: #60a5fa;
  --radius: 18px;
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75);
  --grad: linear-gradient(110deg, #a78bfa 0%, #22d3ee 48%, #f472b6 100%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="light"] {
  --bg: #f5f7ff;
  --bg-soft: #eef1fc;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(20, 24, 60, 0.1);
  --border-strong: rgba(20, 24, 60, 0.18);
  --text: #131833;
  --text-muted: #4d5677;
  --text-dim: #6b7391;
  --shadow: 0 24px 60px -30px rgba(40, 40, 90, 0.35);
  --grad: linear-gradient(110deg, #7c3aed 0%, #0891b2 50%, #db2777 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1140px, calc(100% - 44px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ================= animated background ================= */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(139, 92, 246, 0.12), transparent 55%),
    var(--bg);
}

html[data-theme="light"] .backdrop {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(139, 92, 246, 0.14), transparent 55%),
    var(--bg);
}

.aurora {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
  animation: float 20s ease-in-out infinite alternate;
}

.aurora--one {
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, #7c3aed, transparent 65%);
}

.aurora--two {
  top: 12vh;
  right: -16vw;
  background: radial-gradient(circle, #06b6d4, transparent 65%);
  animation-delay: -7s;
}

.aurora--three {
  top: 62vh;
  left: 22vw;
  background: radial-gradient(circle, #db2777, transparent 65%);
  animation-delay: -13s;
  opacity: 0.2;
}

html[data-theme="light"] .aurora {
  opacity: 0.16;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 4vh, 0) scale(1.15);
  }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 150, 200, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 200, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, var(--bg) 100%);
  opacity: 0.7;
}

/* ================= nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 18px rgba(139, 92, 246, 0.25);
}

.brand__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: url(#brandgrad);
  stroke: var(--violet);
  stroke-width: 2.4;
}

.brand__mark svg circle:last-child {
  stroke: var(--cyan);
}

.brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand__name span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links > a:not(.nav__cta) {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links > a:not(.nav__cta):hover {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  background-size: 180% 180%;
  box-shadow: 0 8px 24px -10px rgba(139, 92, 246, 0.9);
  transition: transform 0.2s, background-position 0.4s, box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 1);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset 5px -2px 0 0 var(--bg);
  transform: rotate(-20deg);
}

html[data-theme="light"] .theme-toggle__icon {
  box-shadow: none;
  background: var(--amber);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav__toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* ================= hero ================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding-block: 92px 72px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

.hero__title {
  margin: 24px 0 22px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.hero__subline {
  color: var(--text-muted);
  font-size: 0.82em;
  font-weight: 700;
}

.gradient-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 8s ease infinite;
}

@keyframes shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 30px;
}

.hero__lead em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  color: #fff;
  background: var(--grad);
  background-size: 180% 180%;
  box-shadow: 0 16px 40px -16px rgba(139, 92, 246, 0.95);
}

.btn--primary:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 22px 48px -16px rgba(139, 92, 246, 1);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 0.87rem;
  color: var(--text-dim);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---- player mockup ---- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.glow-ring {
  position: absolute;
  inset: 4% 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--pink), var(--violet));
  filter: blur(46px);
  opacity: 0.35;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-card {
  position: relative;
  width: min(100%, 400px);
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(28, 33, 60, 0.92), rgba(11, 14, 30, 0.96));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s ease;
}

html[data-theme="light"] .player-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 241, 252, 0.96));
}

.player-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-6px);
}

.player-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(244, 114, 182, 0.15);
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 1.6s infinite;
}

.player-card__station {
  color: var(--text);
}

.player-card__more {
  color: var(--text-dim);
  letter-spacing: 2px;
}

.player-card__art {
  position: relative;
  height: 210px;
  margin: 16px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.55), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(34, 211, 238, 0.45), transparent 55%),
    radial-gradient(circle at 60% 110%, rgba(244, 114, 182, 0.4), transparent 55%),
    #0b0f22;
}

.art__rings span {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 4s ease-out infinite;
}

.art__rings span:nth-child(1) { width: 90px; height: 90px; }
.art__rings span:nth-child(2) { width: 150px; height: 150px; animation-delay: 1s; }
.art__rings span:nth-child(3) { width: 220px; height: 220px; animation-delay: 2s; }
.art__rings span:nth-child(4) { width: 300px; height: 300px; animation-delay: 3s; }

@keyframes ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  40% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

.art__logo svg {
  width: 74px;
  height: 74px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.9));
  animation: logopulse 3s ease-in-out infinite;
}

.art__logo svg circle:last-child {
  stroke: #a5f3fc;
}

@keyframes logopulse {
  50% {
    filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.95));
    transform: scale(1.06);
  }
}

.equalizer {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}

.equalizer i {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  animation: eq 0.9s ease-in-out infinite alternate;
}

.equalizer i:nth-child(1) { height: 40%; animation-delay: -0.1s; }
.equalizer i:nth-child(2) { height: 80%; animation-delay: -0.4s; }
.equalizer i:nth-child(3) { height: 55%; animation-delay: -0.7s; }
.equalizer i:nth-child(4) { height: 95%; animation-delay: -0.2s; }
.equalizer i:nth-child(5) { height: 65%; animation-delay: -0.5s; }
.equalizer i:nth-child(6) { height: 35%; animation-delay: -0.8s; }
.equalizer i:nth-child(7) { height: 75%; animation-delay: -0.3s; }
.equalizer i:nth-child(8) { height: 50%; animation-delay: -0.6s; }
.equalizer i:nth-child(9) { height: 88%; animation-delay: -0.9s; }
.equalizer i:nth-child(10) { height: 45%; animation-delay: -0.15s; }
.equalizer i:nth-child(11) { height: 70%; animation-delay: -0.45s; }
.equalizer i:nth-child(12) { height: 30%; animation-delay: -0.75s; }

@keyframes eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.player-card__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.player-card__track {
  margin: 3px 0 1px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.player-card__artist {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.progress {
  height: 5px;
  margin-top: 16px;
  border-radius: 5px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 5px;
  background: var(--grad);
  animation: progress 12s linear infinite;
}

@keyframes progress {
  from { width: 6%; }
  to { width: 100%; }
}

.player-card__times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.player-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mode-tags {
  display: flex;
  gap: 6px;
}

.mode-tags span {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stream-url {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.float-chip strong {
  color: var(--text);
}

.float-chip__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  font-size: 0.85rem;
}

.float-chip--one {
  top: 16%;
  left: -2%;
  animation: bob 5s ease-in-out infinite;
}

.float-chip--two {
  right: -3%;
  bottom: 16%;
  animation: bob 6s ease-in-out infinite reverse;
}

.float-chip--two .float-chip__icon {
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ================= marquee ================= */
.marquee {
  padding-block: 10px 34px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.marquee__label {
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.marquee__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex-shrink: 0;
}

.marquee__inner span small {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  vertical-align: super;
}

.marquee__inner .sep {
  color: var(--violet);
  font-size: 0.8rem;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ================= sections ================= */
.section {
  padding-block: 92px 0;
}

.section__head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.section__lead {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}

.feature:hover::before {
  opacity: 0.85;
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature__icon--violet { color: var(--violet); background: rgba(139, 92, 246, 0.14); }
.feature__icon--cyan { color: var(--cyan); background: rgba(34, 211, 238, 0.14); }
.feature__icon--pink { color: var(--pink); background: rgba(244, 114, 182, 0.14); }
.feature__icon--amber { color: var(--amber); background: rgba(251, 191, 36, 0.14); }
.feature__icon--green { color: var(--green); background: rgba(52, 211, 153, 0.14); }
.feature__icon--blue { color: var(--blue); background: rgba(96, 165, 250, 0.14); }

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---- two modes ---- */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mode-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.mode-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.mode-card__body {
  padding: 30px;
}

.mode-card__tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mode-card--broadcast .mode-card__tag {
  color: var(--violet);
  background: rgba(139, 92, 246, 0.14);
}

.mode-card--personal .mode-card__tag {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.14);
}

.mode-card h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.mode-card p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mode-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mode-card li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 800;
}

.mode-card code {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--cyan);
}

.mode-card__art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.22), transparent 65%),
    rgba(0, 0, 0, 0.12);
}

.mode-card--personal .mode-card__art {
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.2), transparent 65%),
    rgba(0, 0, 0, 0.12);
}

.listeners {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.waves {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 120px;
}

.waves span {
  width: 8px;
  border-radius: 8px;
  background: linear-gradient(to top, var(--violet), var(--pink));
  animation: wavebar 1.4s ease-in-out infinite alternate;
}

.waves span:nth-child(1) { height: 35%; animation-delay: -0.2s; }
.waves span:nth-child(2) { height: 75%; animation-delay: -0.6s; }
.waves span:nth-child(3) { height: 100%; animation-delay: -1s; }
.waves span:nth-child(4) { height: 62%; animation-delay: -0.4s; }
.waves span:nth-child(5) { height: 42%; animation-delay: -0.8s; }

@keyframes wavebar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.orbit {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 50%;
}

.orbit__core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.orbit__p {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}

.orbit__p:nth-child(2) { top: -5px; left: 50%; }
.orbit__p:nth-child(3) { bottom: 12px; left: 6px; }
.orbit__p:nth-child(4) { bottom: 12px; right: 6px; }

/* ---- steps + arch ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.step {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  height: 100%;
}

.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step__arrow {
  color: var(--violet);
  font-size: 1.5rem;
  opacity: 0.6;
}

.arch {
  margin-top: 26px;
  padding: 30px;
  border-radius: 22px;
  border: 1px dashed var(--border-strong);
  background: rgba(139, 92, 246, 0.04);
  text-align: center;
}

.arch__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.arch__node {
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.arch__node small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.arch__node--core {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.14));
  box-shadow: 0 0 34px -12px var(--violet);
}

.arch__node--dim {
  color: var(--text-dim);
}

.arch__line {
  color: var(--violet);
  margin: 10px 0;
  opacity: 0.7;
}

/* ---- quick start ---- */
.quickstart {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 46px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--surface);
}

.quickstart__copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.quickstart__copy p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cyan);
}

.text-link:hover {
  gap: 12px;
}

.terminal {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #080b16;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal__dot:nth-child(2) { background: #febc2e; }
.terminal__dot:nth-child(3) { background: #28c840; }

.terminal__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.copy-btn {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
}

.terminal pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: #d7def5;
}

.terminal .c { color: #6f7b9c; }
.terminal .k { color: #c084fc; }

/* ---- CTA ---- */
.cta {
  padding-block: 100px;
}

.cta__inner {
  position: relative;
  overflow: hidden;
  padding: 70px 40px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(139, 92, 246, 0.28), transparent 60%),
    linear-gradient(140deg, rgba(30, 27, 65, 0.9), rgba(10, 18, 40, 0.9));
  text-align: center;
}

html[data-theme="light"] .cta__inner {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(139, 92, 246, 0.18), transparent 60%),
    linear-gradient(140deg, #eef0ff, #e2f4fa);
}

.cta__glow {
  position: absolute;
  top: -60%;
  left: 50%;
  width: 70%;
  height: 160%;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, 0.15), transparent 40%, rgba(244, 114, 182, 0.15), transparent 70%);
  filter: blur(40px);
  animation: spin 22s linear infinite;
  pointer-events: none;
}

.cta .eyebrow,
.cta h2,
.cta > .cta__inner > p:not(.eyebrow),
.cta__actions {
  position: relative;
}

.cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.cta__inner > p:not(.eyebrow) {
  margin: 18px auto 28px;
  color: var(--text-muted);
  max-width: 540px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
}

/* ================= footer ================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 75%, transparent);
  padding-top: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer__brand p {
  max-width: 320px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__license {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__col a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__bottom p {
  margin: 0;
}

.back-to-top {
  color: var(--text-muted);
}

.back-to-top:hover {
  color: var(--cyan);
}

/* ================= reveal animation ================= */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================= responsive ================= */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 64px;
  }
  .hero__copy {
    text-align: center;
    margin-inline: auto;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__meta {
    justify-content: center;
  }
  .player-card {
    transform: none;
  }
  .player-card:hover {
    transform: translateY(-6px);
  }
  .float-chip--one { left: 2%; }
  .float-chip--two { right: 2%; }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step__arrow {
    transform: rotate(90deg);
    text-align: center;
  }
  .quickstart {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 20px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav__cta {
    margin-top: 12px;
    justify-content: center;
  }
  .theme-toggle {
    margin: 12px 0 0;
    justify-self: center;
  }
  .nav__toggle {
    display: flex;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .mode-card {
    grid-template-columns: 1fr;
  }
  .mode-card__art {
    min-height: 180px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .section,
  .cta {
    padding-block: 66px 0;
  }
  .cta {
    padding-bottom: 66px;
  }
  .cta__inner {
    padding: 48px 22px;
  }
  .float-chip {
    display: none;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
