:root {
  --bg: #010302;
  --bg-soft: #031009;
  --panel: rgba(120, 255, 180, 0.045);
  --panel-strong: rgba(120, 255, 180, 0.08);
  --border: rgba(120, 255, 180, 0.12);
  --border-strong: rgba(120, 255, 180, 0.22);
  --text: #eafff2;
  --muted: #8db9a2;
  --faint: #5f806d;
  --neon: #39ff88;
  --neon-soft: #baffd4;
  --lime: #b8ff3d;
  --mint: #4dffc3;
  --emerald: #00c96b;
  --danger: #ff7a7a;
  --radius: 26px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: "SF Pro Display", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
::selection { background: rgba(57, 255, 136, 0.3); color: #fff; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(57, 255, 136, 0.17), transparent 60%),
    radial-gradient(800px 600px at 95% 10%, rgba(77, 255, 195, 0.10), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(184, 255, 61, 0.07), transparent 60%),
    linear-gradient(180deg, #020806 0%, #010302 45%, #000000 100%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(120,255,180,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(120,255,180,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  opacity: .6;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(57,255,136,.22), rgba(57,255,136,.05));
  border: 1px solid rgba(57,255,136,.32);
  color: var(--neon);
  box-shadow: 0 0 24px rgba(57,255,136,.14);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name span { color: var(--neon); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
}
.header-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.header-nav a:hover { color: var(--text); }
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(77,255,195,.22);
  background: rgba(77,255,195,.06);
  color: #a8ffd8;
  font-size: 12px;
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(77,255,195,.12);
}

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  max-width: 900px;
  margin: 56px auto 44px;
  text-align: center;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon-soft);
  font-weight: 650;
}
.spark {
  width: 7px; height: 7px;
  background: var(--neon);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(57,255,136,.8);
}
.hero h1 {
  margin: 23px 0 20px;
  font-size: clamp(42px, 7.2vw, 82px);
  line-height: .98;
  letter-spacing: -0.055em;
  font-weight: 780;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--neon-soft) 0%, var(--neon) 36%, var(--lime) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 650px;
  margin: 0 auto;
  color: #a9d8bc;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.65;
}
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.hero-badges span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #b9e8cb;
  font-size: 12.5px;
  background: rgba(120,255,180,.025);
}
.hero-badges span::before {
  content: "✓";
  color: var(--mint);
  margin-right: 6px;
  font-weight: 700;
}

.studio { max-width: 980px; margin: 0 auto; }
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(120,255,180,.06), rgba(120,255,180,.02)),
    rgba(2, 14, 8, .84);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.panel + .panel { margin-top: 20px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.panel-head > div { min-width: 0; }
.step {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--neon);
  background: rgba(57,255,136,.1);
  border: 1px solid rgba(57,255,136,.25);
  margin-top: 2px;
}
.panel-head h2 {
  margin: 0 0 5px;
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: -0.035em;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 236px;
  padding: 34px 24px;
  border: 1.5px dashed rgba(57,255,136,.33);
  border-radius: 20px;
  background:
    radial-gradient(400px 160px at 50% 0%, rgba(57,255,136,.10), transparent 70%),
    rgba(120,255,180,.02);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover {
  border-color: rgba(57,255,136,.7);
  background:
    radial-gradient(460px 200px at 50% 0%, rgba(57,255,136,.16), transparent 70%),
    rgba(120,255,180,.04);
  outline: none;
}
.dropzone.dragover { transform: scale(1.006); }
.drop-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--neon);
  background: rgba(57,255,136,.09);
  border: 1px solid rgba(57,255,136,.22);
  margin-bottom: 4px;
}
.drop-icon svg { width: 26px; height: 26px; }
.dropzone strong { font-size: 17px; letter-spacing: -.02em; }
.dropzone > span { color: var(--muted); font-size: 13.5px; }
.dropzone u { color: var(--neon-soft); text-underline-offset: 3px; }

.file-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 17px;
  background: rgba(0, 10, 5, .35);
  animation: rise .35s ease both;
}
.waveform {
  display: block;
  width: 100%;
  height: 112px;
  border-radius: 12px;
  background: rgba(120,255,180,.02);
}
.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 13px 2px 12px;
}
.file-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-icon {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--neon);
  background: rgba(57,255,136,.08);
  border: 1px solid rgba(57,255,136,.18);
}
.file-icon svg { width: 18px; height: 18px; }
.file-title div { min-width: 0; }
.file-title strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-title span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(120,255,180,.07); }
audio {
  width: 100%;
  height: 38px;
  filter: invert(1) hue-rotate(180deg) saturate(.6);
  opacity: .9;
}

