:root {
  color-scheme: light;
  --ink: #223a53;
  --muted: #5d7189;
  --blue: #255bcf;
  --blue-hover: #1b43a1;
  --gold: #e8ac4d;
  --green: #32765f;
  --line: #c4d7f3;
  --paper: #dfecff;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
::selection { background: #dbe7fd; color: #123581; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #bc862b; outline-offset: 5px; }
.icon { flex: 0 0 auto; object-fit: contain; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 20; background: white; padding: 14px 20px; }
.skip-link:focus { top: 14px; }

.site-header { position: relative; background: #224fbb; color: #fff; border-bottom: 1px solid #3665c6; }
.site-header::after { content: ""; position: absolute; bottom: -1px; left: max(48px, calc((100% - 1200px) / 2)); width: 46px; height: 3px; background: var(--gold); }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 18px; font-weight: 750; line-height: 1.2; }
.brand-copy small { font-size: 8px; font-weight: 600; color: #c6d9ff; }
.nav-links { height: 100%; display: flex; align-items: stretch; gap: 36px; }
.nav-link { position: relative; display: inline-flex; align-items: center; color: #c9d9f8; font-size: 13px; transition: color 180ms; }
.nav-link:hover, .nav-link[aria-current] { color: #fff; }
.nav-link::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 220ms ease; }
.nav-link:hover::after { transform: scaleX(0.45); }
.nav-link[aria-current]::after { transform: scaleX(1); }
.nav-note { color: #d6e4ff; font-size: 12px; }
.nav-note span { color: #ffd38b; }

.hero { position: relative; isolation: isolate; height: min(760px, calc(100svh - 152px)); min-height: 570px; background: var(--paper); overflow: hidden; }
.hero-scene { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-accents { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.accent-corner { position: absolute; left: max(28px, calc((100% - 1290px) / 2)); top: 30px; width: 168px; height: 80px; border-top: 1px solid #396ac731; border-left: 1px solid #396ac731; }
.accent-corner::after { content: ""; position: absolute; width: 32px; height: 3px; background: #4f7cd4; left: -1px; top: -2px; }
.accent-track { position: absolute; left: max(48px, calc((100% - 1200px) / 2)); bottom: 77px; width: 134px; height: 1px; background: #5683d23d; }
.accent-track::after { content: ""; position: absolute; top: -1px; left: 0; width: 27px; height: 3px; background: var(--gold); animation: track-slide 4.8s ease-in-out 1; }
.accent-stripes { position: absolute; right: 36px; top: 37px; width: 82px; height: 5px; border-top: 1px solid #4a7bcc59; border-bottom: 1px solid #4a7bcc59; transform: rotate(-40deg); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-copy { width: 56%; max-width: 615px; padding-bottom: 24px; }
.hero-copy > * { animation: appear 650ms ease-out both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
.hero-copy > :nth-child(6) { animation-delay: 350ms; }
.eyebrow { margin: 0 0 27px; display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; color: #315bb2; }
.eyebrow > span { width: 23px; height: 3px; background: var(--gold); }
.title-lockup { display: flex; align-items: center; gap: 22px; }
.hero-logo { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 18px; box-shadow: 0 10px 27px #224fbb26, 0 0 0 5px #ffffff66; }
h1 { margin: 0; color: #204db6; font-size: 76px; line-height: 1.2; font-weight: 800; white-space: nowrap; }
.slogan { margin: 25px 0 0; font-size: 28px; line-height: 1.55; font-weight: 650; }
.slogan span { display: inline-block; color: #2458be; text-decoration: underline; text-decoration-color: #e8ac4d99; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.description { margin: 16px 0 0; font-size: 14px; line-height: 1.95; color: var(--muted); }
.download-group { display: flex; gap: 14px; margin-top: 33px; max-width: 440px; }
.download-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 213px;
  height: 70px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background 180ms, border-color 180ms, box-shadow 180ms, transform 180ms;
}
.download-button:hover { transform: translateY(-2px); }
.download-button:active { transform: translateY(0); }
.android { background: var(--blue); color: white; box-shadow: 0 8px 20px #2455c72b, inset 0 1px #ffffff1a; }
.android:hover { background: var(--blue-hover); box-shadow: 0 9px 24px #2455c728; }
.ios { background: #edf4ff; color: #2454b6; border-color: #9dbbeb; box-shadow: 0 5px 16px #2455c70a; }
.ios:hover { background: #f7faff; border-color: #648fd8; box-shadow: 0 7px 18px #2455c718; }
.platform-icon { width: 29px; height: 29px; fill: currentColor; flex: 0 0 auto; }
.apple-icon { width: 32px; height: 32px; margin-left: -2px; }
.button-copy { display: grid; gap: 4px; flex: 1 1 auto; }
.button-copy small { font-size: 10px; line-height: 1; opacity: 0.72; }
.button-copy strong { font-size: 16px; line-height: 1.3; font-weight: 650; white-space: nowrap; }
.button-arrow { opacity: 0.7; transition: transform 200ms ease, opacity 200ms ease; }
.android .button-arrow { filter: invert(1); }
.ios .button-arrow { filter: invert(29%) sepia(83%) saturate(1150%) hue-rotate(193deg); }
.download-button:hover .button-arrow { transform: translate(2px, -2px); opacity: 1; }
.download-note { margin: 17px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.download-note .icon { opacity: 0.48; }
.noscript-note { font-size: 12px; color: #a14524; }
.scene-caption { position: absolute; right: 12px; bottom: 21px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; width: 320px; font-size: 11px; color: #496994; }
.caption-line { width: 20px; height: 2px; background: var(--gold); }
.scene-caption small { display: block; padding-left: 29px; width: 100%; font-size: 8px; color: #637fa3; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #b4caec; border-radius: 6px; color: var(--ink); background: #edf4ff; transition: background 180ms, border-color 180ms; }
.icon-button:hover { background: #dae9ff; border-color: #8baee3; }
.preview-button { position: absolute; right: 0; bottom: 22px; }
.scroll-link { position: absolute; left: 0; bottom: 27px; display: flex; gap: 15px; align-items: center; color: var(--muted); font-size: 10px; }
.scroll-link .icon { opacity: 0.6; transition: transform 180ms; }
.scroll-link:hover .icon { transform: translateY(3px); }

.principles { background: #2858bd; color: #fff; border-top: 1px solid #3c6dd0; border-bottom: 1px solid #234fae; }
.principles-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 29px; }
.principle { display: flex; align-items: center; justify-content: center; gap: 24px; padding-inline: 20px; }
.principle + .principle { border-left: 1px solid #86a7e14d; }
.principle-number { color: #f6ce91; font-family: Georgia, serif; font-size: 30px; font-style: italic; transition: transform 220ms ease; }
.principle:hover .principle-number { transform: translateY(-2px); }
.principle div { display: grid; gap: 6px; }
.principle strong { font-size: 14px; font-weight: 600; }
.principle small { color: #c7d9f8; font-size: 8px; }

.about { position: relative; background: #eef5f0; }
.about::before { content: ""; position: absolute; top: 0; left: max(48px, calc((100% - 1200px) / 2)); width: 48px; height: 3px; background: var(--gold); }
.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; padding-block: 73px; align-items: center; }
.section-label { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--green); margin: 0 0 18px; }
.section-label span { display: block; width: 6px; height: 6px; background: var(--green); }
h2 { margin: 0; font-size: 34px; line-height: 1.45; font-weight: 650; }
h2 > span { color: #b98b3e; }
.about-copy { padding-left: 38px; border-left: 1px solid #dce4df; }
.about-copy p { font-size: 13px; line-height: 1.95; color: #68766c; margin: 0 0 18px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 600; color: #2e5745; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link .icon, .back-to-top .icon { transition: transform 180ms ease; }
.text-link:hover .icon { transform: translate(2px, -2px); }
.back-to-top:hover .icon { transform: translateY(-2px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; }
.footer-brand img { border-radius: 6px; }
.site-footer > small { font-size: 10px; color: #586f8d; }
.back-to-top { display: inline-flex; align-items: center; gap: 11px; font-size: 10px; color: #42689d; padding-block: 12px; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 18px; width: max-content; max-width: calc(100% - 32px); padding: 12px 12px 12px 19px; background: #fff; border: 1px solid #dce3df; border-left: 3px solid var(--gold); border-radius: 7px; box-shadow: 0 8px 40px #1d34252b; }
.toast-message { font-size: 13px; line-height: 1.7; }
.toast-close { width: 30px; height: 30px; border: 0; }
.preview-dialog { max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: visible; border: 0; border-radius: 8px; background: #edf5fe; box-shadow: 0 20px 90px #0004; }
.preview-dialog::backdrop { background: #162324ba; }
.preview-image { width: auto; height: min(850px, calc(100dvh - 48px)); max-width: calc(100vw - 48px); object-fit: contain; border-radius: 8px; }
.dialog-close { position: absolute; right: 9px; top: 9px; z-index: 1; box-shadow: 0 3px 14px #0001; }
.preview-dialog[open] { animation: appear 230ms ease-out both; }
.toast:not([hidden]) { animation: fade-in 180ms ease-out both; }

@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes track-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }

[data-reveal].is-revealed { animation: appear 650ms ease-out both; }
.principle.is-revealed:nth-child(2) { animation-delay: 70ms; }
.principle.is-revealed:nth-child(3) { animation-delay: 140ms; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: logo-float 4.8s ease-in-out 1; }
}

@media (min-width: 1800px) {
  .container { width: min(1360px, calc(100% - 160px)); }
}

@media (min-width: 2700px) {
  .hero-scene img { object-fit: contain; }
}

@media (min-width: 761px) and (max-height: 720px) {
  .nav { height: 72px; }
  .hero { min-height: 480px; height: calc(100svh - 125px); }
  .hero-copy { padding-bottom: 34px; }
  .eyebrow { margin-bottom: 18px; }
  .slogan { margin-top: 17px; }
  .download-group { margin-top: 23px; }
}

@media (min-width: 761px) and (max-width: 1150px) {
  .container { width: calc(100% - 64px); }
  .hero-copy { width: 56%; }
  h1 { font-size: 60px; }
  .hero-logo { width: 63px; height: 63px; border-radius: 15px; }
  .title-lockup { gap: 16px; }
  .slogan { font-size: 24px; }
  .download-group { max-width: 395px; gap: 12px; }
  .download-button { padding-inline: 16px; min-width: 0; gap: 9px; }
  .scene-caption { right: 32px; width: 225px; }
  .about-inner { gap: 30px; }
  h2 { font-size: 29px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .nav-note { display: none; }
  .hero { max-height: 680px; }
  h1 { font-size: 48px; }
  .hero-logo { width: 54px; height: 54px; border-radius: 13px; }
  .title-lockup { gap: 12px; }
  .slogan { font-size: 21px; }
  .description { font-size: 12px; }
  .download-button { height: 64px; padding-inline: 12px; gap: 6px; }
  .button-copy strong { font-size: 14px; }
  .button-arrow { width: 15px; height: 15px; }
  .platform-icon { width: 25px; height: 25px; }
  .principle { gap: 16px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .nav { height: 68px; gap: 12px; }
  .site-header::after, .about::before { left: 20px; width: 30px; }
  .accent-corner { left: 12px; top: 15px; width: 44px; height: 34px; border-color: #396ac722; }
  .accent-corner::after { width: 15px; height: 2px; }
  .accent-track { left: 20px; bottom: 29px; width: 68px; }
  .accent-stripes { width: 35px; right: 14px; top: 29px; opacity: 0.6; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 8px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 6px; }
  .nav-links { gap: 22px; }
  .nav-link { font-size: 11px; }
  .nav-note { display: none; }
  .hero { height: min(790px, calc(100svh - 116px)); min-height: 620px; }
  .hero-scene img { object-fit: cover; }
  .hero-inner { display: block; }
  .hero-copy { width: 100%; max-width: none; padding: 28px 0 0; text-align: center; }
  .eyebrow { justify-content: center; gap: 8px; font-size: 10px; margin-bottom: 16px; }
  .eyebrow > span { width: 16px; height: 2px; }
  .title-lockup { justify-content: center; gap: 13px; }
  .hero-logo { width: 52px; height: 52px; border-radius: 13px; }
  h1 { font-size: 44px; }
  .slogan { font-size: 22px; line-height: 1.5; margin-top: 16px; }
  .description { font-size: 12px; line-height: 1.85; margin-top: 9px; }
  .download-group { justify-content: center; gap: 12px; margin: 22px auto 0; max-width: 365px; }
  .download-button { height: 62px; width: 50%; padding-inline: 15px; gap: 8px; text-align: left; }
  .platform-icon { width: 27px; height: 27px; }
  .button-copy small { font-size: 9px; }
  .button-copy strong { font-size: 14px; }
  .button-arrow { width: 15px; height: 15px; }
  .download-note { justify-content: center; font-size: 10px; margin-top: 11px; }
  .scene-caption, .scroll-link { display: none; }
  .preview-button { bottom: 19px; right: 0; width: 34px; height: 34px; }
  .principles-inner { width: 100%; padding-block: 21px; }
  .principle { padding-inline: 6px; gap: 8px; align-items: flex-start; }
  .principle-number { font-size: 19px; line-height: 1.25; }
  .principle div { gap: 6px; }
  .principle strong { font-size: 11px; line-height: 1.5; }
  .principle small { font-size: 6px; }
  .about-inner { padding-block: 43px; grid-template-columns: 1fr; gap: 22px; }
  .section-label { margin-bottom: 13px; font-size: 10px; }
  h2 { font-size: 27px; }
  .about-copy { padding-left: 0; border: 0; }
  .about-copy p { font-size: 12px; margin-bottom: 15px; }
  .text-link { font-size: 11px; gap: 16px; }
  .site-footer { min-height: 76px; flex-wrap: wrap; column-gap: 10px; row-gap: 0; }
  .footer-brand { font-size: 10px; gap: 6px; }
  .footer-brand img { width: 21px; height: 21px; }
  .site-footer > small { font-size: 9px; }
  .back-to-top { font-size: 9px; gap: 5px; }
  .toast-message { font-size: 12px; }
}

@media (min-width: 520px) and (max-width: 760px) {
  .hero-scene img { object-fit: contain; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand-copy small { display: none; }
  .nav-links { gap: 16px; }
  h1 { font-size: 37px; }
  .hero-logo { width: 46px; height: 46px; border-radius: 11px; }
  .slogan { font-size: 20px; }
  .download-group { gap: 9px; }
  .download-button { padding-inline: 10px; gap: 5px; }
  .button-arrow { width: 13px; height: 13px; }
  .principle { gap: 5px; }
  .principle-number { font-size: 16px; }
  .principle strong { font-size: 10px; }
  h2 { font-size: 24px; }
}

@media (max-width: 760px) and (max-height: 740px) {
  .hero { min-height: 490px; height: calc(100svh - 110px); }
  .hero-copy { padding-top: 19px; }
  .eyebrow { margin-bottom: 11px; font-size: 9px; }
  h1 { font-size: 36px; }
  .hero-logo { width: 44px; height: 44px; border-radius: 11px; }
  .slogan { margin-top: 10px; font-size: 19px; }
  .description { margin-top: 6px; font-size: 11px; }
  .download-group { margin-top: 15px; }
  .download-button { height: 55px; }
  .download-note { margin-top: 8px; font-size: 9px; }
  .hero-scene img { object-fit: contain; object-position: center bottom; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
