:root {
  --ink: #14171C;
  --ink-soft: #1D2128;
  --paper: #F7F5F0;
  --paper-dim: #EFEBE2;
  --line: #2A2E36;
  --line-soft: rgba(255,255,255,0.08);
  --mute: #9A9DA6;
  --mute-on-paper: #6B6A63;
  --accent: #FF6B35;
  --accent-deep: #C9431A;
  --accent-soft: #FFE2D1;
  --white: #FFFFFF;

  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --maxw: 1180px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 16px;
}
.brand-mark span {
  display: block;
  height: 3px;
  border-radius: 1px;
  background: var(--accent);
}
.brand-mark span:nth-child(2) { width: 70%; background: var(--accent-deep); }
.brand-mark span:nth-child(3) { width: 40%; }

.site-nav {
  display: flex;
  gap: 32px;
}
.site-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #FF8255; }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: #C6C9D1;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--mute);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: #FF8255; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-soft);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); }
.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: #D8D2C2;
}
.btn-ghost-light:hover { border-color: var(--accent-deep); background: var(--accent-soft); }
.btn-full { width: 100%; }

/* Hero visual: filmstrip signature */
.hero-visual { display: flex; justify-content: center; }
.strip-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.filmstrip {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.frame {
  width: 30px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(160deg, #3A4150, #232730);
  border: 1px solid rgba(255,255,255,0.06);
  animation: pulse 2.4s ease-in-out infinite;
}
.frame:nth-child(1) { animation-delay: 0s; }
.frame:nth-child(2) { animation-delay: 0.15s; }
.frame:nth-child(3) { animation-delay: 0.3s; }
.frame:nth-child(4) { animation-delay: 0.45s; }
.frame:nth-child(5) { animation-delay: 0.6s; }
.frame:nth-child(6) { animation-delay: 0.75s; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; border-color: var(--accent); }
}
.strip-arrow {
  color: var(--accent);
  opacity: 0.85;
}
.output-strip {
  width: 92px;
  height: 230px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(
      to bottom,
      #3A4150 0px, #3A4150 36px,
      #2A2E36 36px, #2A2E36 38px
    );
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.output-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--ink) 100%);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { display: none; }
  .hero { padding: 16px 0 32px; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { margin-bottom: 14px; }
  .lede { margin-bottom: 20px; font-size: 16px; }
  .hero-actions { margin-bottom: 16px; }
  .hero-trust { display: none; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 32px; }
  .converter-section { padding-bottom: 60px; }
  .converter-card { padding: 24px; }
}

/* ---------- Converter ---------- */
.converter-section {
  background: var(--ink);
  padding: 0 0 100px;
}
.converter-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--ink);
}

.dropzone {
  border: 2px dashed #D8D2C2;
  border-radius: var(--radius-md);
  padding: 64px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dz-icon {
  color: var(--accent-deep);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.dz-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dz-sub {
  font-size: 14px;
  color: var(--mute-on-paper);
}

.workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}
.video-pane {
  background: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-pane video {
  width: 100%;
  max-height: 380px;
  background: #000;
}
.video-meta {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mute);
}

.controls-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mute-on-paper);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.control-group { margin-bottom: 24px; }
.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.control-label-row label {
  font-size: 14.5px;
  font-weight: 600;
}
.control-value { font-size: 13.5px; color: var(--accent-deep); }
.control-hint {
  font-size: 12.5px;
  color: var(--mute-on-paper);
  margin-top: 6px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-deep);
}
input[type="text"] {
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #D8D2C2;
  border-radius: var(--radius-sm);
  background: var(--white);
  width: 100%;
}
.range-inputs {
  display: flex;
  gap: 14px;
}
.range-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--mute-on-paper);
}

.segmented {
  display: flex;
  border: 1px solid #D8D2C2;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.seg-btn {
  flex: 1;
  background: var(--white);
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid #D8D2C2;
  color: var(--ink);
}
.seg-btn:last-child { border-right: none; }
.seg-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.controls-pane .btn { margin-bottom: 10px; }

@media (max-width: 820px) {
  .workspace { grid-template-columns: 1fr; }
  .converter-card { padding: 26px; }
}

/* Progress */
.progress-pane { padding: 40px 0; text-align: center; }
.progress-track {
  height: 8px;
  background: var(--paper-dim);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute-on-paper);
}

/* Result */
.result-pane { padding-top: 8px; }
.result-frame {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 520px;
  overflow: auto;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.result-frame img {
  border-radius: 4px;
}
.result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.result-meta { font-size: 13px; color: var(--mute-on-paper); }
.result-buttons { display: flex; gap: 12px; }
.result-buttons .btn-primary { color: var(--ink); text-decoration: none; }

/* ---------- How it works ---------- */
.how-section, .uses-section, .faq-section {
  padding: 88px 0;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.how-num {
  display: block;
  font-size: 13px;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mute-on-paper);
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 560px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------- Use cases ---------- */
.uses-section { background: var(--paper-dim); }
.uses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.use-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid #E5E0D3;
}
.use-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.use-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mute-on-paper);
}
@media (max-width: 700px) {
  .uses-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust ---------- */
.trust-section {
  background: var(--ink);
  color: var(--white);
  padding: 88px 0;
}
.trust-inner { max-width: 720px; }
.trust-section .section-title { color: var(--white); }
.trust-copy {
  font-size: 16.5px;
  line-height: 1.7;
  color: #C6C9D1;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  border-top: 1px solid #E5E0D3;
}
.faq-item {
  border-bottom: 1px solid #E5E0D3;
  padding: 20px 0;
}
.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--accent-deep);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mute-on-paper);
  max-width: 640px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mute);
}
.footer-sep { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .frame { animation: none; opacity: 0.85; }
  html { scroll-behavior: auto; }
}
