:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #66727c;
  --soft: #eef4f6;
  --line: #dbe2e7;
  --paper: #f5f7f9;
  --panel: #ffffff;
  --graphite: #222a31;
  --teal: #16a394;
  --amber: #f5a623;
  --coral: #f26d62;
  --blue: #4477c8;
  --shadow: 0 22px 70px rgba(22, 32, 38, .12);
  --shadow-tight: 0 10px 30px rgba(22, 32, 38, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfcfd 0, var(--paper) 420px),
    var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 226, 231, .8);
  background: rgba(247, 249, 251, .9);
  backdrop-filter: blur(14px);
}
.brand, nav { display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--graphite);
  border-radius: 8px;
}
nav {
  padding: 5px;
  border: 1px solid rgba(219, 226, 231, .75);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
nav a {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}
nav a:hover { color: var(--ink); }
.contact-link {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(22, 32, 38, .04);
}

.workspace {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
}
h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; }
h3 { margin-bottom: 10px; font-size: 18px; }
.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}
.metric-row span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  color: var(--muted);
  white-space: nowrap;
  box-shadow: var(--shadow-tight);
}
.metric-row strong { color: var(--ink); }

.quick-tools {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(219, 226, 231, .88);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-tight);
}
.quick-tools-head {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px 10px;
}
.quick-tools-head span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.quick-tools-head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.quick-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.quick-tool-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border-color: #d5e0e6;
  background: linear-gradient(180deg, #ffffff, #f7fafb);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}
.quick-tool-grid button:hover {
  border-color: var(--teal);
  background: #f5fffd;
}
.quick-tool-grid button.selected {
  border-color: var(--teal);
  background: #ebfaf7;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 148, .12);
}
.quick-tool-grid svg {
  flex: 0 0 auto;
  color: var(--teal);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr) minmax(260px, 340px);
  gap: 16px;
  min-height: 520px;
}
.tool-shell > * { min-width: 0; }
.panel, .preview-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 8px;
}
.panel-head, .preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.panel-head strong, .preview-head strong {
  color: var(--ink);
  text-transform: none;
}
.preview-head {
  width: min(100%, 860px);
  padding-inline: 2px;
}
.status-dot {
  width: 8px;
  height: 8px;
  margin-right: -4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 163, 148, .12);
}
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}
input[type="range"] { padding-inline: 0; accent-color: var(--teal); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.drop-zone {
  min-height: 162px;
  place-items: center;
  border: 1px dashed #a9b7c2;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f7fafb);
  text-align: center;
  cursor: pointer;
}
.drop-zone:hover {
  border-color: var(--teal);
  background: #f8fffd;
}
.drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e8f7f5;
  color: var(--teal);
}
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { color: var(--ink); font-size: 17px; font-weight: 850; }
#file-name { max-width: 100%; color: var(--muted); overflow-wrap: anywhere; font-weight: 600; }
.trust-note {
  padding: 12px;
  border: 1px solid #d6ece8;
  border-radius: 8px;
  background: #f0faf8;
  color: #316861;
  font-size: 12px;
  line-height: 1.5;
}

