/* Dollycut — cinematic warmth: record-light coral & amber on deep plum. */
:root {
  --bg: #0e0b16;
  --panel: #171226;
  --panel-edge: #2b2340;
  --text: #f2eee9;
  --muted: #a89fb0;
  --coral: #ff6b57;
  --amber: #ffb547;
  --teal: #3ecfb2;
  --violet: #8f7bff;
  --danger: #ff6b57;
  --radius: 16px;
  --grad: linear-gradient(120deg, var(--coral), var(--amber));
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient color washes behind everything. */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.glow-a {
  width: 520px; height: 520px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
}
.glow-b {
  width: 620px; height: 620px;
  bottom: -260px; right: -200px;
  background: radial-gradient(circle, var(--teal), transparent 70%);
}

header, main, footer {
  width: min(860px, 92vw);
  margin: 0 auto;
}

/* ---------- brand + hero ---------- */
header { padding: 2rem 0 0.4rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.logo { width: 34px; height: 34px; }
.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 2.2rem 0 1rem;
}
.hero-copy { flex: 1.1; min-width: 260px; }

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { color: var(--muted); margin: 0; max-width: 42ch; }

.perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  padding: 0;
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.perks li { display: flex; align-items: center; gap: 0.45rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-coral { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.dot-teal  { background: var(--teal);  box-shadow: 0 0 10px var(--teal); }

/* ---------- the live mini-demo ---------- */
.demo {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  background: #191330;
  border: 1px solid var(--panel-edge);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.demo-chrome {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #221a3d;
}
.demo-chrome i {
  width: 8px; height: 8px; border-radius: 50%;
}
.demo-chrome i:nth-child(1) { background: var(--coral); }
.demo-chrome i:nth-child(2) { background: var(--amber); }
.demo-chrome i:nth-child(3) { background: var(--teal); }

.demo-screen {
  position: absolute;
  inset: 24px 0 0 0;
  display: flex;
  padding: 10px;
  gap: 10px;
}
.mock-sidebar {
  width: 22%;
  border-radius: 8px;
  background: #221a3d;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-sidebar span {
  height: 6px;
  border-radius: 3px;
  background: #3b2f63;
}
.mock-sidebar span:first-child { background: var(--violet); }
.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-card {
  flex: 1;
  border-radius: 8px;
  background: #221a3d;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mock-line { height: 6px; border-radius: 3px; background: #3b2f63; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.mock-btn {
  width: 34%; height: 12px;
  border-radius: 6px;
  background: var(--grad);
  margin-top: auto;
}
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
}
.mock-chart b { flex: 1; border-radius: 3px 3px 0 0; background: var(--teal); opacity: 0.85; }
.mock-chart b:nth-child(1) { height: 35%; }
.mock-chart b:nth-child(2) { height: 60%; }
.mock-chart b:nth-child(3) { height: 45%; }
.mock-chart b:nth-child(4) { height: 85%; background: var(--amber); }
.mock-chart b:nth-child(5) { height: 65%; }

.mock-cursor {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  animation: cursor-path 9s ease-in-out infinite;
}
@keyframes cursor-path {
  0%, 12%  { top: 40%; left: 40%; }
  26%, 40% { top: 38%; left: 30%; }   /* over the button */
  54%, 68% { top: 78%; left: 74%; }   /* over the chart */
  86%, 100% { top: 40%; left: 40%; }
}

/* The viewfinder that pans & zooms over the mock screen. */
.demo-frame {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 2000px rgba(10, 7, 20, 0.45);
  animation: frame-path 9s ease-in-out infinite;
}
@keyframes frame-path {
  0%, 10%  { top: 6%;  left: 3%;  width: 94%; height: 90%; }
  24%, 40% { top: 26%; left: 22%; width: 46%; height: 40%; } /* zoom: form */
  54%, 70% { top: 52%; left: 50%; width: 46%; height: 40%; } /* pan: chart */
  86%, 100% { top: 6%; left: 3%;  width: 94%; height: 90%; }
}
.corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2.5px solid var(--amber);
}
.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.rec {
  position: absolute;
  top: 7px; right: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd9d3;
}
.rec b {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- panels ---------- */
main { flex: 1; padding-bottom: 3rem; }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%), var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1.2rem;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hidden { display: none; }

.static-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(255, 181, 71, 0.08);
  color: var(--amber);
  font-size: 0.92rem;
}
.static-note code { color: var(--text); }

/* ---------- upload ---------- */
#dropzone {
  border: 2px dashed #453a6b;
  border-radius: var(--radius);
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
#dropzone.drag, #dropzone:hover, #dropzone:focus {
  border-color: var(--amber);
  background: rgba(255, 181, 71, 0.05);
  color: var(--amber);
  outline: none;
}
.drop-icon {
  width: 52px; height: 52px;
  color: inherit;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }
.drop-title { margin: 0.5rem 0 0.2rem; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.drop-title span { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0.2rem 0; }

/* Dropzone states: empty prompt vs. selected-file card. */
#dropzone .dz-file { display: none; }
#dropzone.has-file .dz-empty { display: none; }
#dropzone.has-file {
  border-style: solid;
  border-color: var(--teal);
  background: rgba(62, 207, 178, 0.05);
  padding: 1.1rem 1.2rem;
}
#dropzone.has-file .dz-file {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
}
.dz-thumb {
  position: relative;
  flex-shrink: 0;
  animation: pop-in 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
#dz-preview {
  display: block;
  width: 148px;
  max-height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--panel-edge);
}
.dz-check {
  position: absolute;
  right: -7px; top: -7px;
  width: 22px; height: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: none; }
}
.dz-meta { min-width: 0; }
.dz-name {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dz-meta .hint { margin: 0.15rem 0 0.45rem; }
.dz-replace { margin: 0; font-size: 0.85rem; color: var(--teal); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

label { display: block; margin-top: 1.1rem; font-weight: 600; font-size: 0.95rem; }
input[type="text"], select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--panel-edge);
  background: #100c1e;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.15);
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1.5l5 5 5-5" fill="none" stroke="%23a89fb0" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 11px;
  padding-right: 2.2rem;
}

