:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(18, 24, 36, 0.86);
  --panel-strong: rgba(10, 15, 25, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(226, 232, 255, 0.16);
  --text: #f8fafc;
  --muted: #abb4c5;
  --accent: #78f3e5;
  --warm: #ff8a3d;
  --pink: #ff5b9b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Space Grotesk",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(120, 243, 229, 0.16), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(255, 91, 155, 0.14), transparent 28%),
    linear-gradient(180deg, #071018 0%, #080b13 52%, #05070b 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("/waves.svg");
  background-size: 1080px auto;
  background-position: center 32px;
  background-repeat: repeat-y;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.topbar,
.hero,
.section,
.footer {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(255, 138, 61, 0.2);
}

.brand span {
  display: block;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(255, 255, 255, 0.045);
}

.button.primary {
  border-color: rgba(255, 199, 111, 0.54);
  background: linear-gradient(135deg, #ffcc72 0%, #ff8a3d 45%, #ff5b9b 100%);
  color: #170b0e;
  box-shadow: 0 16px 38px rgba(255, 111, 67, 0.22);
}

.hero {
  margin-top: 28px;
  border-radius: 28px;
  padding: clamp(34px, 6vw, 74px);
  overflow: hidden;
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 74% 28%, rgba(120, 243, 229, 0.16), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(255, 138, 61, 0.14), transparent 34%);
}

.product-hero > * {
  position: relative;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.8vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero p {
  max-width: 760px;
  font-size: 1.16rem;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.section {
  margin-top: 22px;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
}

.card,
.price-card,
.profile-card,
.demo-card,
.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel-soft);
}

.price-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.price-card.featured,
.profile-card:hover,
.demo-card:hover {
  border-color: rgba(120, 243, 229, 0.38);
  box-shadow: 0 22px 58px rgba(120, 243, 229, 0.08);
}

.price {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(120, 243, 229, 0.35);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent);
  background: rgba(120, 243, 229, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
}

.section-header-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-header-row > div {
  max-width: 760px;
}

.data-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 800;
}

.data-pill.ok {
  border-color: rgba(120, 243, 229, 0.4);
  color: var(--accent);
  background: rgba(120, 243, 229, 0.1);
}

.data-pill.warn {
  border-color: rgba(255, 199, 111, 0.42);
  color: #ffd47a;
  background: rgba(255, 138, 61, 0.11);
}

.price-grid,
.profile-grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.profile-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(120, 243, 229, 0.26);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(120, 243, 229, 0.2), rgba(132, 164, 255, 0.18));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(248, 250, 252, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
}

.studio-mini {
  border: 1px solid rgba(226, 232, 255, 0.18);
  border-top-color: rgba(120, 243, 229, 0.58);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 28% 18%, rgba(120, 243, 229, 0.13), transparent 30%),
    linear-gradient(160deg, rgba(20, 27, 40, 0.96), rgba(9, 12, 19, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.mini-tabs {
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.mini-tabs span {
  border-radius: 10px;
  padding: 7px 10px;
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-tabs .active {
  color: #071018;
  background: linear-gradient(135deg, #78f3e5, #88a8ff);
}

.mini-panel {
  margin-top: 14px;
  border: 1px solid rgba(226, 232, 255, 0.14);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-wave {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}

.mini-wave span {
  display: block;
  height: 46px;
  flex: 1;
  border-radius: 999px;
  opacity: 0.82;
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(120, 243, 229, 0.72) 11px 15px, transparent 15px 23px),
    linear-gradient(135deg, rgba(120, 243, 229, 0.12), rgba(255, 91, 155, 0.12));
}

.mini-wave span:nth-child(2) {
  opacity: 0.42;
}

.mini-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(226, 232, 255, 0.14);
  border-radius: 14px;
  padding: 10px;
  background: var(--panel-strong);
}

.mini-player button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #091016;
  background: linear-gradient(135deg, #ffcc72, #ff8a3d, #ff5b9b);
  font-weight: 900;
}

.mini-player div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-player div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78f3e5, #88a8ff);
}

.mini-player small {
  color: var(--muted);
}

.demo-grid {
  align-items: start;
}

.demo-card {
  display: grid;
  gap: 12px;
}

.demo-empty {
  grid-column: 1 / -1;
  border-color: rgba(255, 199, 111, 0.3);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.1), rgba(120, 243, 229, 0.05));
}

.audio-pair {
  display: grid;
  gap: 12px;
}

.audio-pair > div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

audio {
  width: 100%;
}

.code-block {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 255, 0.16);
  border-radius: 16px;
  padding: 16px;
  color: rgba(248, 250, 252, 0.88);
  background: rgba(0, 0, 0, 0.36);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.list {
  padding-left: 1.15rem;
}

.list li + li {
  margin-top: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
  }

  .topbar,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .product-hero,
  .hero,
  .section {
    border-radius: 20px;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .section-header-row {
    display: grid;
  }

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

  .mini-player {
    grid-template-columns: auto 1fr;
  }

  .mini-player small {
    grid-column: 2;
  }
}