.poster {
  width: min(100%, 860px);
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: 34px 1fr 58px 54px 44px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--graphite);
  color: white;
  box-shadow: 0 26px 80px rgba(23, 32, 38, .28);
}
.poster-toolbar { display: flex; gap: 8px; align-items: center; padding: 0 14px; background: #151b20; }
.poster-toolbar span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.poster-toolbar span:nth-child(2) { background: var(--amber); }
.poster-toolbar span:nth-child(3) { background: var(--teal); }
.video-frame {
  position: relative;
  margin: 14px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(68,119,200,.88), rgba(22,163,148,.72) 45%, rgba(245,166,35,.8)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.55), transparent 34%);
}
.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play-button svg {
  width: 58px;
  height: 58px;
  padding: 15px;
  border-radius: 50%;
  fill: currentColor;
  stroke: none;
  background: rgba(255,255,255,.2);
}
.timeline, .waveform, .captions { margin-inline: 14px; }
.timeline {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr .9fr;
  gap: 6px;
  align-items: center;
  position: relative;
}
.timeline span {
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(90deg, #385f9e, #54b8aa);
}
.timeline i {
  position: absolute;
  left: 52%;
  top: 3px;
  width: 2px;
  height: 50px;
  background: white;
}
.waveform {
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, var(--teal) 0 3px, transparent 3px 8px),
    linear-gradient(#26313a, #26313a);
}
.captions { display: grid; grid-template-columns: 1fr .8fr 1.1fr; gap: 8px; align-items: center; }
.captions span { height: 20px; border-radius: 4px; background: var(--coral); }
.pipeline-row {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pipeline-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.pipeline-row i {
  height: 1px;
  background: var(--line);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
}
.mode-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 9px 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.mode-tabs button.active { background: white; color: var(--ink); box-shadow: 0 1px 7px rgba(23, 32, 38, .09); }
.estimate {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px;
  border-radius: 8px;
  background: #f4f8fa;
  color: var(--muted);
}
.estimate strong { color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.job-summary {
  display: grid;
  gap: 8px;
}
.job-summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.job-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.job-summary strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}
.command-box {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: 210px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  background: #11171c;
  color: #d9f7f1;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.primary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}
.primary { border-color: var(--ink); background: var(--ink); color: white; }
.ghost { background: white; color: var(--ink); }
.support-link {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.support-link:hover { color: var(--teal); }

.workspace-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.workspace-status span {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(22, 32, 38, .04);
}
.workspace-status strong {
  color: var(--ink);
  white-space: nowrap;
}

.band, .ad-band {
  padding: clamp(38px, 6vw, 78px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.section-copy {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}
.cards, .resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card, .resource {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 0 rgba(22, 32, 38, .04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.card:hover, .resource:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-tight);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  margin-bottom: 22px;
  border-radius: 7px;
  background: #edf6ff;
  color: var(--blue);
  font-weight: 850;
}
.card:nth-child(2) .card-icon { background: #fff4de; color: #a86605; }
.card:nth-child(3) .card-icon { background: #ffefed; color: #b63c32; }
.card:nth-child(4) .card-icon { background: #e9f7f5; color: #08796d; }
.card p, .resource span { color: var(--muted); line-height: 1.6; }
.ad-band {
  display: grid;
  grid-template-columns: minmax(0, 390px) 1fr;
  gap: 20px;
  align-items: center;
  background: #edf2f4;
}
.ad-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px dashed #94a3ad;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
}
.content-split {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  background: white;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-steps article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.guide-steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 850;
}
.guide-steps p, .faq-list p {
  color: var(--muted);
  line-height: 1.65;
}
.resources .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource { display: grid; gap: 12px; min-height: 150px; }
.resource:hover { border-color: var(--teal); }
.faq-section { background: #f9fbfc; }
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 0 rgba(22, 32, 38, .04);
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 850;
}
.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
}
footer a:hover { color: var(--ink); }

@media (max-width: 1020px) {
  .intro, .ad-band, .content-split { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .metric-row { justify-content: start; }
  .quick-tools { grid-template-columns: 1fr; }
  .quick-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-shell { grid-template-columns: 1fr; }
  .preview-panel { order: -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-steps { grid-template-columns: 1fr; }
  .workspace-status { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { align-items: center; }
  nav { display: none; }
  .contact-link { margin-left: auto; }
  .workspace { padding: 24px 14px; }
  .field-grid, .action-row, .cards, .resources .resource-grid { grid-template-columns: 1fr; }
  .quick-tool-grid { grid-template-columns: 1fr 1fr; }
  .quick-tool-grid button {
    min-height: 48px;
    white-space: normal;
  }
  h1 { font-size: 44px; }
  .poster { grid-template-rows: 30px 1fr 44px 42px 34px; }
  .pipeline-row { grid-template-columns: repeat(4, 1fr); }
  .pipeline-row i { display: none; }
}
