:root {
  color-scheme: dark;
  --bg: #07111e;
  --bg-deep: #040b14;
  --surface: #0b1725;
  --surface-soft: #101f30;
  --surface-strong: #172a3e;
  --text: #ebe8df;
  --text-strong: #fffdf7;
  --muted: #a1aab5;
  --faint: #6d7885;
  --gold: #d6aa58;
  --gold-strong: #f0c874;
  --gold-faint: rgba(214, 170, 88, .15);
  --line: rgba(225, 231, 237, .14);
  --gold-line: rgba(214, 170, 88, .5);
  --danger: #e29a91;
  --success: #94c4a0;
  --display: ui-serif, "Iowan Old Style", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --max: 1440px;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2e8;
  --bg-deep: #eee6d8;
  --surface: #fffdf8;
  --surface-soft: #f1eadf;
  --surface-strong: #e7ddcf;
  --text: #333a41;
  --text-strong: #161a1e;
  --muted: #68717a;
  --faint: #868b8a;
  --gold: #936824;
  --gold-strong: #704b13;
  --gold-faint: rgba(147, 104, 36, .12);
  --line: rgba(31, 38, 44, .14);
  --gold-line: rgba(147, 104, 36, .45);
  --danger: #a4534c;
  --success: #50785a;
  --shadow: 0 24px 60px rgba(73, 61, 43, .13);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(214, 170, 88, .07), transparent 32rem),
    radial-gradient(circle at 83% 17%, rgba(92, 151, 178, .08), transparent 36rem),
    var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.26) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 58%, rgba(255,255,255,.18) 0 1px, transparent 1.2px),
    radial-gradient(circle at 48% 82%, rgba(255,255,255,.14) 0 1px, transparent 1.2px);
  background-size: 320px 320px, 440px 440px, 560px 560px;
}
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 8px 12px; background: var(--text-strong); color: var(--bg); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold-strong); font-size: 24px; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--gold-strong); }
.header-actions { display: flex; gap: 10px; }
.icon-button, .menu-button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--text); cursor: pointer; }
.menu-button { display: none; }
.icon-button svg, .menu-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr); gap: clamp(40px, 4vw, 64px); max-width: var(--max); margin: 0 auto; padding: clamp(58px, 7vw, 100px) clamp(20px, 4vw, 64px) 54px; }
.hero-copy { position: relative; align-self: center; z-index: 1; }
.eyebrow, .section-kicker { color: var(--gold-strong); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1, .page-hero h1 { max-width: 760px; margin: 18px 0 24px; color: var(--text-strong); font-family: var(--display); font-size: clamp(48px, 5vw, 76px); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.35vw, 21px); }
.hero-rule { display: flex; align-items: center; width: min(270px, 70%); margin: 30px 0; color: var(--gold); }
.hero-rule::before, .hero-rule::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.hero-rule span { margin: 0 10px; font-size: 18px; }
.orbit-art { position: absolute; inset: -45px auto auto -120px; width: 560px; height: 560px; opacity: .3; pointer-events: none; }
.orbit-art circle, .orbit-art ellipse, .orbit-art path { fill: none; stroke: var(--gold); stroke-width: .7; }
.orbit-art .star { fill: var(--gold); stroke: none; }

