:root {
  --ink: #11243d;
  --muted: #54657e;
  --paper: #fffdf7;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(17, 36, 61, 0.12);
  --accent: #f15b2a;
  --accent-deep: #be3d17;
  --accent-soft: #ffd5b8;
  --shadow: 0 24px 60px rgba(17, 36, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(241, 91, 42, 0.18), transparent 34%),
    radial-gradient(circle at right 20%, rgba(49, 116, 237, 0.12), transparent 26%),
    linear-gradient(180deg, #fff4ea 0%, #fffdf7 45%, #f9fbff 100%);
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  min-height: 100vh;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding-top: 26px;
}

.hero-copy,
.upload-card,
.panel,
.result-card,
.band {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy,
.result-card {
  padding: 34px;
  border-radius: 32px;
}

.upload-card,
.panel {
  padding: 26px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  max-width: 16ch;
}

.lede,
.card-copy,
.panel p,
.band p,
.metric span,
.notice,
.file-subtext,
.checklist,
.secondary-link,
.result-note p,
.stat-card span {
  color: var(--muted);
  line-height: 1.55;
}

.lede {
  margin: 20px 0 0;
  font-size: 1.12rem;
  max-width: 52ch;
}

.stats,
.grid,
.metrics {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card,
.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 36, 61, 0.08);
}

.stat-card strong,
.metric strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.upload-card h2 {
  max-width: none;
}

.card-copy {
  margin: 10px 0 20px;
}

.notice {
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(17, 36, 61, 0.06);
}

.notice-error {
  color: #8d2200;
  background: rgba(241, 91, 42, 0.14);
}

.upload-form {
  display: grid;
  gap: 14px;
}

.file-drop {
  display: grid;
  gap: 8px;
  padding: 24px 18px;
  border: 2px dashed rgba(17, 36, 61, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-label {
  font-size: 1.08rem;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff8f4c);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(241, 91, 42, 0.26);
}

.primary-button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.secondary-link {
  font-weight: 700;
}

.checklist {
  margin: 18px 0 0;
  padding-left: 20px;
}

.band {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 22px;
}

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

.panel h2 {
  margin-bottom: 12px;
}

.result-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.result-card {
  width: min(860px, 100%);
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.preview-frame {
  margin-top: 22px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(17, 36, 61, 0.05);
}

.preview-frame video {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #08111d;
}

.result-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 36, 61, 0.05);
}

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

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-copy,
  .upload-card,
  .panel,
  .result-card {
    padding: 22px;
    border-radius: 24px;
  }

  .shell {
    width: min(100% - 20px, 1120px);
    padding-bottom: 32px;
  }
}
