:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #5b665f;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --line: #dce3dc;
  --accent: #176b5c;
  --accent-dark: #0e473f;
  --amber: #f1a542;
  --rose: #c94d69;
  --blue: #386fa4;
  --shadow: 0 18px 50px rgba(23, 32, 26, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand small,
.eyebrow,
.ad-shell span,
.side-ad > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 86px) clamp(18px, 4vw, 54px) 36px;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.workspace h2,
.trust-band h2,
.content-grid h2,
.faq h2 {
  margin: 8px 0 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: 5rem;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.62;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: min(58vw, 540px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(23, 107, 92, 0.95), rgba(56, 111, 164, 0.9) 48%, rgba(201, 77, 105, 0.92));
}

#ambientCanvas {
  width: 100%;
  height: 100%;
  min-height: min(58vw, 540px);
  display: block;
}

.film-strip {
  position: absolute;
  inset: auto 0 32px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0 28px;
}

.film-strip span {
  height: clamp(58px, 8vw, 98px);
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 8px, transparent 8px 20px);
}

.ad-shell,
.side-ad {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px dashed #b9c5bc;
  background: #f6f8f2;
}

.ad-top {
  margin: 24px clamp(18px, 4vw, 54px);
}

.workspace,
.trust-band,
.content-grid,
.faq {
  padding: clamp(42px, 6vw, 82px) clamp(18px, 4vw, 54px);
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.workspace h2,
.trust-band h2,
.content-grid h2,
.faq h2 {
  font-size: 2.8rem;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr) minmax(220px, 0.42fr);
  gap: 18px;
}

.panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 26, 0.05);
}

.panel {
  padding: 18px;
}

.panel h3,
.result-panel h3,
.content-grid h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 18px;
  border: 2px dashed #b9c5bc;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: #f7faf4;
}

.dropzone.dragging {
  border-color: var(--accent);
  background: #edf8f2;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.dropzone small,
.file-meta,
.command-preview,
.result-panel p,
.content-grid p,
.trust-band p,
.trust-band li,
.faq p {
  color: var(--muted);
  line-height: 1.55;
}

.file-meta {
  margin: 12px 0;
  font-size: 0.92rem;
}

video {
  display: none;
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  background: #101615;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.mode {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.mode.active {
  border-color: var(--accent);
  background: #e9f5f0;
  color: var(--accent-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 720;
  color: #2f3933;
}

input[type="number"],
input[type="range"] {
  width: 100%;
}

input[type="number"] {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.checkbox-line {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.command-preview {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f7f1;
}

.command-preview code {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.result-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
}

progress {
  width: 100%;
  height: 14px;
}

.output-area {
  display: grid;
  gap: 12px;
}

.output-area video,
.output-area img,
.output-area audio {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 28px;
  background: #102420;
  color: #fff;
}

.trust-band p,
.trust-band li {
  color: rgba(255,255,255,0.78);
}

.trust-band ul {
  margin: 0;
  padding-left: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) repeat(3, minmax(180px, 1fr));
  gap: 18px;
}

.content-grid article,
.faq details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.faq {
  max-width: 980px;
}

.faq details {
  padding-bottom: 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1000px) {
  .hero,
  .tool-grid,
  .trust-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-ad {
    min-height: 150px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .workspace h2,
  .trust-band h2,
  .content-grid h2,
  .faq h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .actions,
  .tool-head,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mode-tabs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .workspace h2,
  .trust-band h2,
  .content-grid h2,
  .faq h2 {
    font-size: 1.9rem;
  }
}