.upload-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.format-field { display: flex; flex-direction: column; gap: 7px; }
.format-field > span { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
select {
  appearance: none;
  min-width: 180px;
  padding: 11px 38px 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #04110a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba0ad' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
select:focus-visible { outline: 2px solid rgba(57,255,136,.5); outline-offset: 2px; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(105deg, var(--neon-soft), var(--neon) 55%, #00e676);
  color: #00170a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(57,255,136,.24), 0 0 0 1px rgba(57,255,136,.12);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(57,255,136,.28); filter: brightness(1.03); }
.primary-btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.btn-arrow { font-size: 18px; line-height: 1; }
.model-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 2px 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}
.model-note span { color: var(--neon); }

/* process */
.stage-list { display: grid; gap: 9px; margin-bottom: 26px; }
.stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: .25s;
}
.stage strong { display: block; font-size: 13px; color: #d6ffe4; font-weight: 600; }
.stage small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.stage-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #0e2a1b;
  box-shadow: 0 0 0 4px rgba(120,255,180,.03);
  flex: 0 0 auto;
}
.stage.active { background: rgba(57,255,136,.055); border-color: rgba(57,255,136,.16); }
.stage.active .stage-dot { background: var(--neon); box-shadow: 0 0 0 4px rgba(57,255,136,.13), 0 0 18px rgba(57,255,136,.5); animation: pulse 1.4s ease-in-out infinite; }
.stage.done .stage-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(77,255,195,.1); }
.stage.error .stage-dot { background: var(--danger); }
.progress-block { padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: rgba(0,0,0,.18); }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #d4d6dd; margin-bottom: 10px; }
.progress-label span:last-child { color: var(--neon-soft); font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; border-radius: 99px; background: rgba(120,255,180,.10); overflow: hidden; }
.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--neon) 65%, var(--neon-soft));
  box-shadow: 0 0 18px rgba(57,255,136,.35);
  transition: width .35s ease;
}
.progress-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.engine-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0 0; }
.engine-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(120,255,180,.025);
  color: var(--muted);
  font-size: 11px;
}
.engine-chip.ok { color: #a8ffd8; border-color: rgba(77,255,195,.24); background: rgba(77,255,195,.06); }
.engine-chip.warn { color: #baffd4; border-color: rgba(57,255,136,.24); background: rgba(57,255,136,.06); }
.engine-chip.subtle { opacity: .72; }
.log-wrap { margin-top: 18px; border-top: 1px solid rgba(120,255,180,.10); padding-top: 13px; }
.log-wrap summary { color: var(--faint); font-size: 11.5px; cursor: pointer; user-select: none; }
.log-wrap pre {
  margin: 10px 0 0;
  padding: 12px;
  max-height: 170px;
  overflow: auto;
  border-radius: 10px;
  background: #020604;
  border: 1px solid rgba(120,255,180,.09);
  color: #8f95a1;
  font: 10.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,139,125,.25);
  background: rgba(255,139,125,.06);
}
.error-box strong { color: #ffb4a9; font-size: 14px; }
.error-box p { margin: 7px 0 0; color: #d7b3ad; font-size: 12.5px; line-height: 1.55; }
.error-box .error-hint { color: var(--muted); }
.error-box .ghost-btn { margin-top: 12px; }
.ghost-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(120,255,180,.035);
  color: #d6ffe4;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.ghost-btn:hover { background: rgba(120,255,180,.08); border-color: var(--border-strong); }
.ghost-btn.small { min-height: 36px; padding: 0 12px; font-size: 12px; margin-left: auto; }

/* results */
.results-head { align-items: center; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.result-card {
  position: relative;
  padding: 20px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(120,255,180,.055), rgba(120,255,180,.015));
  overflow: hidden;
}
.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.result-card.vocals { --accent: var(--lime); }
.result-card.instrumental { --accent: var(--mint); }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.result-size { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.result-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin: 17px 0 13px;
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.result-icon svg { width: 22px; height: 22px; }
.result-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.03em; }
.result-card p { margin: 0 0 15px; color: var(--muted); font-size: 12.5px; line-height: 1.5; min-height: 38px; }
.result-card audio { margin-bottom: 14px; }
.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.download-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); transform: translateY(-1px); }
.results-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.results-note { margin: 14px 2px 0; color: var(--faint); font-size: 11.5px; line-height: 1.5; }

/* how / faq */
.how, .faq { margin: 92px auto 0; max-width: 980px; }
.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading h2 { margin: 16px 0 0; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.05em; line-height: 1.05; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  padding: 24px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: rgba(120,255,180,.025);
}
.step-number { display: block; color: var(--neon); font-size: 11px; font-weight: 800; letter-spacing: .1em; margin-bottom: 30px; }
.step-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.03em; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details {
  padding: 18px 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(120,255,180,.022);
}
.faq summary { cursor: pointer; color: #d9ffe7; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--neon); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 90px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(120,255,180,.10);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}
.site-footer strong { color: #a8d8bb; }
.credits { text-align: right; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .7; } }

@media (max-width: 820px) {
  .result-grid, .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-number { margin-bottom: 16px; }
  .site-footer { flex-direction: column; }
  .credits { text-align: left; }
}
@media (max-width: 620px) {
  .site-header { padding: 20px 0; }
  .header-nav a { display: none; }
  .hero { margin: 38px auto 32px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .panel { padding: 20px; border-radius: 21px; }
  .upload-actions { flex-direction: column; align-items: stretch; }
  .format-field { width: 100%; }
  .format-field select { width: 100%; }
  .primary-btn { width: 100%; }
  .dropzone { min-height: 208px; padding: 28px 18px; }
  .file-title strong { max-width: 210px; }
  .results-actions { flex-wrap: wrap; }
  .results-actions .ghost-btn { flex: 1; }
  .panel-head { gap: 12px; }
  .step { width: 33px; height: 33px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.upload-error {
  margin: 14px 2px 0;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255,139,125,.26);
  background: rgba(255,139,125,.07);
  color: #ffb4a9;
  font-size: 12.5px;
  line-height: 1.5;
}
.dropzone.loading { pointer-events: none; opacity: .7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.error-actions .ghost-btn { margin-top: 0; }
.result-format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.result-format > span { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.result-format select { min-width: 116px; padding: 9px 32px 9px 11px; font-size: 12px; }
@media (max-width: 620px) {
  .result-format { width: 100%; margin-right: 0; }
  .result-format select { flex: 1; }
}
.noscript {
  margin: 0;
  padding: 14px 20px;
  background: #04170d;
  color: #baffd4;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid rgba(57,255,136,.28);
}