.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row label { flex: 1; min-width: 130px; }

/* ---------- buttons ---------- */
button {
  margin-top: 1.4rem;
  padding: 0.8rem 1.7rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
button svg { width: 17px; height: 17px; }
button:active:not(:disabled) { transform: translateY(1px) scale(0.99); }

.cta {
  background: var(--grad);
  color: #241004;
  box-shadow: 0 10px 28px -10px rgba(255, 107, 87, 0.65);
}
.cta:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 14px 32px -10px rgba(255, 107, 87, 0.8);
  transform: translateY(-1px);
}
.cta:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.cta.small { padding: 0.65rem 1.3rem; font-size: 0.95rem; }

button.secondary {
  background: transparent;
  border: 1px solid var(--panel-edge);
  color: var(--text);
}
button.secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: #4a3f74; }

/* ---------- progress ---------- */
#progress-panel { text-align: center; padding-bottom: 2.2rem; }
#progress-stage { font-weight: 600; margin: 1.1rem 0 1.4rem; }

.clapper {
  width: 88px;
  margin: 0.8rem auto 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}
.clapper-top {
  display: flex;
  height: 18px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  transform-origin: 6% 100%;
  animation: clap 1.6s cubic-bezier(0.6, -0.3, 0.3, 1.4) infinite;
}
.clapper-top i { flex: 1; }
.clapper-top i:nth-child(odd)  { background: var(--grad); }
.clapper-top i:nth-child(even) { background: #241c40; }
@keyframes clap {
  0%, 55%, 100% { transform: rotate(0deg); }
  25%, 40% { transform: rotate(-22deg); }
}
.clapper-body {
  height: 52px;
  border-radius: 0 0 8px 8px;
  background: #241c40;
  border: 1px solid var(--panel-edge);
  border-top: 2px solid #35295c;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clapper-line { height: 5px; border-radius: 3px; background: #3b2f63; }
.clapper-line.short { width: 60%; }

.stages {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.stages li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s;
}
.stages li svg { width: 17px; height: 17px; }
.stages li.active {
  opacity: 1;
  color: var(--amber);
  font-weight: 600;
}
.stages li.active svg { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.stages li.done { opacity: 0.9; color: var(--teal); }

/* ---------- result ---------- */
h2 { margin-top: 0; letter-spacing: -0.01em; }
.slate { margin-right: 0.15rem; }

.screening {
  padding: 5px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--grad);
}
#preview {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
  background: #000;
}

.warnings { color: var(--amber); font-size: 0.88rem; padding-left: 1.2rem; }

.downloads { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.download:hover {
  border-color: var(--teal);
  background: rgba(62, 207, 178, 0.08);
  transform: translateY(-1px);
}

h3 { margin: 1.6rem 0 0.5rem; }
.shot-list {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.shot-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
}
.shot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 13px; height: 10px;
  border: 2px solid var(--violet);
  border-radius: 3px;
}
.shot-list li + li { border-top: 1px dashed #2b2340; }

.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: flex-end; margin-top: 1.4rem; }
.actions input { flex: 1; min-width: 220px; margin-top: 0; }
.actions button { margin-top: 0.35rem; }

/* ---------- error ---------- */
#error-panel { text-align: center; }
.cut-strip { width: 120px; margin: 0.4rem auto 0.2rem; }
.cut-strip svg { width: 100%; }
#error-panel h2 { color: var(--danger); }
#error-message { color: var(--muted); white-space: pre-wrap; }

/* ---------- footer ---------- */
footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid #221a35;
}
footer a { color: var(--teal); }

/* ---------- small screens & motion ---------- */
@media (max-width: 700px) {
  .hero { flex-direction: column; gap: 1.6rem; }
  .demo { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- FAQ ------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--panel-edge);
  padding: 0.15rem 0;
}
.faq details:last-of-type { border-bottom: none; }
.faq summary {
  cursor: pointer;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; color: var(--teal); }
.faq summary:hover { color: var(--amber); }
.faq details p {
  margin: 0 0 0.9rem;
  padding: 0 0.25rem;
  color: var(--muted);
}
.faq details a { color: var(--teal); }

/* --- Guides ----------------------------------------------------------- */
.brand a {
  display: flex; align-items: center; gap: 0.6rem;
  color: inherit; text-decoration: none;
}
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 1.2rem 0 0; }
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.guide { padding-top: 0.5rem; }
.guide h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 1.4rem 0 0.7rem;
}
.guide .lede { color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.guide article h2 { margin-top: 2rem; }
.guide article p, .guide article li { color: var(--muted); line-height: 1.65; }
.guide article strong { color: var(--text); }
.guide article a { color: var(--teal); }
.guide .steps { padding-left: 1.25rem; }
.guide .steps li, .guide article ul li { margin-bottom: 0.7rem; }
.guide details { border-bottom: 1px solid var(--panel-edge); }
.guide details:last-of-type { border-bottom: none; }
.guide summary { cursor: pointer; padding: 0.7rem 0.2rem; font-weight: 600; color: var(--text); }
.guide details p { margin: 0.2rem 0 0.9rem; }
.guide .cta-row { margin: 2.2rem 0 0.8rem; }
.guide .cta-row .cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; width: auto;
  color: #241004;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
}
.guide .cta-row .cta svg { flex: none; }
