:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #626672;
  --paper: #f4f2e8;
  --surface: #fffdf7;
  --line: #d9d3c4;
  --blue: #2468d8;
  --green: #247657;
  --coral: #c95f45;
  --plum: #6f5a8f;
  --shadow: 0 18px 45px rgba(23, 25, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(23, 25, 31, 0.08);
  background: rgba(244, 242, 232, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-left-color: var(--coral);
  border-bottom-color: var(--green);
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 42px;
}

.intro {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.6);
  font-size: 0.86rem;
  font-weight: 720;
}

.uploader {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.uploader-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.uploader-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.uploader-head p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

form {
  padding: 20px;
}

.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.drop-zone {
  display: grid;
  align-content: center;
  min-height: 168px;
  padding: 18px;
  border: 1px dashed #9b9486;
  border-radius: 8px;
  background: #f8f5ec;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone.has-file {
  border-color: var(--blue);
  background: #eef4ff;
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-label {
  color: var(--ink);
  font-weight: 820;
}

.drop-name {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  background: var(--ink);
  color: white;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button {
  background: var(--surface);
  color: var(--ink);
}

.status-panel {
  padding: 0 20px 20px;
}

.status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ece6d7;
  color: var(--ink);
  font-weight: 820;
}

.status-pill.running {
  background: #dce8ff;
  color: var(--blue);
}

.status-pill.completed {
  background: #dff1e7;
  color: var(--green);
}

.status-pill.failed {
  background: #ffe3dc;
  color: var(--coral);
}

.progress-shell {
  position: relative;
  height: 12px;
  margin: 14px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ece8dc;
}

#progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 320ms ease;
}

#status-message {
  margin-bottom: 7px;
  font-weight: 760;
}

.queue-note {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.queue-note.is-live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.35s ease-in-out infinite;
}

.result-video {
  width: 100%;
  max-height: 520px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: black;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.preview-band,
.content-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.preview-band {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 38px 0 72px;
}

.preview-band img {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-band h2,
.content-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.preview-band p,
.content-section p {
  color: var(--muted);
}

.content-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 850;
}

.steps h3 {
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 820;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.88rem;
  }

  .studio,
  .preview-band,
  .split {
    grid-template-columns: 1fr;
  }

  .studio {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .uploader-head,
  footer {
    flex-direction: column;
  }

  .uploader-head p {
    max-width: none;
    text-align: left;
  }

  .drop-grid,
  .steps,
  .result-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
