:root {
  --ink: #162027;
  --muted: #65727e;
  --panel: #ffffff;
  --line: #d9e1e7;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #c9882e;
  --bg: #eef3f6;
  --night: #111820;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { min-height: 100vh; }
.file-warning {
  display: grid;
  gap: 4px;
  padding: 12px clamp(18px, 4vw, 58px);
  color: #4c2f00;
  background: #fff2ce;
  border-bottom: 1px solid #e2bc63;
}
.file-warning strong {
  font-size: 15px;
}
.file-warning span {
  font-size: 14px;
}
.file-warning code {
  background: rgba(255, 255, 255, 0.72);
}
.hero {
  min-height: 76vh;
  padding: 22px clamp(18px, 4vw, 58px) 44px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(17, 24, 32, 0.92), rgba(17, 24, 32, 0.58)),
    radial-gradient(circle at 78% 24%, rgba(201, 136, 46, 0.34), transparent 28%),
    linear-gradient(135deg, #0d3437, #151b22);
}
.nav, .hero-grid, .studio, .pricing, .api {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand, .nav-actions, .hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
}
.nav-actions a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
  padding-top: 72px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, p { letter-spacing: 0; }
h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.96;
}
.lead {
  max-width: 630px;
  margin: 22px 0;
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  line-height: 1.45;
}
.button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}
.button.primary { color: #fff; background: var(--accent); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button.full { width: 100%; }
.button.compact { min-width: 104px; padding: 0 14px; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.hero-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}
.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}
.meter span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.media-lines {
  display: grid;
  gap: 13px;
  margin: 26px 0;
}
.media-lines i {
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.17);
}
.media-lines i:nth-child(2), .media-lines i:nth-child(5) { width: 76%; }
.media-lines i:nth-child(3) { width: 88%; }
.hero-card p { color: rgba(255,255,255,0.76); }
.studio {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 0px);
  margin-top: -18px;
}
.panel, .preview, .pricing article, .api {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
}
.panel h2, .preview h2, .pricing h2, .api h2 {
  margin: 0;
}
.drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  text-align: center;
  border: 1px dashed #93a1ad;
  border-radius: 8px;
  cursor: pointer;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop span { font-weight: 900; }
.drop small, .status, #helper, .api p, .pricing span { color: var(--muted); }
.control, .slider {
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef3f6;
}
.segmented input { position: absolute; opacity: 0; }
.segmented b {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
.segmented input:checked + b {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 1px 6px rgba(17, 24, 32, 0.12);
}
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="color"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}
.preview {
  min-width: 0;
  padding: 18px;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.quick-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 112px;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}
.quick-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 6px;
}
.quick-modes input {
  position: absolute;
  opacity: 0;
}
.quick-modes b {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
.quick-modes input:checked + b {
  border-color: rgba(15, 118, 110, 0.55);
  color: #fff;
  background: var(--accent);
}
.quick-color {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.quick-color input {
  width: 100%;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
#jobBadge {
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e3f5f1;
  font-weight: 800;
  font-size: 13px;
}
.canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
}
canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: crosshair;
}
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #d8e0e7;
  text-align: center;
}
video {
  width: 100%;
  max-height: 108px;
  margin-top: 12px;
  border-radius: 8px;
  background: #000;
}
.progress {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ea;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 0px) 28px;
}
.pricing article {
  display: grid;
  gap: 8px;
  padding: 20px;
}
.pricing p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 900;
}
.pricing .featured {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 16px 42px rgba(17,24,32,0.12);
}
.api {
  padding: 20px;
  margin-bottom: 36px;
}
code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf2f5;
}
@media (max-width: 900px) {
  .hero-grid, .studio, .pricing { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .quick-tools { grid-template-columns: 1fr; }
  .quick-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .hero { min-height: 84vh; }
  .hero-actions, .nav-actions { flex-wrap: wrap; }
  .canvas-wrap { min-height: 330px; }
  .preview-head { align-items: flex-start; flex-direction: column; }
  .segmented { grid-template-columns: 1fr; }
}