.intake-card { position: relative; z-index: 2; padding: clamp(28px, 3vw, 48px); border: 1px solid var(--gold-line); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-soft) 82%, transparent)); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
.card-heading .spark { color: var(--gold-strong); font-size: 28px; }
.card-heading h2 { margin: 0; color: var(--text-strong); font-family: var(--display); font-size: clamp(25px, 2.4vw, 34px); font-weight: 600; }
.card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.form-field { display: grid; gap: 8px; margin: 0 0 19px; }
.form-field label, .advanced-label { color: var(--text); font-weight: 720; }
.form-field input, .advanced-panel input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg-deep) 50%, transparent);
  color: var(--text-strong);
}
.form-field input::placeholder { color: var(--faint); }
.field-help { margin: -2px 0 0; color: var(--faint); font-size: 13px; }
.advanced { margin: 4px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.advanced summary { min-height: 54px; padding: 14px 16px; cursor: pointer; font-weight: 720; }
.advanced-panel { display: grid; gap: 9px; padding: 0 16px 18px; }
.advanced-panel small { color: var(--faint); }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 20px 0; color: var(--muted); font-size: 14px; }
.consent-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); }
.consent-row a { color: var(--gold-strong); }
.primary-button, .secondary-button, .text-button { min-height: 50px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.primary-button { width: 100%; border: 0; padding: 14px 22px; background: linear-gradient(110deg, #cf9d48, #f3ca78 58%, #d7a653); color: #161108; box-shadow: 0 12px 34px rgba(214, 170, 88, .18); }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; filter: grayscale(.4); opacity: .7; transform: none; }
.secondary-button { border: 1px solid var(--gold-line); padding: 10px 20px; background: transparent; color: var(--gold-strong); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.trust-row span::before { content: "◇"; margin-right: 6px; color: var(--gold); }
.form-status { min-height: 25px; margin: 12px 0 0; color: var(--muted); text-align: center; }
.form-status.is-error { color: var(--danger); }

.restore-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 20px auto 0; padding: 17px 20px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-faint); }
.restore-banner p { margin: 0; }
.restore-banner button { border: 0; background: transparent; color: var(--gold-strong); font-weight: 800; cursor: pointer; }

.ad-shell { max-width: 1280px; min-height: 104px; margin: 0 auto; display: grid; place-items: center; border-block: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.ad-shell[hidden] { display: none; }
.ad-shell > div,
.ad-shell .adsbygoogle { width: 100%; }
.ad-label { display: block; margin-bottom: 5px; text-align: center; font-size: 10px; letter-spacing: .12em; }

.section-shell { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 76px); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 38px; }
.section-heading h2, .progress-card h1, .article-copy h2 { margin: 8px 0 0; color: var(--text-strong); font-family: var(--display); font-size: clamp(34px, 4vw, 58px); font-weight: 520; line-height: 1.18; }
.section-heading p { max-width: 620px; margin: 0; color: var(--muted); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content-card { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 74%, transparent); text-decoration: none; }
.content-card:nth-child(3n) { border-right: 0; }
.content-card:nth-child(n+4) { border-top: 1px solid var(--line); }
.content-card:hover { background: var(--surface-soft); }
.content-card .number { color: var(--gold); font-family: var(--display); font-size: 18px; }
.content-card h3 { margin: 38px 0 12px; color: var(--text-strong); font-family: var(--display); font-size: 27px; font-weight: 600; }
.content-card p { margin: 0; color: var(--muted); }
.content-card .arrow { display: block; margin-top: 22px; color: var(--gold-strong); }
.sample-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: clamp(42px, 6vw, 82px); border: 1px solid var(--gold-line); border-radius: var(--radius); background: linear-gradient(120deg, var(--surface), var(--bg-deep)); }
.sample-band h2 { margin: 0 0 15px; color: var(--text-strong); font-family: var(--display); font-size: clamp(34px, 4vw, 58px); font-weight: 520; }
.sample-band p { max-width: 650px; color: var(--muted); }
.mini-chart { position: relative; aspect-ratio: 1; max-width: 360px; justify-self: end; border: 1px solid var(--gold-line); transform: rotate(45deg); }
.mini-chart::before, .mini-chart::after { position: absolute; inset: 24%; content: ""; border: 1px solid var(--gold-line); }
.mini-chart::after { inset: 49% -20%; border-width: 1px 0 0; transform: rotate(-45deg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 28px; border-top: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--gold-faint), transparent 65%); }
.step-card strong { display: block; color: var(--gold-strong); font-family: var(--display); font-size: 40px; font-weight: 500; }
.step-card h3 { margin: 8px 0; color: var(--text-strong); }
.step-card p { margin: 0; color: var(--muted); }

.progress-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 48px 20px 80px; }
.progress-card { width: min(1040px, 100%); text-align: center; }
.progress-orbit { position: relative; width: min(360px, 78vw); aspect-ratio: 1; margin: 0 auto 10px; }
.progress-orbit span { position: absolute; inset: 15%; border: 1px solid var(--gold-line); border-radius: 50%; animation: orbit-breathe 2.6s ease-in-out infinite; }
.progress-orbit span:nth-child(2) { inset: 27%; animation-delay: -.8s; }
.progress-orbit span:nth-child(3) { inset: 39%; animation-delay: -1.6s; }
.progress-orbit::before, .progress-orbit::after { position: absolute; top: 50%; left: 7%; right: 7%; height: 1px; content: ""; background: var(--gold-line); }
.progress-orbit::after { top: 7%; bottom: 7%; left: 50%; width: 1px; height: auto; }
.progress-star { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-strong); font-size: 48px; }
@keyframes orbit-breathe { 0%,100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
.progress-card > p { max-width: 680px; margin: 14px auto 44px; color: var(--muted); }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress-steps::before { position: absolute; top: 24px; left: 10%; right: 10%; height: 1px; content: ""; background: var(--gold-line); }
.progress-step { position: relative; z-index: 1; padding: 0 12px; }
.step-dot { display: grid; width: 48px; height: 48px; margin: 0 auto 13px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--faint); }
.progress-step.is-complete .step-dot { border-color: var(--gold); color: var(--gold-strong); box-shadow: 0 0 22px var(--gold-faint); }
.progress-step.is-active .step-dot { border: 2px solid var(--gold-strong); color: var(--gold-strong); box-shadow: 0 0 28px rgba(214,170,88,.25); }
.progress-step strong { display: block; color: var(--text-strong); }
.progress-step small { color: var(--faint); }
.progress-step.is-active small { color: var(--gold-strong); }
.progress-note { margin-top: 46px; padding: 22px; border-block: 1px solid var(--line); color: var(--muted); }

