/* SongDonkey.AI — Direction C ("Bold Gradient / Creator") design system
   Shared across every page. Mobile-first, real breakpoints. */

* { box-sizing: border-box; }

:root {
  --ink: oklch(0.20 0.02 280);
  --body: oklch(0.40 0.02 280);
  --muted: oklch(0.45 0.02 280);
  --muted-strong: oklch(0.42 0.02 280);
  --line: oklch(0.9 0.008 260);
  --bg: oklch(0.97 0.012 260);
  --card: oklch(1 0 0);
  --pink: oklch(0.68 0.20 350);
  --pink-mid: oklch(0.62 0.19 320);
  --orange: oklch(0.80 0.15 70);
  --purple: oklch(0.60 0.20 300);
  --pink-label: oklch(0.5 0.19 350);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Sora", system-ui, sans-serif;
  margin: 0;
}

p { margin: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient mesh background band, used behind hero sections */
.mesh {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 500px at 90% -5%, oklch(0.80 0.15 70 / 0.5), transparent),
    radial-gradient(ellipse 600px 500px at -5% 30%, oklch(0.68 0.20 350 / 0.3), transparent),
    radial-gradient(ellipse 700px 600px at 60% 110%, oklch(0.60 0.20 300 / 0.22), transparent),
    var(--bg);
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted-strong);
}

.nav-cta {
  display: none;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--pink), var(--pink-mid));
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px -6px oklch(0.68 0.20 350 / 0.5);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
}

.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 20px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.mobile-menu .nav-cta {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-mid));
  color: #fff;
  box-shadow: 0 14px 30px -10px oklch(0.68 0.20 350 / 0.55);
}

.btn-primary:hover { color: #fff; opacity: 0.94; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Eyebrow / pill tags ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: oklch(1 0 0 / 0.6);
  border: 1px solid oklch(1 0 0 / 0.8);
  width: fit-content;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pink-label);
}

.tag {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: oklch(1 0 0 / 0.65);
  font-size: 12.5px;
  font-weight: 600;
  color: oklch(0.35 0.02 280);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 8px 0 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-strong);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

@media (min-width: 960px) {
  .hero { flex-direction: row; align-items: center; gap: 56px; padding: 20px 0 64px; }
  .hero-copy { flex: 1.05; }
  .hero h1 { font-size: 52px; }
  .hero-sub { font-size: 17px; }
  .hero-visual { flex: 1; display: flex; justify-content: center; }
}

/* ---------- Upload card ---------- */
.upload-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.8);
  border: 1px solid oklch(1 0 0 / 0.9);
  padding: 22px;
  box-shadow: 0 30px 70px -24px oklch(0.4 0.1 300 / 0.28);
  margin: 0 auto;
}

.upload-drop {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, oklch(0.68 0.20 350 / 0.12), oklch(0.80 0.15 70 / 0.14));
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-title { font-size: 15px; font-weight: 700; }
.upload-hint { font-size: 12.5px; color: oklch(0.5 0.02 280); }

.stem-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.stem-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.stem-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stem-name { font-size: 13px; font-weight: 600; flex: 1; }
.stem-status { font-size: 11.5px; color: oklch(0.5 0.02 280); }

/* ---------- Split engine (real upload/split UI) ---------- */
.hideElement { display: none !important; }

.upload-drop.drag-over {
  outline: 2px dashed var(--pink);
  outline-offset: -2px;
}

.upload-select {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
  width: 100%;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  transition: width 0.4s ease;
}

.upload-status {
  font-size: 13px;
  color: var(--muted-strong);
  text-align: center;
  margin-top: 12px;
}

.stem-result-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: oklch(0.68 0.20 350 / 0.06);
  margin-bottom: 8px;
}

.stem-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.stem-result-head a { color: var(--pink-label); font-weight: 700; }

.stem-result-row audio {
  width: 100%;
  height: 32px;
}

.error-message {
  font-size: 13.5px;
  color: var(--muted-strong);
  line-height: 1.5;
  text-align: center;
}

/* ---------- Section shell ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 640px; }
.section h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.section-sub { font-size: 15px; line-height: 1.6; color: var(--muted-strong); }

@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .section h2 { font-size: 34px; }
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, oklch(0.68 0.20 350 / 0.14), oklch(0.80 0.15 70 / 0.16));
}

.card h3 { font-size: 17px; font-weight: 700; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted-strong); }

/* ---------- Steps ---------- */
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.faq-item {
  background: var(--card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-q { font-size: 15.5px; font-weight: 700; }
.faq-a { font-size: 14.5px; line-height: 1.6; color: var(--muted-strong); }

/* ---------- Simple content page (about/contact/privacy/guide) ---------- */
.page-hero {
  padding: 44px 0 8px;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 960px) {
  .page-hero h1 { font-size: 44px; }
}

.prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
}

.prose h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.prose h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 0 8px; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13.5px; font-weight: 600; }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-col-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-strong);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted-strong);
  padding: 6px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.lang-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lang-row a { color: var(--muted-strong); font-weight: 600; font-size: 13px; }

@media (min-width: 900px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
