:root {
  color-scheme: dark;
  --bg: #07100f;
  --bg-deep: #030807;
  --surface: rgba(15, 27, 27, .82);
  --surface-solid: #101c1b;
  --text: #f5f1e7;
  --muted: #a9b9b5;
  --jade: #70d4c5;
  --jade-bright: #a1eee1;
  --gold: #d7b56d;
  --red: #ba6558;
  --line: rgba(169, 206, 198, .17);
  --display: "Iowan Old Style", "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 8%, rgba(61, 159, 145, .12), transparent 30rem),
    linear-gradient(180deg, #091412 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: var(--jade-bright); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, video { max-width: 100%; }
code, kbd { font-family: var(--mono); }
code { color: #cce8e2; font-size: .9em; }
kbd { padding: .15rem .42rem; border: 1px solid var(--line); border-bottom-color: rgba(255,255,255,.32); border-radius: 4px; background: #14211f; color: var(--text); }
:focus-visible { outline: 2px solid var(--jade-bright); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 9px 14px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 2px; background: transparent; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); transform: scaleX(0); transform-origin: left; }

.ambient { position: fixed; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.aura { position: absolute; width: 40rem; height: 40rem; border-radius: 50%; opacity: .14; background: radial-gradient(circle, var(--jade), transparent 68%); }
.aura-one { top: 8%; right: -24rem; animation: drift-a 18s ease-in-out infinite alternate; }
.aura-two { bottom: 8%; left: -28rem; background: radial-gradient(circle, var(--gold), transparent 68%); animation: drift-b 23s ease-in-out infinite alternate; }
.ley { position: absolute; width: 70vw; height: 1px; opacity: .18; background: linear-gradient(90deg, transparent, var(--jade), transparent); transform: rotate(-18deg); }
.ley::after { content: ""; position: absolute; width: 7rem; height: 1px; background: linear-gradient(90deg, transparent, #fff); animation: route-light 7s linear infinite; }
.ley-one { top: 31%; left: -10%; }
.ley-two { top: 71%; right: -10%; transform: rotate(14deg); }
.ley-two::after { animation-delay: -3s; }

.site-header {
  position: fixed; z-index: 70; top: 0; left: 50%; width: min(1240px, calc(100% - 32px)); height: 76px;
  display: flex; align-items: center; justify-content: space-between; transform: translateX(-50%);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); background: rgba(5, 12, 11, .72);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); line-height: 1.1; text-decoration: none; font-weight: 700; }
.brand small { display: block; margin-bottom: 4px; color: var(--muted); font: 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(215,181,109,.55); color: var(--gold); font-family: var(--display); transform: rotate(-3deg); background: rgba(215,181,109,.05); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a.active { color: var(--text); }
.nav-download { padding: 7px 13px; border: 1px solid rgba(112,212,197,.35); color: var(--jade-bright); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; }
.nav-toggle i { display: block; width: 22px; height: 1px; margin: 6px auto; background: var(--text); transition: transform .2s ease; }

main { display: block; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr); align-items: center; gap: clamp(36px, 6vw, 88px); min-height: 860px; padding-top: 120px; }
.hero-map { position: absolute; z-index: -1; inset: 5% 0 0 40%; opacity: .32; background: radial-gradient(ellipse at center, transparent 30%, rgba(112,212,197,.06) 31%, transparent 32%); }
.contour { position: absolute; inset: 16% 3%; border: 1px solid rgba(112,212,197,.18); border-radius: 42% 58% 55% 45%; animation: map-drift 19s ease-in-out infinite alternate; }
.contour-two { inset: 24% 12% 8% 20%; border-color: rgba(215,181,109,.16); animation-direction: alternate-reverse; animation-duration: 24s; }
.waypoint { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 16px var(--jade); }
.waypoint::before, .waypoint::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--jade); border-radius: 50%; animation: waypoint 4s ease-out infinite; }
.waypoint::after { animation-delay: 2s; }
.waypoint-one { top: 24%; right: 27%; }
.waypoint-two { bottom: 21%; left: 26%; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font: 700 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; margin: 0 8px 3px 0; background: currentColor; }
h1, h2 { font-family: var(--display); font-weight: 500; }
h1 { margin: 0; font-size: clamp(3.25rem, 6vw, 6.4rem); line-height: .98; letter-spacing: -.045em; }
h1 em { color: var(--jade-bright); font-style: normal; }
.lead { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 50px; padding: 11px 19px; overflow: hidden; border: 1px solid var(--line); color: var(--text); font-weight: 800; text-decoration: none; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35), transparent 70%); transform: translateX(-140%); animation: charge 8s ease-in-out infinite; }
.button.primary { min-width: 230px; border-color: var(--jade); background: var(--jade); color: #06110f; }
.button.secondary { background: rgba(255,255,255,.025); }
.button:hover { transform: translateY(-2px); }
.trust-note { margin: 22px 0 0; color: #788c87; font-size: .78rem; }
.trust-note span { color: var(--gold); }

.hero-visual { position: relative; border: 1px solid rgba(112,212,197,.26); background: rgba(6,15,14,.83); box-shadow: 0 35px 100px rgba(0,0,0,.55), 0 0 80px rgba(112,212,197,.07); transform-style: preserve-3d; }
.hero-visual::before { content: ""; position: absolute; z-index: 2; inset: -8px; border: 1px solid rgba(215,181,109,.15); pointer-events: none; }
.visual-chrome { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); color: #73928c; font: 700 .59rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.visual-chrome span:last-child { color: var(--jade); }
.language-pipeline { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; align-items: center; gap: 5px; padding: 18px; border-bottom: 1px solid var(--line); }
.pipeline-node { padding: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; }
.pipeline-node small { display: block; color: #70837f; font: .52rem var(--mono); letter-spacing: .12em; }
.pipeline-node strong { display: block; margin-top: 3px; font: 500 1rem var(--display); }
.pipeline-node.active { border-color: rgba(112,212,197,.5); color: var(--jade-bright); }
.pipeline-node.saved { border-color: rgba(215,181,109,.4); color: var(--gold); }
.pipeline-route { position: relative; height: 1px; background: #39504c; overflow: hidden; }
.pipeline-route i { position: absolute; width: 12px; height: 1px; background: #fff; box-shadow: 0 0 8px var(--jade); animation: pipeline 2.8s linear infinite; }
.preview-frame { position: relative; overflow: hidden; }
.preview-frame img { display: block; width: 100%; height: auto; opacity: .93; }
.scan-line { position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--jade), transparent); box-shadow: 0 0 14px var(--jade); opacity: 0; animation: scan 7s ease-in-out infinite; }

.signal-strip { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.signal-strip div { display: flex; align-items: center; gap: 13px; padding: 22px clamp(12px, 2.5vw, 32px); border-right: 1px solid var(--line); }
.signal-strip div:last-child { border-right: 0; }
.signal-strip strong { color: var(--jade-bright); font: 500 1.35rem var(--display); }
.signal-strip span { color: var(--muted); font-size: .75rem; }

.story, .install-section { padding-block: clamp(90px, 12vw, 160px); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; align-items: end; margin-bottom: 54px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .demo-copy h2, .diagnostic-copy h2 { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em; }
.section-heading > p:last-child, .demo-copy > p, .diagnostic-copy > p { max-width: 540px; margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.feature-card { position: relative; min-height: 260px; padding: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.feature-card:nth-child(3) { grid-column: 2; }
.feature-main { grid-row: span 2; min-height: 538px; background: radial-gradient(circle at 70% 25%, rgba(112,212,197,.12), transparent 35%), var(--surface); }
.card-index { color: #78908a; font: 700 .6rem var(--mono); letter-spacing: .16em; }
.feature-card h3 { margin: 88px 0 8px; font: 500 1.7rem var(--display); }
.feature-main h3 { margin-top: 250px; font-size: 2.2rem; }
.feature-card p { margin: 0; max-width: 470px; color: var(--muted); }
.glyph-pair { position: absolute; top: 94px; left: 50%; display: flex; align-items: center; gap: 25px; transform: translateX(-50%); }
.glyph-pair span { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(112,212,197,.35); color: var(--jade-bright); font: 3.8rem var(--display); box-shadow: inset 0 0 35px rgba(112,212,197,.07); }
.glyph-pair span:first-child { color: var(--muted); border-color: var(--line); }
.glyph-pair i { color: var(--gold); font-style: normal; }
.mini-sigil { position: absolute; top: 42px; right: 32px; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(215,181,109,.35); border-radius: 50%; color: var(--gold); font-size: 1.5rem; }

.demo-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 60px 140px; }
.demo-copy > p { margin-top: 24px; }
.demo-copy .source-note { margin-top: 16px; color: #71857f; font-size: .75rem; }
.video-shell { position: relative; border: 1px solid var(--line); background: #07100f; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.video-shell video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-toggle { position: absolute; left: 18px; bottom: 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(3,8,7,.8); color: var(--text); cursor: pointer; }

.section-heading.compact { max-width: 1040px; }
.install-flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.install-flow::before { content: ""; position: absolute; top: 37px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.install-flow::after { content: ""; position: absolute; top: 37px; left: 12%; width: 76%; height: 1px; background: linear-gradient(90deg, var(--jade), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 2s ease; }
.install-flow.is-active::after { transform: scaleX(1); }
.install-flow li { position: relative; z-index: 1; padding: 0 22px; text-align: center; }
.install-flow li > span { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: #71837f; font: .72rem var(--mono); transition: color .35s, border-color .35s, background .35s; }
.install-flow.is-active li > span { border-color: var(--jade); background: #0e211e; color: var(--jade-bright); }
.install-flow.is-active li:nth-child(2) > span { transition-delay: .45s; }
.install-flow.is-active li:nth-child(3) > span { transition-delay: .9s; }
.install-flow.is-active li:nth-child(4) > span { transition-delay: 1.35s; border-color: var(--gold); color: var(--gold); }
.install-flow strong { font-family: var(--display); font-size: 1.25rem; }
.install-flow p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

.diagnostics { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 70px 150px; }
.log-panel { border: 1px solid rgba(112,212,197,.25); background: #07100f; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.status-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); animation: pulse 3s ease-in-out infinite; }
.log-panel pre { margin: 0; padding: clamp(22px, 4vw, 44px); overflow-x: auto; color: #afc2bd; font: clamp(.75rem, 1.4vw, .95rem)/2 var(--mono); }
.log-panel code span { color: var(--jade); }
.diagnostic-copy > p { margin-top: 22px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 24px; color: var(--jade-bright); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.download-panel { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 24px; padding: clamp(34px, 6vw, 70px); overflow: hidden; border: 1px solid rgba(215,181,109,.28); background: radial-gradient(circle at 90% 20%, rgba(215,181,109,.12), transparent 30%), var(--surface); }
.download-panel::after { content: "繁"; position: absolute; right: 8%; bottom: -45%; color: rgba(215,181,109,.035); font: 22rem var(--display); pointer-events: none; }
.download-panel h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.download-panel p { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.download-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-block: 24px 120px; }
.trust-grid article { padding: 28px; border: 1px solid var(--line); background: rgba(10,18,17,.7); }
.trust-grid h2 { margin: 38px 0 12px; font-size: 1.65rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
footer { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer > div { display: flex; align-items: center; gap: 12px; }
footer p { margin: 0; }
footer a { color: var(--muted); }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@keyframes drift-a { to { transform: translate(-18px, 24px) scale(1.04); opacity: .2; } }
@keyframes drift-b { to { transform: translate(22px, -15px) scale(.96); opacity: .1; } }
@keyframes map-drift { to { transform: translate(14px, -10px) rotate(2deg); } }
@keyframes waypoint { 0% { opacity: .7; transform: scale(.2); } 80%,100% { opacity: 0; transform: scale(2.2); } }
@keyframes route-light { from { opacity: 0; transform: translateX(0); } 20%,80% { opacity: 1; } to { opacity: 0; transform: translateX(65vw); } }
@keyframes pipeline { from { opacity: 0; transform: translateX(-12px); } 20%,80% { opacity: 1; } to { opacity: 0; transform: translateX(42px); } }
@keyframes scan { 0%,60% { opacity: 0; transform: translateY(0); } 66% { opacity: .8; } 90% { opacity: .4; transform: translateY(470px); } 100% { opacity: 0; transform: translateY(470px); } }
@keyframes charge { 0%,70% { opacity: 0; transform: translateX(-140%); } 75% { opacity: .65; } 88%,100% { opacity: 0; transform: translateX(140%); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 150px; padding-bottom: 80px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 720px; }
  .section-heading, .demo-section, .diagnostics { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 20px; }
  .demo-section { gap: 42px; }
  .install-flow { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .install-flow::before, .install-flow::after { display: none; }
  .download-panel { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .nav-toggle { display: block; cursor: pointer; }
  .nav-open .nav-toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  nav { position: fixed; top: 64px; left: -16px; right: -16px; min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 36px 28px; visibility: hidden; opacity: 0; background: rgba(3,8,7,.98); transform: translateY(-12px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open nav { visibility: visible; opacity: 1; transform: translateY(0); }
  nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-download { margin-top: 18px; text-align: center; }
  .section-shell { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 118px; gap: 48px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .language-pipeline { grid-template-columns: 1fr 22px 1fr; }
  .pipeline-node.saved, .pipeline-route:nth-of-type(2) { display: none; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid, .trust-grid { grid-template-columns: 1fr; }
  .feature-main, .feature-card:nth-child(3) { grid-column: auto; grid-row: auto; min-height: 360px; }
  .feature-main h3 { margin-top: 190px; }
  .glyph-pair { top: 82px; }
  .glyph-pair span { width: 82px; height: 82px; font-size: 2.8rem; }
  .install-flow { grid-template-columns: 1fr; }
  .install-flow li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 0; text-align: left; }
  .install-flow li > span { width: 58px; height: 58px; margin: 0; }
  .download-panel { padding: 30px 22px; }
  footer { align-items: flex-start; flex-direction: column; gap: 24px; }
  .ley, .aura-two, .contour-two { display: none; }
}

@media (pointer: coarse) {
  [data-tilt] { transform: none !important; }
  .hero-map { opacity: .18; }
  .ley-two, .scan-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .install-flow::after { transform: scaleX(1); }
  [data-tilt] { transform: none !important; }
}