.science-note { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; padding-top: 50px; border-top: 1px solid var(--line); }
.science-note h2 { margin: 0; color: var(--text-strong); font-family: var(--display); font-size: clamp(32px, 3.5vw, 50px); font-weight: 520; }
.science-note p { margin-top: 0; color: var(--muted); }
.site-footer { padding: 50px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; max-width: var(--max); margin: auto; }
.site-footer h2, .site-footer h3 { color: var(--text-strong); }
.site-footer p, .site-footer a { color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 8px; }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 850px) minmax(180px, 280px); gap: clamp(28px, 4vw, 64px); max-width: var(--max); margin: 0 auto; padding: 70px clamp(20px, 4vw, 58px) 120px; }
.article-toc, .article-rail { position: sticky; top: 104px; align-self: start; }
.article-toc { display: grid; gap: 10px; padding-right: 22px; border-right: 1px solid var(--line); }
.article-toc strong { margin-bottom: 10px; color: var(--gold-strong); }
.article-toc a { color: var(--muted); text-decoration: none; }
.article-copy .breadcrumb { color: var(--faint); font-size: 13px; }
.article-copy h1 { margin: 15px 0 25px; color: var(--text-strong); font-family: var(--display); font-size: clamp(44px, 5vw, 70px); line-height: 1.14; font-weight: 520; }
.article-copy .lead { color: var(--muted); font-size: 20px; }
.article-copy section { padding-top: 55px; }
.article-copy h2 { font-size: clamp(27px, 2.4vw, 36px); line-height: 1.28; }
.article-copy h3 { margin-top: 30px; color: var(--gold-strong); font-family: var(--display); font-size: 25px; }
.article-copy p, .article-copy li { color: var(--muted); }
.guidance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.guidance-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guidance-card h3 { margin-top: 0; }
.article-rail .ad-shell { min-height: 420px; border: 1px solid var(--gold-line); }
.related-links { display: grid; gap: 12px; margin-top: 24px; }
.related-links a { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; }

@media (max-width: 1080px) {
  .site-nav { display: none; position: fixed; inset: 76px 0 auto; padding: 24px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .menu-button { display: grid; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .orbit-art { inset: -100px -100px auto auto; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .content-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .content-card:nth-child(2n) { border-right: 0; }
  .content-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .article-toc { display: none; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 0 16px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 39px; height: 39px; }
  .site-nav { inset-block-start: 68px; }
  .hero-shell { gap: 38px; padding: 54px 20px 38px; }
  .hero-copy h1 { font-size: clamp(38px, 10.2vw, 44px); }
  .hero-copy > p { font-size: 17px; }
  .orbit-art { width: 390px; height: 390px; opacity: .2; }
  .intake-card { margin-inline: -4px; padding: 24px 18px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row span:last-child { grid-column: 1 / -1; }
  .restore-banner { margin-inline: 16px; align-items: flex-start; }
  .section-shell { padding: 72px 20px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
  .content-grid, .steps-grid { grid-template-columns: 1fr; }
  .content-card { border-right: 0; border-top: 1px solid var(--line); }
  .content-card:first-child { border-top: 0; }
  .sample-band { grid-template-columns: 1fr; padding: 34px 24px; }
  .mini-chart { width: 72%; justify-self: center; }
  .progress-shell { padding-top: 30px; }
  .progress-orbit { width: 240px; }
  .progress-card h1 { font-size: 40px; }
  .progress-steps { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .progress-steps::before { top: 20px; bottom: 20px; left: 23px; right: auto; width: 1px; height: auto; }
  .progress-step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 0; }
  .step-dot { margin: 0; }
  .progress-step strong, .progress-step small { grid-column: 2; }
  .progress-step small { margin-top: -18px; }
  .science-note, .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .article-layout { display: block; padding: 46px 20px 90px; }
  .article-rail { position: static; margin-top: 50px; }
  .article-rail .ad-shell { min-height: 100px; }
  .guidance-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
