/* OpenLaunchPad website · light/dark tokens, layout, motion */
:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --bg: light-dark(#f5f5fa, #0d0f14);
  --surface: light-dark(#ffffffd9, #171a22cc);
  --surface-solid: light-dark(#ffffff, #171a22);
  --line: light-dark(#14161c17, #ffffff17);
  --line-strong: light-dark(#14161c2b, #ffffff2b);
  --text: light-dark(#13151b, #f3f4f8);
  --muted: light-dark(#4f5665, #aab1bf);
  --accent: light-dark(#5a4de0, #b9b5ff);
  --accent-ink: light-dark(#4639cc, #cbc8ff);
  --on-accent: light-dark(#ffffff, #12131a);
  --accent-soft: light-dark(#5a4de014, #b9b5ff1c);
  --g1: light-dark(#5a4de0, #cbc8ff);
  --g2: light-dark(#0a7f95, #7fe3f0);
  --glow-a: light-dark(#8b7dff40, #6d5efc55);
  --glow-b: light-dark(#38c5d930, #1fa6bd3a);
  --dot: light-dark(#14161c12, #ffffff10);
  --shadow-c: light-dark(#23285a2e, #000000a0);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(100%, 1240px);
  --pad: clamp(20px, 4vw, 48px);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Segoe UI", "Noto Sans TC", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
p a, dd a, .source-links a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
p a:hover, .source-links a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; color: var(--text); }
p { color: var(--muted); overflow-wrap: anywhere; text-wrap: pretty; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

/* Ambient backdrop */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before, .backdrop::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.backdrop::before { top: -38vmax; left: -18vmax; background: radial-gradient(circle, var(--glow-a), transparent 62%); animation: drift-a 24s ease-in-out infinite alternate; }
.backdrop::after { top: -10vmax; right: -34vmax; background: radial-gradient(circle, var(--glow-b), transparent 62%); animation: drift-b 30s ease-in-out infinite alternate; }
.backdrop i { position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 74%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--line); }
.nav { width: var(--wrap); margin-inline: auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; min-height: 44px; }
.brand img { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.navlinks { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: .9375rem; }
.navlinks a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); transition: color .2s, background-color .2s; }
.navlinks a:hover, .navlinks a.active { color: var(--text); background: var(--accent-soft); }
.controls { display: flex; align-items: center; gap: 8px; }
.pill, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.pill { padding: 0 12px; }
.icon-btn { width: 40px; padding: 0; }
.pill:hover, .icon-btn:hover { border-color: var(--accent); }
.icon-btn:active, .pill:active { transform: scale(.94); }
.pill .icon, .icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
.theme-toggle svg { animation: spin-in .5s var(--ease); }

/* Layout */
main, .footer-inner { width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(56px, 8vw, 112px); }
.eyebrow { display: inline-block; color: var(--accent-ink); font-size: .875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
:lang(zh-Hant) .eyebrow { letter-spacing: .12em; }
h1 { font-size: clamp(2.375rem, 5.6vw, 4.25rem); line-height: 1.08; letter-spacing: -.04em; margin: 20px 0 22px; }
:lang(zh-Hant) h1 { line-height: 1.22; letter-spacing: -.02em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 16px; }
:lang(zh-Hant) h2 { line-height: 1.35; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; line-height: 1.45; margin: 0 0 8px; letter-spacing: -.01em; }
.sectionhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.sectionhead p { margin: 0; max-width: 540px; font-size: 1.0625rem; }
.sectionhead h2 { margin: 0; }
.nowrap { white-space: nowrap; }
.grad { background: linear-gradient(100deg, var(--g1), var(--g2) 50%, var(--g1)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s linear infinite; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 48px; align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .875rem; transition: border-color .2s; }
.badge:hover { border-color: var(--accent); }
.badge b { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: .8125rem; }
.badge .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.badge:hover .icon { transform: translateX(3px); }
.intro { max-width: 620px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 1rem; font-weight: 650; line-height: 1.3; text-align: center; box-shadow: 0 10px 28px -10px var(--accent); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, #ffffff66 50%, transparent 70%); translate: -110% 0; transition: translate .8s var(--ease); }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent); }
.button:hover::after { translate: 110% 0; }
.button:active { transform: translateY(0) scale(.98); }
.button .icon { transition: transform .25s var(--ease); }
.button:hover .icon.down { transform: translateY(2px); }
.button:hover .icon.right { transform: translateX(3px); }
.button.secondary { background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.button.secondary::after { display: none; }
.button.secondary:hover { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips .icon { width: 16px; height: 16px; color: var(--accent-ink); stroke-width: 2.5; }

.hero-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, var(--glow-a), transparent 66%); animation: pulse 7s ease-in-out infinite; }
.hero-art .ring { position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.hero-art .ring + .ring { inset: 20%; border-style: solid; border-color: var(--line); animation-duration: 40s; animation-direction: reverse; }
.hero-art picture { position: relative; width: 56%; animation: float 7s ease-in-out infinite; }
.hero-art img { width: 100%; filter: drop-shadow(0 26px 40px var(--shadow-c)); }
.tile { position: absolute; width: var(--s, 30px); aspect-ratio: 1; border-radius: 28%; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 20px -8px var(--c), inset 0 1px 0 #ffffff80; left: var(--x); top: var(--y); animation: bob var(--t, 6s) ease-in-out var(--dl, 0s) infinite alternate; opacity: .92; }

/* Showcase */
.showcase { margin: 0; perspective: 1800px; isolation: isolate; }
.frame { position: relative; padding: clamp(6px, 1vw, 12px); border-radius: clamp(14px, 2vw, 24px); border: 1px solid transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, linear-gradient(140deg, var(--accent), var(--line) 35%, var(--line) 65%, var(--g2)) border-box; box-shadow: 0 40px 90px -30px var(--shadow-c); transform-origin: 50% 100%; }
.frame::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40%; background: radial-gradient(ellipse, var(--glow-a), transparent 70%); filter: blur(40px); }
.frame img { width: 100%; border-radius: clamp(9px, 1.4vw, 14px); }
.showcase figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: .9375rem; }

/* Cards */
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts > div { padding: 20px 22px; }
.facts dt { color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.source-links { margin: 20px 0 0; font-size: .9375rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 50px -28px var(--shadow-c); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); transition: transform .4s var(--ease); }
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature p { margin: 0; font-size: 1rem; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 26px 28px; color: var(--text); font-weight: 500; }
.steps li::after { content: counter(step); position: absolute; right: 18px; top: 4px; font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--accent); opacity: .12; }
.steps .num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9375rem; }
.steps a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 22px 24px; }
.callout > .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-ink); }
.callout h3 { font-size: 1rem; margin-bottom: 4px; }
.callout p { margin: 0; font-size: .9875rem; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.faq .sectionhead { display: block; position: sticky; top: 100px; margin: 0; }
.faq .sectionhead p { margin-top: 16px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 24px 26px; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { margin: 0; font-size: 1rem; }

.closing { isolation: isolate; margin-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 112px); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; border-radius: 28px; }
.closing::after { content: ""; position: absolute; inset: -40% 5% auto; height: 90%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, var(--glow-a), transparent 70%); }
.closing > img, .closing > picture { width: 84px; margin: 0 auto 20px; animation: float 7s ease-in-out infinite; }
.closing p { margin: 0 auto; max-width: 520px; }
.closing .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; color: var(--muted); font-size: .875rem; }
.footerlinks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footerlinks a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color .2s; }
.footerlinks a:hover { color: var(--text); }

/* Motion: content stays visible without JS; JS adds .js then reveals on scroll */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
/* LCP text stays painted from the first frame; it only slides in */
h1.rise, .intro.rise { animation-name: rise-solid; }
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.js .feature[data-reveal] { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; translate: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .frame { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@keyframes rise { from { opacity: 0; translate: 0 22px; filter: blur(6px); } to { opacity: 1; translate: none; filter: none; } }
@keyframes rise-solid { from { translate: 0 18px; } to { translate: none; } }
@keyframes tilt { from { transform: rotateX(24deg) scale(.9); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
@keyframes bob { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(6px, -14px) rotate(8deg); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes spin-in { from { rotate: -90deg; opacity: 0; } }
@keyframes pulse { 0%, 100% { scale: .92; opacity: .8; } 50% { scale: 1.06; opacity: 1; } }
@keyframes sheen { to { background-position: -200% center; } }
@keyframes drift-a { to { transform: translate(14vmax, 8vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vmax, 14vmax) scale(.9); } }

/* Responsive */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts > div { grid-column: span 2; }
  .facts > div:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .sectionhead { position: static; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero-art { order: -1; width: min(70%, 260px); justify-self: start; margin-left: -4%; }
  .sectionhead { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .site-header { position: relative; }
  .nav { flex-wrap: wrap; padding-block: 10px 6px; }
  .controls { margin-left: auto; }
  .navlinks { order: 3; width: 100%; margin: 0 -12px; justify-content: space-between; }
  .navlinks a { padding: 0 10px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 24px; }
  .hero-art { width: 120px; margin-left: -2%; }
  h1 { margin: 14px 0 16px; font-size: clamp(2rem, 9.2vw, 2.5rem); }
  .intro { font-size: 1rem; }
  .actions { margin-top: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div:nth-child(n+4) { grid-column: auto; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .button { width: 100%; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature, .faq-item, .steps li { padding: 22px; }
  .chips { gap: 6px 16px; font-size: .875rem; }
  .footer-inner { display: block; }
}
@media (max-width: 420px) {
  .nav { gap: 8px; padding-inline: 16px; }
  .brand { gap: 8px; font-size: 1.0625rem; }
  .brand img { width: 30px; height: 30px; }
  .pill { padding: 0 10px; }
  .pill .icon { display: none; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.0625rem; }
  .brand img { width: 30px; height: 30px; }
  .navlinks { font-size: .875rem; }
  .navlinks a { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
