:root {
  --paper: #f5f0e6;
  --paper-deep: #e9e1d3;
  --ink: #1d1c19;
  --muted: #6f6b63;
  --vermilion: #e4573d;
  --olive: #75836a;
  --white: #fffdf8;
  --line: rgba(29, 28, 25, 0.18);
  --shadow: 0 30px 70px rgba(72, 55, 36, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(29, 28, 25, 0.045) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 70%, rgba(29, 28, 25, 0.035) 0 0.6px, transparent 0.7px);
  background-size: 9px 9px, 13px 13px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.wordmark-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50% 50% 44% 56%;
  transform: rotate(-5deg);
}

.edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.edition-pill i {
  width: 8px;
  height: 8px;
  background: var(--olive);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(117, 131, 106, 0.14);
}

.hero {
  min-height: 750px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  padding: 76px 0 96px;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--vermilion);
  font-variant-numeric: tabular-nums;
}

h1, h2, p { text-wrap: pretty; }

h1 {
  margin: 0;
  font-size: clamp(58px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

h1 em {
  color: var(--vermilion);
  font-style: normal;
}

.hero-description {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
}

.proof-list {
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  list-style: none;
  border-top: 1px solid var(--line);
}

.proof-list li {
  flex: 1;
  padding: 20px 16px 0 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.proof-list li + li { padding-left: 16px; }
.proof-list li:last-child { border-right: 0; }
.proof-list strong { font-size: 16px; }
.proof-list span { color: var(--muted); font-size: 13px; }

.stage-card {
  position: relative;
  padding: 28px;
  background: var(--ink);
  border-radius: 32px 32px 12px 32px;
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}

.stage-number {
  position: absolute;
  top: -23px;
  right: -16px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--vermilion);
  border-radius: 50%;
  font-weight: 900;
  transform: rotate(7deg);
}

.stage-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-radius: 18px;
}

.slide-preview { padding: 34px 25px; }
.slide-preview strong { display: block; margin-top: 13px; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.08; }
.slide-kicker { color: var(--vermilion); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; }
.slide-line { display: block; width: 38%; height: 7px; margin-top: 20px; background: var(--olive); border-radius: 10px; }

.avatar-preview {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 68%;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50% 50% 16px 16px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.subtitle-preview {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 20px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(29, 28, 25, 0.86);
  border-radius: 7px;
  text-align: center;
  font-size: 10px;
}

.stage-caption {
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 253, 248, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.workspace {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 48px;
}

h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.upload-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.5);
}

.file-card {
  position: relative;
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.file-card:hover,
.file-card:focus-within { background: var(--white); }
.file-card:focus-within { outline: 3px solid rgba(228, 87, 61, 0.35); outline-offset: -3px; }
.file-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-step { color: var(--vermilion); font-size: 12px; font-weight: 900; letter-spacing: 0.09em; }
.optional-card .file-step { color: var(--olive); }
.file-icon { width: 54px; height: 54px; margin: 34px 0 23px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 20px; }
.file-card strong { font-size: 23px; }
.file-help { margin-top: 6px; color: var(--muted); font-size: 14px; }
.file-name { margin-top: auto; padding-top: 24px; color: var(--vermilion); font-size: 14px; font-weight: 900; overflow-wrap: anywhere; }
.optional-card .file-name { color: var(--olive); }

.form-footer {
  grid-column: 1 / -1;
  min-height: 110px;
  padding: 24px 28px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  background: var(--ink);
}

.form-footer p { max-width: 660px; margin: 0; color: rgba(245, 240, 230, 0.68); font-size: 13px; }

button,
.download-button {
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--vermilion);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

button:hover,
.download-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
button:disabled { opacity: 0.5; cursor: wait; transform: none; }

.progress-panel,
.result-panel {
  margin: 40px 0 96px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 24px;
}

[hidden] { display: none !important; }

.progress-panel { color: var(--paper); background: var(--ink); }
.progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.progress-panel .eyebrow { color: rgba(245, 240, 230, 0.62); }
.progress-panel h2 { font-size: clamp(38px, 5vw, 64px); }
.progress-stamp { width: 96px; height: 96px; display: grid; place-items: center; color: var(--paper); border: 2px solid var(--vermilion); border-radius: 50%; font-weight: 950; transform: rotate(6deg); }
.progress-track { height: 9px; margin-top: 48px; overflow: hidden; background: rgba(245, 240, 230, 0.14); border-radius: 9px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--vermilion); transition: width 360ms ease; }
.progress-panel > p { margin-bottom: 0; color: rgba(245, 240, 230, 0.72); }

.result-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; background: var(--olive); }
.result-copy { color: var(--white); }
.result-copy .eyebrow { color: rgba(255, 253, 248, 0.72); }
.result-copy .eyebrow span { color: var(--paper); }
.result-copy p:not(.eyebrow) { color: rgba(255, 253, 248, 0.76); }
.download-button { margin-top: 20px; background: var(--ink); }
.video-frame { padding: 16px; background: var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.video-frame video { width: 100%; max-height: 720px; display: block; background: #000; border-radius: 12px; }

.how-it-works { padding: 100px 0 120px; border-top: 1px solid var(--line); }
.how-it-works h2 { max-width: 700px; }
.how-it-works ol { margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--ink); }
.how-it-works li { padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.how-it-works li + li { padding-left: 20px; }
.how-it-works li:last-child { border-right: 0; }
.how-it-works li > span { color: var(--vermilion); font-size: 12px; font-weight: 900; }
.how-it-works li strong { display: block; margin-top: 24px; font-size: 19px; }
.how-it-works li p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer span:first-child { color: var(--ink); font-size: 18px; font-weight: 900; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 0.65fr; gap: 42px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .file-card { min-height: 280px; padding: 22px; }
  .result-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 1180px); }

  .site-header { height: 78px; }
  .edition-pill { font-size: 0; padding: 10px; }
  .edition-pill i { margin: 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 58px 0 72px; }
  h1 { font-size: clamp(54px, 17vw, 78px); }
  .proof-list { flex-wrap: wrap; }
  .proof-list li { min-width: 33%; }
  .stage-card { width: min(82%, 360px); margin: 10px auto 0; transform: rotate(1deg); }
  .workspace { padding: 72px 0; }
  .upload-panel { grid-template-columns: 1fr; }
  .file-card { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .file-icon { margin: 22px 0 16px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer button { width: 100%; }
  .progress-heading { align-items: center; }
  .progress-stamp { width: 72px; height: 72px; }
  .how-it-works { padding-bottom: 80px; }
  .how-it-works ol { grid-template-columns: 1fr 1fr; }
  .how-it-works li { min-height: 180px; border-bottom: 1px solid var(--line); }
  footer { padding: 28px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
