
:root {
  --ink: #071211;
  --panel: #0d1b19;
  --panel-soft: #10211f;
  --line: #27403c;
  --line-soft: rgba(93, 130, 123, 0.22);
  --paper: #e7eee9;
  --muted: #8ca29d;
  --cyan: #47d2cb;
  --cyan-deep: #1ba49f;
  --amber: #f2b84b;
  --success: #78d99a;
  --danger: #ef8c77;
  --display: "Bahnschrift SemiCondensed", "DIN Condensed", "Noto Sans TC", sans-serif;
  --body: "Noto Sans TC", "Microsoft JhengHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 5%, rgba(35, 139, 133, 0.18), transparent 30rem),
    radial-gradient(circle at 8% 72%, rgba(242, 184, 75, 0.06), transparent 24rem),
    var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

button, a { font: inherit; }
a { color: inherit; }
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-family: var(--display); font-size: 21px; letter-spacing: 0.13em; }
.brand-copy small, .channel { color: var(--muted); font: 600 10px/1 var(--display); letter-spacing: 0.17em; }
.channel { display: flex; align-items: center; gap: 10px; }
.channel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 16px var(--success); }

main { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(430px, 0.8fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: center;
  padding: 90px 0 86px;
}
.eyebrow, .section-heading p {
  margin: 0;
  color: var(--cyan);
  font: 700 11px/1.4 var(--display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow { display: flex; gap: 24px; align-items: center; }
.eyebrow span:last-child { color: var(--muted); }
.eyebrow span:last-child::before { content: ""; display: inline-block; width: 34px; height: 1px; margin: 0 14px 3px 0; background: var(--line); }
h1 {
  margin: 32px 0 26px;
  max-width: 760px;
  font: 700 clamp(58px, 7.2vw, 110px)/0.93 var(--display);
  letter-spacing: -0.045em;
}
h1 em { color: var(--cyan); font-style: normal; }
.lede { max-width: 650px; margin: 0; color: #a9b9b5; font-size: 17px; line-height: 1.95; }
.serial-gate { max-width: 620px; margin-top: 32px; padding: 20px; border: 1px solid var(--line); background: rgba(12, 28, 26, 0.72); }
.serial-gate > label { display: block; margin-bottom: 11px; color: var(--cyan); font: 700 10px/1 var(--display); letter-spacing: 0.14em; }
.serial-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.serial-entry input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #36534e; border-right: 0; outline: 0; color: var(--paper); background: #071311; font: 600 14px/1 var(--display); letter-spacing: 0.04em; }
.serial-entry input:focus { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.serial-entry input::placeholder { color: #526b66; }
.serial-entry button { min-width: 124px; padding: 0 18px; border: 1px solid var(--cyan); color: #061210; background: var(--cyan); font: 700 13px/1 var(--display); cursor: pointer; }
.serial-entry button:hover:not(:disabled) { background: #65e2dc; }
.serial-entry button:disabled { cursor: wait; opacity: 0.58; }
.serial-gate > p { margin: 11px 0 0; color: #708680; font-size: 11px; line-height: 1.5; }
.serial-gate.is-error { border-color: rgba(239, 140, 119, 0.7); }
.serial-gate.is-error > p { color: var(--danger); }
.serial-gate.is-authorized { border-color: rgba(120, 217, 154, 0.58); }
.serial-gate.is-authorized > label, .serial-gate.is-authorized > p { color: var(--success); }
.serial-gate.is-authorized .serial-entry input { color: #7c928d; }
.consent-gate { max-width: 620px; min-height: 48px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-top: 0; background: rgba(8, 21, 19, 0.72); }
.consent-gate button { align-self: stretch; padding: 0 18px; border: 0; border-right: 1px solid var(--line); color: var(--cyan); background: transparent; font: 700 11px/1 var(--display); cursor: pointer; }
.consent-gate button:hover:not(:disabled) { color: #65e2dc; background: rgba(71, 210, 203, 0.06); }
.consent-gate button:disabled { color: #516863; cursor: default; }
.consent-gate span { color: #708680; font-size: 11px; }
.consent-gate.is-accepted { border-color: rgba(120, 217, 154, 0.58); }
.consent-gate.is-accepted button, .consent-gate.is-accepted span { color: var(--success); }
.hero-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.download-button {
  min-width: 286px;
  min-height: 78px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  color: #04100f;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.download-button:not(.is-disabled):hover { transform: translateY(-3px); background: #65e2dc; box-shadow: 0 16px 48px rgba(71, 210, 203, 0.16); }
.download-button.is-disabled { pointer-events: none; opacity: 0.48; }
.download-button > span:last-child { display: grid; gap: 5px; }
.download-button strong { font: 700 16px/1 var(--display); letter-spacing: 0.04em; }
.download-button small { font-size: 11px; opacity: 0.68; }
.download-icon { position: relative; width: 29px; height: 34px; border-bottom: 2px solid currentColor; }
.download-icon::before { content: ""; position: absolute; left: 13px; top: 2px; width: 2px; height: 21px; background: currentColor; }
.download-icon::after { content: ""; position: absolute; left: 8px; top: 15px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.windows-download { color: var(--amber); border-color: #7c6230; background: rgba(26, 22, 12, 0.72); }
.windows-download:not(.is-disabled):hover { color: #061210; border-color: var(--amber); background: var(--amber); box-shadow: 0 16px 48px rgba(242, 184, 75, 0.12); }
.windows-icon { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; transform: skewY(-5deg); }
.windows-icon i { display: block; border: 1px solid currentColor; background: currentColor; opacity: 0.88; }
.hud-info-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #9eb5af; font: 700 11px/1.4 var(--display); text-underline-offset: 5px; }
.hud-info-link span { color: var(--amber); }
.hud-info-link.is-disabled { pointer-events: none; color: #516862; text-decoration: none; }
.telegram-guide-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; width: fit-content; min-height: 46px; margin-top: 22px; padding: 10px 0; color: var(--cyan); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.telegram-guide-link span { color: var(--muted); font-size: 11px; font-weight: 400; }
.telegram-guide-link:hover, .telegram-guide-link:focus-visible { color: var(--amber); }
.retry-button { padding: 0 20px; color: var(--paper); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.retry-button:hover { border-color: var(--cyan); color: var(--cyan); }
.privacy-note { margin: 17px 0 0; color: #6f8580; font-size: 11px; line-height: 1.7; }
.privacy-note span { color: var(--amber); margin-right: 7px; }

.release-card { position: relative; padding: 28px; border: 1px solid var(--line); background: rgba(12, 28, 26, 0.87); box-shadow: 28px 28px 0 rgba(5, 16, 15, 0.7); }
.release-card::before { content: ""; position: absolute; width: 44px; height: 44px; top: -1px; right: -1px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.release-card-head { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font: 600 11px/1 var(--display); letter-spacing: 0.12em; }
.release-state { color: var(--success); }
.release-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: currentColor; }
.release-state.is-loading { color: var(--amber); }
.release-state.is-error { color: var(--danger); }
.version-lockup { display: flex; gap: 9px; align-items: flex-start; margin: 42px 0 34px; }
.version-prefix { color: var(--amber); font: 700 15px/1 var(--display); }
.version-lockup strong { overflow-wrap: anywhere; font: 700 clamp(29px, 3vw, 48px)/1.08 var(--display); letter-spacing: -0.025em; }
.release-metadata { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.release-metadata div { min-width: 0; padding: 20px 12px 20px 0; }
.release-metadata div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.release-metadata dt { color: #6e837e; font-size: 10px; letter-spacing: 0.08em; }
.release-metadata dd { margin: 8px 0 0; overflow-wrap: anywhere; font: 650 13px/1.3 var(--display); }
.checksum { margin-top: 22px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.checksum > div { min-width: 0; display: grid; gap: 8px; }
.checksum span { color: var(--cyan); font: 700 9px/1 var(--display); letter-spacing: 0.16em; }
.checksum code { max-width: 290px; overflow: hidden; color: #7f9690; font: 10px/1.4 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.checksum button { padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.checksum button:not(:disabled):hover { color: var(--cyan); border-color: var(--cyan); }
.checksum button:disabled { opacity: 0.4; cursor: default; }

.details-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-notes, .install-panel { padding: 54px 0 60px; }
.release-notes { padding-right: clamp(40px, 7vw, 100px); }
.install-panel { padding-left: clamp(40px, 5vw, 72px); border-left: 1px solid var(--line); background: linear-gradient(135deg, rgba(30, 65, 60, 0.2), transparent 70%); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 9px 0 0; font: 650 28px/1.15 var(--display); letter-spacing: -0.015em; }
.section-heading > span { color: #647a75; font: 600 10px/1 var(--display); letter-spacing: 0.12em; }
.release-notes ul { margin: 34px 0 0; padding: 0; display: grid; gap: 0; list-style: none; }
.release-notes li { position: relative; padding: 17px 12px 17px 34px; border-top: 1px solid var(--line-soft); color: #b8c5c1; font-size: 14px; line-height: 1.7; }
.release-notes li:last-child { border-bottom: 1px solid var(--line-soft); }
.release-notes li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 9px; height: 2px; background: var(--amber); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 17px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps li > span { color: var(--amber); font: 700 11px/1.4 var(--display); }
.steps strong { font: 650 14px/1.3 var(--display); }
.steps p { margin: 7px 0 0; color: #718782; font-size: 12px; line-height: 1.6; }

.requirements { display: grid; grid-template-columns: repeat(3, 1fr); margin: 72px 0; border: 1px solid var(--line); background: rgba(10, 25, 23, 0.62); }
.requirements > div { position: relative; min-height: 154px; padding: 32px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; }
.requirements > div + div { border-left: 1px solid var(--line); }
.requirements-index { position: absolute; top: 24px; left: 30px; color: var(--cyan); font: 700 9px/1 var(--display); letter-spacing: 0.14em; }
.requirements strong { font: 650 20px/1.2 var(--display); }
.requirements small { margin-top: 7px; color: #6f837f; font-size: 11px; }
.requirements > div::after { content: ""; position: absolute; right: -35px; bottom: -58px; width: 130px; height: 130px; border: 1px solid var(--line-soft); transform: rotate(45deg); }

.disclaimer-dialog { width: min(720px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 1px solid #3b5b55; color: var(--paper); background: #0b1917; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58); }
.disclaimer-dialog::backdrop { background: rgba(1, 8, 7, 0.82); backdrop-filter: blur(6px); }
.disclaimer-dialog form { padding: clamp(24px, 5vw, 46px); }
.disclaimer-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.disclaimer-head span { color: var(--cyan); font: 700 9px/1 var(--display); letter-spacing: 0.16em; }
.disclaimer-head h2 { margin: 10px 0 0; font: 650 clamp(28px, 5vw, 42px)/1 var(--display); }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: var(--cyan); color: var(--cyan); }
.disclaimer-copy { padding: 24px 0; color: #aebdb9; font-size: 13px; line-height: 1.8; }
.disclaimer-copy > p { margin: 0 0 14px; color: var(--paper); }
.disclaimer-copy ol { margin: 0; padding-left: 25px; }
.disclaimer-copy li { padding: 7px 0 7px 8px; }
.disclaimer-copy li::marker { color: var(--amber); font: 700 11px var(--display); }
.disclaimer-check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 17px; border: 1px solid var(--line); color: #c0ccc9; font-size: 12px; line-height: 1.6; cursor: pointer; }
.disclaimer-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--cyan); }
.disclaimer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.disclaimer-actions button { min-height: 48px; padding: 0 20px; font: 700 12px/1 var(--display); cursor: pointer; }
.disclaimer-cancel { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.disclaimer-accept { border: 1px solid var(--cyan); color: #05110f; background: var(--cyan); }
.disclaimer-accept:disabled { opacity: 0.38; cursor: default; }
.disclaimer-accept:not(:disabled):hover { background: #65e2dc; }

footer { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 42px; display: flex; justify-content: space-between; gap: 20px; color: #536a65; font: 600 9px/1.4 var(--display); letter-spacing: 0.13em; }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.footer-meta a { color: var(--cyan); font: 700 14px/1.4 var(--body); letter-spacing: 0.02em; text-decoration: none; text-underline-offset: 4px; }
.footer-meta a:hover, .footer-meta a:focus-visible { text-decoration: underline; }
.reveal { animation: reveal 680ms cubic-bezier(.22,.8,.24,1) both; }
.reveal-1 { animation-delay: 50ms; }
.reveal-2 { animation-delay: 150ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 320ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 62px; padding-top: 72px; }
  .release-card { max-width: 680px; }
  .details-grid { grid-template-columns: 1fr; }
  .release-notes { padding-right: 0; }
  .install-panel { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); background: none; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 32px, 1440px); }
  .site-header { min-height: 86px; }
  .brand-mark { width: 44px; height: 44px; font-size: 16px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .channel { display: none; }
  .ambient-grid { background-size: 44px 44px; }
  .hero { min-height: 0; padding: 62px 0 70px; gap: 48px; }
  .eyebrow { align-items: flex-start; flex-direction: column; gap: 10px; }
  .eyebrow span:last-child::before { width: 20px; margin-right: 8px; }
  h1 { margin-top: 25px; font-size: clamp(52px, 17vw, 76px); }
  .lede { font-size: 15px; line-height: 1.85; }
  .serial-gate { padding: 15px; }
  .serial-entry { grid-template-columns: 1fr; gap: 9px; }
  .serial-entry input { border-right: 1px solid #36534e; }
  .serial-entry button { min-height: 48px; }
  .consent-gate { align-items: stretch; flex-direction: column; gap: 0; }
  .consent-gate button { min-height: 46px; border-right: 0; border-bottom: 1px solid var(--line); }
  .consent-gate span { padding: 12px 15px; }
  .hero-actions { flex-direction: column; }
  .download-button { width: 100%; min-width: 0; }
  .hud-info-link { margin-top: 19px; }
  .retry-button { min-height: 50px; }
  .release-card { padding: 22px; box-shadow: 12px 12px 0 rgba(5, 16, 15, 0.7); }
  .version-lockup { margin: 34px 0 28px; }
  .release-metadata { grid-template-columns: 1fr; }
  .release-metadata div { padding: 15px 0; }
  .release-metadata div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .checksum code { max-width: 190px; }
  .release-notes, .install-panel { padding: 42px 0 46px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .requirements { grid-template-columns: 1fr; margin: 48px 0; }
  .requirements > div { min-height: 130px; }
  .requirements > div + div { border-left: 0; border-top: 1px solid var(--line); }
  footer { align-items: flex-start; flex-direction: column; }
  .disclaimer-dialog form { padding: 22px; }
  .disclaimer-actions { flex-direction: column-reverse; }
  .disclaimer-actions button { width: 100%; }
}

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