:root {
  --bg: #090b12;
  --card: #141826;
  --ink: #f3f1ff;
  --muted: #9aa3c2;
  --line: #2a3148;
  --accent: #7c5cff;
  --accent-2: #4de1c1;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 90% -10%, #2a1f66 0, transparent 55%),
    radial-gradient(800px 400px at 0% 20%, #12352f 0, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

button, input { font-family: inherit; }

.page {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c5cff, #4de1c1);
}

.brand small { color: var(--muted); display: block; }

.live {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b647f;
}

.live.on { color: #9ff3dc; }
.live.on span { background: #4de1c1; box-shadow: 0 0 10px #4de1c1; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}

h1 { margin: 0 0 8px; font-size: 1.55rem; }
h2 { margin: 0 0 10px; font-size: 1.15rem; }
.muted { color: var(--muted); }

.actions, .steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

.mode {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  background: #0f1320;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.mode.on { background: var(--accent-2); color: #06241d; border-color: transparent; }
.mode:disabled { opacity: .45; cursor: default; }

.primary, .ghost, .voice, .pad, a.primary {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-card h2 { margin-bottom: 6px; }

a.ghost {
  border: 1px solid var(--line);
  background: #0f1320;
}

.ios-steps {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.primary { background: var(--accent); color: #fff; }
.ghost, .voice, .pad { background: #0f1320; border: 1px solid var(--line); }
.voice.on { background: var(--accent); border-color: transparent; }
.primary:disabled, .ghost:disabled { opacity: .45; cursor: default; }

.meter {
  height: 10px;
  background: #0c101c;
  border-radius: 99px;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4de1c1, #7c5cff);
}

.warn { color: #ffcc7a; font-size: 0.9rem; }

.label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.voices, .pads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.sliders label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 12px 0;
  color: var(--muted);
}

.sliders b { color: var(--ink); }
input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

ol { color: var(--muted); padding-left: 18px; }
