:root {
  color-scheme: dark;
  --navy: #0b1328;
  --purple: #6c63ff;
  --cyan: #00d1ff;
  --pink: #ff6ec7;
  --gold: #ffd699;
  --white: #ffffff;
  --muted: #a8b5cf;
  --border: #aec6ff26;
  font-family: "Avenir Next", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  background: var(--navy);
  color: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 7px; }
button { touch-action: manipulation; }
button, a { color: inherit; }

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding: 0 clamp(1.5rem, 5.6vw, 7rem);
  background:
    radial-gradient(ellipse at 85% 48%, #44318b19 0, transparent 50%),
    radial-gradient(ellipse at 54% 100%, #04639215 0, transparent 55%),
    linear-gradient(128deg, #0b1328, #090f22 68%, #10122c);
}
.page-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 52vw;
  height: 1px;
  top: 39%;
  right: -15%;
  opacity: .3;
  transform: rotate(-31deg);
  background: linear-gradient(90deg, transparent, #9265fc60, transparent);
  box-shadow: 0 1px 18px #935afb;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 116px;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { position: relative; width: 58px; height: 30px; overflow: hidden; mix-blend-mode: screen; }
.brand-mark img { position: absolute; width: 139px; height: auto; max-width: none; left: -31px; top: -19px; }
.brand-mark canvas { display: block; width: 58px; height: 29px; }
.brand-wordmark { font-size: 1.58rem; font-weight: 450; letter-spacing: -.045em; white-space: nowrap; }
.brand-wordmark > span { color: #ace8ff; }
.masthead-note { font-size: .75rem; letter-spacing: .22em; color: var(--muted); padding-left: 1.7rem; }
.pause-control { margin-left: auto; display: flex; align-items: center; gap: .6rem; border: 0; background: transparent; padding: .8rem 0 .8rem 1rem; color: var(--muted); font-size: .875rem; white-space: nowrap; transition: color .2s; }
.pause-control:hover { color: white; }
.hero { flex: 1; display: grid; grid-template-columns: .95fr 1.25fr; align-items: center; position: relative; min-height: 620px; }
.hero-copy { z-index: 2; padding: 3rem 0 5rem; }
.eyebrow { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 2.2rem; font-size: .9375rem; font-weight: 400; letter-spacing: .25em; color: #c9d9ee; }
.fine-line { width: 28px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
h1 { font-size: clamp(2.625rem, 4.6vw, 5rem); line-height: 1.43; font-weight: 400; letter-spacing: .04em; margin: 0; }
h1 > span { display: block; white-space: nowrap; }
.light-text { color: #b9ddff; background: linear-gradient(107deg, #c2edff 10%, #a9afff 57%, #e2b9e3 90%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-action { margin-top: 3.1rem; }
.glass-button {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  border: 1px solid #b8ccff45;
  border-top-color: #d4edff80;
  border-radius: 999px;
  padding: 1.12rem 1.6rem 1.12rem 1.85rem;
  font-size: 1rem;
  letter-spacing: .12em;
  background: linear-gradient(118deg, #388bac32, #7d66da30 58%, #e0a3c921);
  box-shadow: inset 0 1px 1px #ffffff22, inset 0 -1px 2px #aeb2ff12, 0 4px 28px #28639715;
  backdrop-filter: blur(16px);
  transition: transform .24s, border-color .24s, box-shadow .24s;
}
.glass-button:hover:not(:disabled) { transform: translateY(-3px); border-color: #aae7ffb0; box-shadow: inset 0 1px 1px #fff4, 0 5px 32px #5c94dd30; }
.glass-button:active:not(:disabled) { transform: translateY(0) scale(.97); }
.glass-button svg { transition: transform .24s; }
.glass-button:hover svg { transform: translateX(3px); }
.interaction-hint { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; letter-spacing: .06em; line-height: 1.7; }
.light-stage { position: relative; margin: 0 -3vw 0 -3.5vw; height: min(44vw, 650px); min-height: 510px; align-self: center; }
.stage-glow { position: absolute; inset: 12% -5% 8%; pointer-events: none; background: radial-gradient(ellipse at 30% 53%, #00d1ff10, transparent 45%), radial-gradient(ellipse at 70% 42%, #964acd12, transparent 43%); }
#particles { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; touch-action: pan-y; }
.light-stage[data-ready="true"] #particles { opacity: 1; }
.logo-fallback { position: absolute; width: 91%; aspect-ratio: 380 / 195; left: 4.5%; top: 50%; transform: translateY(-55%); overflow: hidden; mix-blend-mode: screen; transition: opacity .6s; mask-image: radial-gradient(ellipse, #000 58%, transparent 76%); }
.logo-fallback img { position: absolute; max-width: none; width: 231.05%; height: auto; left: -50%; top: -58.97%; }
.light-stage[data-ready="true"] .logo-fallback { opacity: 0; pointer-events: none; }
figcaption { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1rem; color: #a4b2cf; font-size: .75rem; letter-spacing: .18em; white-space: nowrap; pointer-events: none; }
.caption-line { height: 1px; width: 44px; background: linear-gradient(90deg, transparent, #85abda80, transparent); }
.page-footer { border-top: 1px solid var(--border); min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-path { display: flex; align-items: center; gap: 1.3rem; color: #b9c7df; font-size: .875rem; letter-spacing: .08em; }
.brand-path > i { display: block; width: 16px; height: 1px; background: #83a0d340; }
.material-controls { display: flex; flex-wrap: wrap; gap: .35rem; }
.material-controls button { display: flex; align-items: center; gap: .5rem; padding: .75rem .95rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: .875rem; transition: color .2s, border-color .2s, background .2s; white-space: nowrap; }
.material-controls button[aria-pressed="true"] { border-color: #c3d2ff29; color: white; background: #c6d4ff09; }
.material-controls button:hover { color: white; }
.material-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ribbon-dot { background: linear-gradient(140deg, #00d1ff, #6c63ff 40%, #ff6ec7 65%, #ffd699); }
.particles-dot { width: 4px; height: 4px; background: #b4dfff; margin: 3px; box-shadow: 0 0 7px #00d1ff, 3px -3px 0 -1px #ffd699, -3px 3px 0 -1px #ff6ec7; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1800px) { .page-shell { padding-inline: max(7rem, calc((100vw - 1640px) / 2)); } }
@media (max-width: 1100px) {
  .masthead-note { display: none; }
  .hero { min-height: 570px; grid-template-columns: 1fr 1.12fr; }
  .light-stage { min-height: 470px; margin-left: -4vw; }
  .brand-path { gap: .8rem; }
  .brand-path > i { width: 9px; }
  .material-controls button { padding-inline: .7rem; }
}
@media (max-width: 760px) {
  .masthead { min-height: 88px; gap: .5rem 1rem; flex-wrap: wrap; padding-block: 1rem; }
  .brand { gap: .5rem; }
  .brand-wordmark { font-size: 1.3rem; }
  .brand-mark { transform: scale(.86); transform-origin: left center; width: 52px; }
  .pause-control { padding-left: 0; font-size: .8125rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding: 3.5rem 0 0; }
  .eyebrow { margin-bottom: 1.45rem; font-size: .875rem; }
  h1 { font-size: clamp(2.625rem, 8.7vw, 4.2rem); line-height: 1.42; }
  h1 > span { white-space: normal; overflow-wrap: anywhere; }
  .hero-action { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
  .glass-button { padding: .92rem 1.2rem .92rem 1.5rem; gap: 2rem; }
  .interaction-hint { margin: 0; font-size: .8125rem; }
  .light-stage { width: calc(100% + 3rem); align-self: center; margin: -.2rem -1.5rem 0; height: 360px; min-height: 0; }
  figcaption { bottom: 6%; width: 90%; font-size: .75rem; letter-spacing: .11em; white-space: normal; text-align: center; line-height: 1.8; }
  .page-footer { flex-direction: column; align-items: stretch; gap: 1.15rem; padding: 1.6rem 0; }
  .brand-path { justify-content: space-between; gap: .5rem; font-size: .8125rem; letter-spacing: 0; }
  .brand-path > i { width: 8px; }
  .material-controls { justify-content: flex-end; }
}
@media (max-width: 380px) {
  .page-shell { padding-inline: 1.25rem; }
  .brand-wordmark { font-size: 1.2rem; }
  .brand-mark { display: none; }
  .light-stage { height: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
