:root {
  --ink: #11131a;
  --soft-ink: #303743;
  --muted: #737b89;
  --page: #f6f7fb;
  --white: #ffffff;
  --line: rgba(17, 19, 26, 0.09);
  --teal: #2ac7d8;
  --blue: #427dff;
  --deep-blue: #171c36;
  --coral: #ff6f61;
  --lilac: #a99bf7;
  --lime: #d8f572;
  --glass: rgba(255, 255, 255, 0.72);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-weight: 450;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(42, 199, 216, 0.34);
  outline-offset: 3px;
}

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

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 12px clamp(18px, 4vw, 58px);
  color: rgba(16, 17, 20, 0.82);
  background: rgba(250, 251, 255, 0.74);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border-radius: 7px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  font-weight: 680;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

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

.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  justify-content: flex-end;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  width: min(100%, 620px);
  margin: 0 auto;
}

.primary-button,
.ghost-button,
.tune-button,
.secondary-link,
.handle-control button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 620;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, #216bff, #16bfd1);
  box-shadow: 0 12px 28px rgba(33, 107, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.tune-button:hover,
.secondary-link:hover,
.handle-control button:hover,
.sound-grid button:hover {
  transform: translateY(-1px);
}

.primary-button.large,
.ghost-button.large {
  min-height: 48px;
  padding: 0 24px;
}

.primary-button.full,
.ghost-button.full {
  width: 100%;
}

.ghost-button,
.secondary-link {
  color: #285bd6;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(40, 91, 214, 0.16);
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 32px;
  min-height: 100vh;
  padding: 118px clamp(18px, 5vw, 72px) 54px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(42, 199, 216, 0.2), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(255, 111, 97, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 66%, #ffffff 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(1180px, 112vw);
  height: 190px;
  border: 1px solid rgba(42, 199, 216, 0.2);
  border-color: rgba(42, 199, 216, 0.2) transparent transparent transparent;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::before {
  top: 41%;
  animation: drift-wave 9s ease-in-out infinite;
}

.hero::after {
  top: 45%;
  border-color: rgba(255, 111, 97, 0.16) transparent transparent transparent;
  animation: drift-wave 11s ease-in-out infinite reverse;
}

@keyframes drift-wave {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scaleX(1);
  }
  50% {
    transform: translateX(-50%) translateY(14px) scaleX(1.04);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: #596473;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 136px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 720;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--soft-ink);
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 520;
  line-height: 1.24;
}

.product-stage {
  position: relative;
  width: min(1120px, 100%);
  aspect-ratio: 16 / 8.4;
  padding: clamp(9px, 1.6vw, 18px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, rgba(42, 199, 216, 0.34), rgba(66, 125, 255, 0.2), rgba(255, 111, 97, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: 0 32px 85px rgba(32, 45, 72, 0.16);
  transform: translateZ(0);
}

.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(16, 17, 20, 0.12);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 650;
  animation: floaty 4.5s ease-in-out infinite;
}

.chip-live {
  top: 9%;
  left: 7%;
}

.chip-listeners {
  right: 8%;
  top: 18%;
  animation-delay: 400ms;
}

.chip-check {
  right: 15%;
  bottom: 9%;
  animation-delay: 800ms;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.signal-row span {
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 999px;
  font-size: 14px;
}

.signal-row strong {
  color: var(--ink);
  font-weight: 680;
}

.auth-strip,
.section {
  padding: 82px clamp(18px, 5vw, 72px);
}

.auth-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--white);
  color: var(--ink);
}

.auth-strip h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 680;
}

.handle-form {
  padding: 24px;
  background: rgba(247, 249, 253, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(31, 45, 71, 0.06);
}

.handle-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 620;
}

.handle-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius);
}

.handle-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 560;
}

.handle-control button,
.tune-button {
  color: var(--white);
  background: var(--deep-blue);
}

#handle-result {
  margin: 10px 0 0;
  color: #35716f;
  font-weight: 560;
}

.section {
  background: var(--page);
}

.section:nth-of-type(odd) {
  background: var(--white);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) repeat(3, minmax(180px, 0.75fr));
  gap: 18px;
  align-items: stretch;
}

.live-grid.is-empty {
  grid-template-columns: 1fr;
}

.station-card,
.empty-live,
.creator-panel,
.console,
.identity-grid article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(31, 45, 71, 0.07);
}

