:root {
  --bg: #f6f2ec;
  --bg-strong: #efe7dc;
  --panel: rgba(255, 252, 248, 0.94);
  --panel-strong: #fffaf4;
  --ink: #1d252b;
  --muted: #667177;
  --accent: #c26a3d;
  --accent-strong: #9f4d23;
  --accent-soft: rgba(194, 106, 61, 0.12);
  --line: rgba(29, 37, 43, 0.09);
  --shadow: 0 16px 42px rgba(43, 31, 20, 0.08);
  --good: #2d7b4d;
  --bad: #a33333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top left, rgba(246, 196, 163, 0.24), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(246, 242, 236, 0.82);
  border-bottom: 1px solid rgba(29, 37, 43, 0.06);
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a,
.footer-links a,
.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.simple-page {
  padding-top: 36px;
}

.card,
.hero,
.article-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
  gap: 24px;
  padding: 24px 28px;
}

.hero-copy,
.hero-panel {
  align-self: stretch;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro,
.section-copy,
.inline-note,
.format-note,
.audio-note,
.field small,
.panel-note,
.preview-head p,
.exports p,
.steps p,
.tips-grid p,
.article-shell p,
.blog-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.actions,
.export-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 18px;
}

.hero-panel,
.mode-switch,
.preview-panel,
.steps article,
.tips-grid article,
.blog-card {
  background: var(--panel-strong);
  border: 1px solid rgba(29, 37, 43, 0.08);
  border-radius: 18px;
}

.hero-panel {
  padding: 24px;
}

.check-list {
  padding-left: 20px;
  margin: 16px 0;
}

.check-list li {
  margin: 0 0 10px;
  line-height: 1.5;
}

.card {
  margin-top: 24px;
  padding: 28px;
}

.mini-intro {
  margin-top: 22px;
  padding: 0 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
}

.create-card {
  padding-bottom: 30px;
}

.section-head {
  margin-bottom: 20px;
}

.grid,
.tips-grid,
.steps,
.blog-list {
  display: grid;
  gap: 18px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tips-grid,
.steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blog-list {
  margin-top: 24px;
}

.blog-card {
  padding: 20px;
}

.blog-date {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.full {
  grid-column: 1 / -1;
}

.field,
fieldset {
  display: block;
}

.field span,
legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}

.field small {
  display: block;
  margin-bottom: 10px;
}

.audio-note,
.format-note,
.audio-warning {
  margin: 10px 0 0;
  line-height: 1.55;
  font-size: 0.94rem;
}

.audio-note,
.format-note {
  color: var(--muted);
}

.audio-warning {
  color: var(--bad);
  font-weight: 700;
}

input[type="text"],
input[type="file"],
select {
  width: 100%;
  border: 1px solid rgba(29, 37, 43, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
}

input[type="text"]:focus,
input[type="file"]:focus,
select:focus {
  outline: 2px solid rgba(194, 106, 61, 0.2);
  border-color: var(--accent);
}

.mode-switch {
  margin: 22px 0;
  padding: 18px;
}

.mode-switch label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.primary,
.download-link,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary,
.download-link {
  border: none;
  background: linear-gradient(135deg, var(--accent), #e08d62);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(194, 106, 61, 0.22);
}

.ghost {
  border: 1px solid rgba(29, 37, 43, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.primary:hover,
.download-link:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.primary:disabled {
  opacity: 0.78;
  cursor: wait;
}

.actions {
  align-items: center;
  margin-top: 24px;
}

.job-panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.job-head,
.exports li,
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(29, 37, 43, 0.1);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: capitalize;
}

.job-badge[data-state="completed"] {
  color: var(--good);
}

.job-badge[data-state="failed"] {
  color: var(--bad);
}

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(29, 37, 43, 0.1);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef9462, #bf5b31);
  transition: width 250ms ease;
}

.job-message,
.job-percent,
.job-error {
  margin: 12px 0 0;
}

.preview-panel {
  margin-top: 22px;
  padding: 18px;
}

.video-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #0f1418;
  aspect-ratio: 16 / 9;
}

#video-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f1418;
}

.job-error {
  color: var(--bad);
}

.tips-grid article,
.steps article {
  padding: 20px;
}

.steps article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.exports {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exports li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.exports li:first-child {
  padding-top: 0;
  border-top: none;
}

.exports strong {
  display: block;
  margin-bottom: 4px;
}

.article-shell {
  padding: 30px;
}

.content-section {
  margin-top: 26px;
}

.content-section h2 {
  margin-bottom: 12px;
}

.post-back {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid rgba(29, 37, 43, 0.08);
  background: rgba(255, 250, 244, 0.8);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.empty {
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .hero,
  .grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 20px, 1120px);
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer-inner {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .card,
  .article-shell {
    padding: 22px;
    border-radius: 20px;
  }

  .job-head,
  .exports li,
  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
