:root {
  --bg: #090914;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f8fbff;
  --muted: #a8b3cf;
  --pink: #ff4fd8;
  --purple: #8b5cf6;
  --cyan: #35d0ff;
  --lime: #a3ff12;
  --red: #ff6b6b;
  --green: #39e58c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, .24), transparent 28rem),
    radial-gradient(circle at top right, rgba(53, 208, 255, .18), transparent 32rem),
    linear-gradient(135deg, #06060d, #11112a 45%, #090914);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 9, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -0.04em; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--pink), var(--cyan)); box-shadow: 0 0 32px rgba(255,79,216,.35); }
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-links a, .nav-links button { color: var(--muted); background: transparent; border: 0; cursor: pointer; padding: 10px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links button:hover { color: white; background: var(--panel); }

.hero { padding: 72px 0 46px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 36px; }
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; }
h1, .h1 { font-size: clamp(42px, 7vw, 78px); line-height: .92; letter-spacing: -.07em; margin: 14px 0 18px; }
h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.05em; margin: 0 0 14px; }
h3 { margin: 0 0 10px; letter-spacing: -.03em; }
p { color: var(--muted); line-height: 1.65; }
.lead { font-size: 18px; max-width: 64ch; }
.gradient-text { background: linear-gradient(90deg, var(--pink), var(--cyan), var(--lime)); -webkit-background-clip: text; color: transparent; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
  background: var(--panel);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--panel-strong); border-color: rgba(255,255,255,.3); }
.btn-primary { border: 0; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 18px 50px rgba(139,92,246,.25); }
.btn-cyan { border: 0; background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.btn-danger { border-color: rgba(255,107,107,.4); color: #ffdede; }
.btn-small { padding: 8px 12px; font-size: 14px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.055));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.card.glow { position: relative; overflow: hidden; }
.card.glow:before { content:""; position:absolute; inset:-60px; background: radial-gradient(circle, rgba(255,79,216,.22), transparent 40%); opacity:.8; pointer-events:none; }
.card > * { position: relative; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.section { padding: 42px 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { color: #d9e3ff; font-weight: 800; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(53, 208, 255, .12); }
.help { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px; color: var(--muted); background: rgba(255,255,255,.06); cursor: pointer; }
.chip:hover { color: white; border-color: rgba(255,255,255,.3); }

.alert { border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; margin: 18px 0; background: rgba(255,255,255,.07); }
.alert-success { border-color: rgba(57,229,140,.35); background: rgba(57,229,140,.09); }
.alert-error { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.09); }
.error-list { margin: 0; color: #ffdede; }

.cover {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,79,216,.6), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(53,208,255,.5), transparent 32%),
    linear-gradient(135deg, rgba(139,92,246,.45), rgba(0,0,0,.28));
  display: grid;
  place-items: center;
  font-size: 56px;
  overflow: hidden;
}
.track-title { font-weight: 900; font-size: 20px; letter-spacing: -.04em; color: white; }
.meta { color: var(--muted); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--border); color: #dbe7ff; font-size: 12px; font-weight: 800; }
.badge.ready { color: #caffde; border-color: rgba(57,229,140,.32); background: rgba(57,229,140,.1); }
.badge.queued, .badge.processing { color: #d6f6ff; border-color: rgba(53,208,255,.32); background: rgba(53,208,255,.09); }
.badge.failed { color: #ffdede; border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.1); }
audio { width: 100%; margin-top: 12px; }

.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.kpi div { background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.kpi strong { display:block; font-size: 24px; color:white; }
.kpi span { color: var(--muted); font-size: 13px; }

.footer { padding: 38px 0; color: var(--muted); border-top: 1px solid var(--border); margin-top: 42px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pagination { margin-top: 24px; color: var(--muted); }

@media (max-width: 880px) {
  .hero, .grid-2, .grid-3, .track-grid, .form-grid { grid-template-columns: 1fr; }
  .nav-inner { align-items: flex-start; flex-direction: column; }
  h1, .h1 { font-size: clamp(38px, 16vw, 64px); }
}
