:root {
  --bg: #06060e;
  --bg-2: #0b0b18;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3fb;
  --muted: #9aa0b8;
  --faint: #6b7191;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(120deg, #8b5cf6, #22d3ee);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-a { width: 560px; height: 560px; top: -180px; left: -140px; background: #6d28d9; }
.bg-glow-b { width: 520px; height: 520px; bottom: -220px; right: -160px; background: #0e7490; }

main { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 14, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-name em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.5);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav-links a.active { color: var(--text); background: var(--panel-strong); }

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.4s, box-shadow 0.4s, color 0.4s;
}
.pill-status.engine-online {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(52,211,153,0.25);
}
.pill-status.engine-offline {
  border-color: var(--red);
  color: var(--red);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.online { background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
.dot.offline { background: var(--red); animation: pulse-red 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.45); }
  70% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.hero { padding: 96px 0 70px; text-align: center; position: relative; overflow: hidden; }
.radio-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.07);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; max-width: 900px; margin-inline: auto; }
.hero .sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 680px;
  margin: 22px auto 0;
}
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(99, 102, 241, 0.6); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel-strong); }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.eq { display: flex; align-items: flex-end; justify-content: center; gap: 7px; height: 74px; margin-top: 54px; opacity: 0.85; }
.eq span {
  width: 9px;
  border-radius: 6px;
  background: var(--grad);
  animation: eqbar 1.15s ease-in-out infinite;
}
.eq span:nth-child(1) { animation-delay: 0s; height: 30%; }
.eq span:nth-child(2) { animation-delay: 0.12s; height: 62%; }
.eq span:nth-child(3) { animation-delay: 0.24s; height: 88%; }
.eq span:nth-child(4) { animation-delay: 0.05s; height: 46%; }
.eq span:nth-child(5) { animation-delay: 0.3s; height: 70%; }
.eq span:nth-child(6) { animation-delay: 0.18s; height: 95%; }
.eq span:nth-child(7) { animation-delay: 0.09s; height: 38%; }
.eq span:nth-child(8) { animation-delay: 0.27s; height: 58%; }
.eq span:nth-child(9) { animation-delay: 0.21s; height: 80%; }
@keyframes eqbar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.25); }
}

.section { padding: 84px 0; }
.section-tight { padding: 54px 0; }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-align: center; max-width: 720px; margin-inline: auto; }
.lead { color: var(--muted); text-align: center; max-width: 640px; margin: 16px auto 0; font-size: 1.05rem; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding: 26px 0 8px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.stat b { display: block; font-family: var(--font-head); font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.step-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.94rem; }
.step-card code {
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.86em;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 44px; }
.feature-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.35);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.split-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--panel); }
.split-card.you { border-color: rgba(139, 92, 246, 0.4); }
.split-card.ai { border-color: rgba(34, 211, 238, 0.35); }
.split-card h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.split-card ul { list-style: none; }
.split-card li { color: var(--muted); padding: 9px 0 9px 26px; position: relative; font-size: 0.95rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.split-card li:last-child { border-bottom: 0; }
.split-card li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; }
.split-card.you li::before { background: var(--violet); }
.split-card.ai li::before { background: var(--cyan); }
.split-card li b { color: var(--text); font-weight: 600; }