.station-card {
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.empty-live {
  min-height: 260px;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.empty-live h3 {
  max-width: 560px;
  margin: 16px 0 8px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

.empty-live p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.featured-station {
  min-height: 390px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(42, 199, 216, 0.38), transparent 30%),
    radial-gradient(circle at 18% 86%, rgba(255, 111, 97, 0.3), transparent 30%),
    linear-gradient(135deg, #121728, #17284b 58%, #253754);
}

.station-visual {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px),
    radial-gradient(circle at center, rgba(42, 199, 216, 0.2), transparent 55%),
    rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.live-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--white);
  background: #ff3b30;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.equalizer,
.vu-meter {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 82px;
}

.equalizer span,
.vu-meter span {
  display: block;
  width: 12px;
  min-height: 18px;
  background: linear-gradient(180deg, var(--teal), #7df2ff);
  border-radius: 999px;
  animation: pulse 900ms ease-in-out infinite alternate;
}

.equalizer span:nth-child(2),
.vu-meter span:nth-child(2) {
  animation-delay: 120ms;
}

.equalizer span:nth-child(3),
.vu-meter span:nth-child(3) {
  animation-delay: 240ms;
}

.equalizer span:nth-child(4),
.vu-meter span:nth-child(4) {
  animation-delay: 360ms;
}

.equalizer span:nth-child(5),
.vu-meter span:nth-child(5) {
  animation-delay: 480ms;
}

@keyframes pulse {
  from {
    height: 24px;
  }
  to {
    height: 78px;
  }
}

.station-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.station-card h3 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 650;
}

.station-card p,
.creator-panel p,
.identity-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.identity-grid strong {
  color: var(--soft-ink);
  font-weight: 640;
}

.featured-station p,
.featured-station footer {
  color: rgba(255, 255, 255, 0.76);
}

.station-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.verified {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.mini-cover {
  height: 94px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal), #eafcff);
}

.mini-cover.coral {
  background: linear-gradient(135deg, var(--coral), #fff1ed);
}

.mini-cover.green {
  background: linear-gradient(135deg, var(--lime), #f7ffe0);
}

.mini-cover.violet {
  background: linear-gradient(135deg, var(--lilac), #f4f0ff);
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.creator-panel,
.console {
  padding: 24px;
}

.studio-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(42, 199, 216, 0.18), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 111, 97, 0.13), transparent 28%),
    #fbfbfd;
}

.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--blue));
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
}

.status-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 14px;
  padding: 14px;
  color: var(--muted);
  background: #f7f9fd;
  border-radius: var(--radius);
}

.status-box strong {
  color: var(--ink);
}

.console {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 0%, rgba(42, 199, 216, 0.22), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(255, 111, 97, 0.18), transparent 32%),
    #111522;
  box-shadow: 0 30px 82px rgba(17, 21, 34, 0.18);
}

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

.console-top h3 {
  margin-bottom: 0;
  font-size: 34px;
  font-weight: 650;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 12px;
}

.sound-grid button {
  min-height: 92px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--pad-color, var(--teal)) 34%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    #202838;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 620;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.sound-grid button.is-playing {
  color: var(--ink);
  background: var(--pad-color, var(--lime));
}

.mixer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mixer label {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 560;
}

input[type="range"] {
  accent-color: var(--teal);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.identity-grid article {
  min-height: 190px;
  padding: 22px;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(16, 17, 20, 0.12);
}

.swatch.ink {
  background: var(--ink);
}

.swatch.teal {
  background: var(--teal);
}

.swatch.coral {
  background: var(--coral);
}

.swatch.lime {
  background: var(--lime);
}

.growth-section {
  color: var(--white);
  background:
    radial-gradient(circle at 14% 22%, rgba(42, 199, 216, 0.2), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(255, 111, 97, 0.16), transparent 30%),
    #10131d;
}

.growth-section .section-kicker,
.growth-section .section-heading h2 {
  color: var(--white);
}

.growth-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.growth-rail div {
  min-height: 150px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.growth-rail div:last-child {
  border-right: 0;
}

.growth-rail strong,
.growth-rail span {
  display: block;
}

.growth-rail strong {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 650;
}

.growth-rail span {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16, 17, 20, 0.55);
  backdrop-filter: blur(18px);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  position: relative;
  width: min(100%, 460px);
  padding: 26px;
  background: #fbfbfd;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 35px 95px rgba(16, 17, 20, 0.24);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 620;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(16, 17, 20, 0.16);
  border-radius: var(--radius);
}

.modal-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .live-grid,
  .studio-layout,
  .identity-grid,
  .growth-rail,
  .auth-strip {
    grid-template-columns: 1fr;
  }

  .growth-rail div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .topbar {
    position: absolute;
    flex-wrap: wrap;
  }

  .top-actions {
    width: 100%;
    justify-content: center;
  }

  .top-actions button {
    flex: 1;
  }

  .hero {
    min-height: 860px;
    padding-top: 150px;
    align-items: start;
  }

  .hero-actions,
  .station-body,
  .console-top {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    max-width: 360px;
  }

  .product-stage {
    aspect-ratio: 4 / 3.7;
  }

  .floating-chip {
    font-size: 11px;
  }

  .handle-control,
  .mixer {
    grid-template-columns: 1fr;
  }

  .console .sound-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .console .sound-grid button {
    min-height: 68px;
    padding: 0 6px;
    font-size: 12px;
  }

  .handle-control span {
    display: none;
  }
}
