:root { color-scheme: dark; font: 16px/1.5 system-ui, sans-serif; background: #101114; color: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(100% - 2rem, 960px); margin: 0 auto; padding: 2rem 0 4rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; min-height: 3rem; margin-bottom: 5rem; }
.brand { color: #f3f4f6; font-weight: 750; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a { min-height: 2.5rem; padding: .55rem .8rem; border: 1px solid transparent; border-radius: .5rem; color: #9ba3af; font-size: .9rem; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: #526071; color: #f3f4f6; outline: none; }
.nav-links a.active { border-color: #3c6756; color: #74e0b4; background: #1b2a25; }
.page-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.eyebrow { color: #74e0b4; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: .95; margin: .4rem 0 1rem; }
h2 { margin: 0; font-size: 1.1rem; }
header > p:not(.eyebrow) { max-width: 46rem; color: #b9bec8; }
.card { background: #191b20; border: 1px solid #30343d; border-radius: 1rem; padding: 1rem; margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .75rem; }
.section-heading span { color: #9ba3af; font-size: .875rem; }
.preview-stage {
  position: relative;
  width: 100%;
  min-height: 12rem;
  max-height: 65vh;
  overflow: hidden;
  border-radius: .6rem;
  background: #0a0b0d;
}
.preview-stage video,
.preview-stage canvas {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #0a0b0d;
}
.preview-stage video.is-hidden,
.preview-stage canvas.is-hidden {
  display: none !important;
}
.controls { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
button, .button, .file-button { border: 1px solid #526071; border-radius: .5rem; padding: .65rem .85rem; background: #242a33; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover:not(.disabled), .file-button:hover { border-color: #74e0b4; }
.primary-action { width: 100%; border-color: #74e0b4; background: #237a55; font-weight: 700; }
.primary-action:hover:not(:disabled) { background: #2e9a6c; }
.primary-action.processing { background: #2f765c; cursor: wait; }
.primary-action.saved { background: #36a269; animation: saved-pulse .35s ease-out; }
@keyframes saved-pulse { 50% { transform: scale(1.015); } }
button:disabled, .disabled { cursor: not-allowed; opacity: .45; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.status { color: #74e0b4; margin: .85rem 0 0; min-height: 1.4em; }
.error { color: #ff9e9e; margin: .25rem 0; }
.privacy { color: #818995; font-size: .875rem; }
@media (max-width: 560px) {
  .shell { padding: 1rem 0 2rem; }
  .site-nav { flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .page-header { flex-direction: column; }
}