.demo-box {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(139, 92, 246, 0.16), transparent),
    radial-gradient(600px 220px at 85% 100%, rgba(34, 211, 238, 0.12), transparent),
    var(--bg-2);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.demo-quote {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
}
.demo-quote .q { color: var(--faint); }
.demo-side { display: flex; flex-direction: column; gap: 12px; }
.mini-player {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mini-cover {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  background: var(--grad);
  display: grid; place-items: center; color: #fff;
}
.mini-player .t { font-weight: 600; font-size: 0.92rem; }
.mini-player .d { color: var(--faint); font-size: 0.78rem; }
.play-tri { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

.quickstart {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.quickstart summary {
  cursor: pointer;
  padding: 18px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.quickstart summary::-webkit-details-marker { display: none; }
.quickstart summary:hover { color: var(--text); }
.quickstart .qs-body { padding: 0 26px 24px; }
.quickstart pre {
  background: #0a0a16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #a5f3fc;
  margin: 12px 0;
}
.quickstart p { color: var(--muted); font-size: 0.92rem; }

.final-cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 64px 32px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(139, 92, 246, 0.2), transparent),
    var(--bg-2);
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.final-cta p { color: var(--muted); max-width: 520px; margin: 14px auto 0; }

.page-head { padding: 72px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head .sub { color: var(--muted); max-width: 620px; margin: 16px auto 0; }

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  padding-bottom: 90px;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 4px; }
.panel .hint { color: var(--faint); font-size: 0.88rem; margin-bottom: 18px; }

.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 7px; }
.field .tip { color: var(--faint); font-size: 0.82rem; margin-top: 6px; }
.field .tip b { color: var(--muted); }

input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
select option { background: #12121f; }

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

.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { font-family: var(--font-head); font-weight: 600; min-width: 74px; text-align: right; color: var(--cyan); }
input[type="range"] { flex: 1; appearance: none; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  border: 3px solid #0b0b18;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--violet);
  border: 3px solid #0b0b18;
  cursor: pointer;
}

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.switch-row .lbl b { display: block; font-size: 0.93rem; font-weight: 600; }
.switch-row .lbl span { color: var(--faint); font-size: 0.8rem; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track-el {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease;
  cursor: pointer;
}
.switch .track-el::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.switch input:checked + .track-el { background: var(--grad); }
.switch input:checked + .track-el::after { transform: translateX(20px); }

details.advanced { border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); overflow: hidden; }
details.advanced summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--muted);
  list-style: none;
  user-select: none;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::before { content: "▸ "; color: var(--violet); }
details.advanced[open] summary::before { content: "▾ "; }
details.advanced[open] summary { color: var(--text); border-bottom: 1px solid var(--border); }
details.advanced .adv-body { padding: 20px 18px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.87rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.chip:hover { color: var(--text); border-color: var(--violet); background: rgba(139, 92, 246, 0.12); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-row .spacer { flex: 1; }

.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.side-panel { border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); padding: 22px; }
.side-panel h3 { font-size: 0.98rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.js-status-panel.status-online {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(52,211,153,0.02));
  box-shadow: 0 0 20px rgba(52,211,153,0.1);
}
.js-status-panel.status-online .js-engine-text { color: var(--green); font-weight: 700; }
.js-status-panel.status-offline {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
}
.js-status-panel.status-offline .js-engine-text { color: var(--red); font-weight: 700; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); font-size: 0.87rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--faint); }
.kv b { font-weight: 600; }

.results-area { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.result-batch { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 22px; }
.result-batch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.result-batch-head .bt { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.result-batch-head .bs { color: var(--faint); font-size: 0.8rem; }

.stage-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; padding: 8px 0 14px; }
.spinner {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; width: 35%; border-radius: 999px; background: var(--grad); animation: slide 1.6s ease-in-out infinite alternate; }
@keyframes slide {
  from { margin-left: 0; }
  to { margin-left: 65%; }
}

.track-list { display: flex; flex-direction: column; gap: 14px; }
.track-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}
.cover {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}
.track-info { min-width: 0; }
.track-title { font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 10px; }
.tchip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
}
.tchip.v { color: #c4b5fd; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.track-card audio { width: 100%; height: 38px; }
.track-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 0.83rem; }
.track-actions a { color: var(--muted); }
.track-actions a:hover { color: var(--text); }
.error-note {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
}

.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.recent-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 14px 16px;
}
.recent-item .rt { font-weight: 600; font-size: 0.9rem; font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .rd { color: var(--faint); font-size: 0.76rem; margin-bottom: 8px; }
.recent-item audio { width: 100%; height: 34px; }
.empty-note { color: var(--faint); text-align: center; padding: 26px 0; font-size: 0.92rem; }

.pg-wrap { max-width: 780px; margin-inline: auto; }
.pg-input-card {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(400px 160px at 15% 0%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(400px 180px at 90% 100%, rgba(34, 211, 238, 0.1), transparent),
    var(--bg-2);
  padding: 34px;
  box-shadow: var(--shadow);
}
.pg-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.tip-box {
  margin-top: 26px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.tip-box b { color: var(--text); }
.tip-box .good { color: var(--green); }
.tip-box .bad { color: var(--red); }

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  border: 1px solid var(--border-strong);
  background: #14141f;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.89rem;
  box-shadow: var(--shadow);
  animation: toastin 0.25s ease;
}
.toast.err { border-color: rgba(248, 113, 113, 0.5); }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
@keyframes toastin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.footer { border-top: 1px solid var(--border); padding: 40px 0 46px; position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; color: var(--faint); font-size: 0.88rem; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.foot-note { font-style: italic; }

@media (max-width: 980px) {
  .studio-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .demo-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 7px 9px; font-size: 0.85rem; }
  .pill-status { display: none; }
  .pg-options { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s, border-color 0.15s;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
