:root {
  --bg: #ffffff;
  --text: #0d0d0d;
  --muted: #5d5d5d;
  --faint: #8f8f8f;
  --line: #e5e5e5;
  --surface: #f4f4f4;
  --accent: #2e6fe0;
  --claude: #d97757;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p, small, .v, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.ph { display: inline-block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand span { font-size: 1.125rem; }
.links { display: flex; gap: 28px; font-size: 0.875rem; }
.links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.links a:hover { color: var(--text); }

.video {
  position: relative;
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0d0d;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 55% at 22% 30%, #8fb4ff 0%, transparent 70%),
    radial-gradient(35% 50% at 78% 65%, #2e6fe0 0%, transparent 70%),
    radial-gradient(30% 40% at 60% 20%, #f2c9a8 0%, transparent 70%),
    radial-gradient(45% 60% at 35% 85%, #c9d8ff 0%, transparent 70%),
    #e9eef8;
  filter: saturate(1.05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: #fff;
}
.poster::after {
  content: ""; position: absolute; inset: 0;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  z-index: 0;
}
.poster > * { position: relative; z-index: 1; }
.poster p { margin: 0; font-size: 0.9375rem; font-weight: 500; color: rgba(13, 13, 13, 0.7); }

header.hero { padding: 72px 0 40px; }
.eyebrow { font-size: 0.875rem; color: var(--muted); margin: 0 0 18px; }
h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.lede {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 28px 0 0;
}

section { padding: 96px 0 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
.label { font-size: 0.875rem; color: var(--muted); margin: 0; }
h2 {
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.sub { color: var(--muted); max-width: 760px; margin: 4px 0 0; }

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row .k { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.row .v { font-size: 1.125rem; }
.row .v small { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }

.timeline { position: relative; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline .track, .timeline .fill { position: absolute; top: 6px; left: 7px; right: 0; height: 2px; border-radius: 2px; }
.timeline .track { background: var(--line); }
.timeline .fill { background: var(--text); right: auto; width: 0; }
.timeline.is-on .fill { width: calc(100% - 7px); transition: width 2.4s linear; }
.tl-item { position: relative; padding-top: 36px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  background: var(--bg); border: 2px solid var(--line);
  transition: border-color .3s, background .3s, transform .3s;
}
.tl-time { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; margin-bottom: 6px; transition: color .3s; }
.tl-item h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.tl-item p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.js .tl-body, .js .tl-time { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease, color .3s; }
.timeline.is-on .tl-item::before { border-color: var(--text); background: var(--text); transition-delay: calc(var(--i) * .6s); }
.timeline.is-on .tl-time { color: var(--text); }
.timeline.is-on .tl-body, .timeline.is-on .tl-time { opacity: 1; transform: none; transition-delay: calc(var(--i) * .6s + .1s); }
.tl-split { display: flex; gap: 4px; max-width: 260px; margin-top: 14px; }
.tl-split span { flex: 1; height: 8px; border-radius: 4px; background: var(--surface); position: relative; overflow: hidden; }
.tl-split span::after {
  content: ""; position: absolute; inset: 0; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.tl-split span.qa::after { background: var(--claude); }
.timeline.is-on .tl-split span::after { transform: scaleX(1); }
.timeline.is-on .tl-split span:nth-child(1)::after { transition-delay: .9s; }
.timeline.is-on .tl-split span:nth-child(2)::after { transition-delay: 1.3s; }
.timeline.is-on .tl-split span:nth-child(3)::after { transition-delay: 1.7s; }
.timeline.is-on .tl-split span:nth-child(4)::after { transition-delay: 2.1s; }
.tl-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.tl-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--text); }
.tl-legend i.qa { background: var(--claude); }
@media (prefers-reduced-motion: reduce) {
  .timeline *, .timeline *::before, .timeline *::after { transition: none !important; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: 20px; padding: 28px 28px 32px; }
.step .n { font-size: 0.875rem; color: var(--muted); }
.step h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; margin: 56px 0 8px; }
.step .art { display: block; height: 104px; width: auto; margin: 20px 0 0; transition: transform .4s ease; }
/* Illustrations keep moving on their own */
.step .art { animation: drift 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1deg); } }
.art .a-float { animation: float 2.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.art .a-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar 2.4s ease-in-out infinite; }
.art .a-bar:nth-of-type(3) { animation-delay: .2s; }
.art .a-bar:nth-of-type(4) { animation-delay: .4s; }
.art .a-bar:nth-of-type(5) { animation-delay: .6s; }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
.art .a-point { transform-box: fill-box; transform-origin: 0 100%; animation: point 2.4s ease-in-out infinite; }
@keyframes point { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.art .a-drop { animation: drop 2.2s cubic-bezier(.5, 0, .7, 1) infinite; }
@keyframes drop { 0% { transform: translateY(-8px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(14px); opacity: 1; } 85%, 100% { transform: translateY(14px); opacity: 0; } }
.art .a-light { animation: light 3s ease-in-out infinite; }
@keyframes light { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
.js .step:not(.done) .art { opacity: 0; transform: translateY(14px); }
.js .step.seen:not(.done) .art { animation: pop .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .step .art, .step .art, .art * { opacity: 1; transform: none; animation: none !important; } }
.step .art + h3 { margin-top: 20px; }
.criteria .step .art { height: 64px; }
.pending .art { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto 20px; }
.prize .worth { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 0.9375rem; font-weight: 500; }
.prize .worth small { color: rgba(255, 255, 255, 0.8); font-size: 0.8125rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.money { margin-top: 16px; }
.bill-stage {
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 30% 20%, #dfe8fb 0%, transparent 70%),
    radial-gradient(60% 80% at 80% 90%, #f6e6d8 0%, transparent 70%),
    #f4f4f4;
  display: grid; place-items: center;
  padding: 48px 24px;
  min-height: 320px;
}
.bill {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 2.2 / 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8efe3 0%, #d5e2cf 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #2f4a2a;
  transform: rotate(-4deg);
}
.bill::before {
  content: ""; position: absolute; inset: 8px;
  border: 1.5px solid rgba(47, 74, 42, 0.35); border-radius: 6px;
}
.bill .top, .bill .bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 600; }
.bill .amount { font-size: 2.75rem; font-weight: 600; letter-spacing: -0.02em; text-align: center; line-height: 1; }
.bill .amount span { filter: blur(9px); }
.bill .seal { font-size: 1.625rem; }

.prize {
  border-radius: 20px;
  background: var(--claude);
  color: #fff;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.prize .label { color: rgba(255, 255, 255, 0.78); }
.prize h3 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 0; }
.prize p { color: rgba(255, 255, 255, 0.88); margin: 16px 0 0; max-width: 520px; }
.prize .rank { font-size: clamp(4.5rem, 12vw, 8.75rem); font-weight: 500; letter-spacing: -0.05em; line-height: .8; }
.prize .side { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 32px); }
.clawd { width: clamp(96px, 13vw, 150px); height: auto; display: block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .clawd { animation: none; } }


.pending { border: 1px dashed var(--line); border-radius: 20px; padding: 48px 24px; text-align: center; }
.pending p { margin: 0; }
.pending .label { margin-bottom: 6px; }

footer { margin-top: 120px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 48px; font-size: 0.875rem; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Centered layout */
main { text-align: center; }
.lede, .sub { margin-left: auto; margin-right: auto; }
.section-head { justify-items: center; }
.step .art { margin-left: auto; margin-right: auto; }
.tl-item::before { left: 50%; margin-left: -7px; }
.timeline .track, .timeline .fill { left: calc(12.5% - 9px); right: calc(12.5% - 9px); }
.timeline .fill { right: auto; }
.timeline.is-on .fill { width: calc(75% + 18px); }
.tl-split { margin-left: auto; margin-right: auto; }
.tl-legend { justify-content: center; }
.rows { max-width: 720px; margin-left: auto; margin-right: auto; }
.row { grid-template-columns: 1fr; gap: 4px; }
.prize { grid-template-columns: 1fr; justify-items: center; }
.prize .side { order: -1; }
.prize p { margin-left: auto; margin-right: auto; }
footer .wrap { justify-content: center; flex-direction: column; align-items: center; text-align: center; }

@media (max-width: 800px) {
  :root { --gutter: 16px; }
  header.hero { padding: 48px 0 24px; }
  section { padding-top: 72px; }
  .video { border-radius: 14px; margin-top: 4px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .tl-list { grid-template-columns: 1fr; gap: 36px; }
  .timeline .track, .timeline .fill { display: none; }
  .tl-item { padding-top: 26px; }
  .steps, .criteria { grid-template-columns: 1fr; }
  .step h3 { margin-top: 32px; }
  .prize { grid-template-columns: 1fr; padding: 32px 24px; }
}

.nav-right { display: flex; align-items: center; gap: 28px; }
.lang {
  font-size: 0.8125rem; font-weight: 500; text-decoration: none;
  height: 30px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); color: var(--text);
  transition: background .15s;
}
.lang:hover { background: var(--surface); }

section { scroll-margin-top: 72px; }
.lang:active, .links a:active, footer a:active { transform: scale(.96); opacity: .7; transition-duration: 80ms; }
.links a, footer a { display: inline-block; }

/* Phones: keep the section links as a swipeable row under the brand */
@media (max-width: 800px) {
  nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; }
  .nav-right { display: contents; }
  .brand { order: 1; }
  .lang { order: 2; margin-left: auto; }
  .links {
    display: flex; order: 3; flex-basis: 100%;
    gap: 22px; padding: 12px 0; overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .links::-webkit-scrollbar { display: none; }
  section { scroll-margin-top: 104px; }
}

@media (prefers-reduced-transparency: reduce) {
  nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #333; --faint: #555; --line: #999; }
  nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--text); }
  .step, .bill-stage { outline: 1px solid var(--line); }
}
.sub .line { display: block; }
