:root {
  color-scheme: light;
  --ink: #15354b;
  --ink-soft: #436072;
  --teal: #147b7c;
  --teal-dark: #0f6366;
  --teal-soft: #dceceb;
  --gold: #d4a451;
  --paper: #fffdf8;
  --sand: #f4efe4;
  --line: rgba(21, 53, 75, 0.13);
  --shadow: 0 24px 80px rgba(17, 42, 58, 0.16);
  --max: 1200px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .8rem 1rem; border-radius: .7rem; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(21, 53, 75, .08);
  background: rgba(248, 245, 237, .86); backdrop-filter: blur(20px);
}
.header-inner {
  max-width: var(--max); min-height: 82px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 1.12rem; letter-spacing: .03em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: .72rem; letter-spacing: .08em; }
nav { display: flex; gap: 28px; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; font-weight: 650; }
nav a:hover { color: var(--teal); }

.button {
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; font-weight: 750; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, nav a:focus-visible { outline: 3px solid rgba(212, 164, 81, .72); outline-offset: 3px; }
.button-small { min-height: 44px; padding: 0 18px; background: var(--teal); color: #fff; border-radius: 13px; }
.button-primary { background: var(--teal); color: #fff; box-shadow: 0 15px 38px rgba(15, 99, 102, .25); }
.button-primary:hover, .button-small:hover { background: var(--teal-dark); }
.button-secondary { border-color: rgba(21, 53, 75, .24); background: rgba(255, 255, 255, .72); }
.button-secondary:hover { background: #fff; }
.button-light { background: #fff; color: var(--teal-dark); box-shadow: 0 14px 38px rgba(7, 43, 48, .18); }

.hero { position: relative; min-height: 760px; overflow: hidden; background: #e7e3d9; }
.hero-background { position: absolute; inset: 0; background: url("/assets/hero.webp") center 43% / cover no-repeat; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244, 239, 228, .99) 0%, rgba(244, 239, 228, .93) 40%, rgba(244, 239, 228, .24) 67%, rgba(244, 239, 228, .04) 100%);
}
.hero-inner {
  position: relative; max-width: var(--max); min-height: 760px; margin: 0 auto; padding: 76px 24px 66px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 38px;
}
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 18px; color: #a5732d; font-size: .77rem; font-weight: 850; letter-spacing: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.65rem, 5vw, 4.85rem); line-height: 1.08; letter-spacing: -.055em; }
.hero-text { max-width: 620px; margin-bottom: 31px; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.release-facts { display: flex; gap: 0; margin: 38px 0 0; padding: 0; list-style: none; }
.release-facts li { min-width: 138px; padding: 0 24px; border-left: 1px solid var(--line); display: grid; }
.release-facts li:first-child { padding-left: 0; border-left: 0; }
.release-facts strong { font-size: 1.05rem; }
.release-facts span { margin-top: 3px; color: var(--ink-soft); font-size: .78rem; }

.hero-product { position: relative; min-height: 600px; display: flex; justify-content: center; align-items: flex-end; }
.phone-shell {
  width: 294px; height: 604px; padding: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 37px;
  background: #171a1b; box-shadow: 0 35px 90px rgba(20, 42, 54, .31); transform: rotate(2.2deg);
}
.phone-shell img { width: 100%; height: 100%; border-radius: 29px; object-fit: cover; object-position: top; }
.product-note {
  position: absolute; padding: 15px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 17px;
  background: rgba(255, 253, 248, .9); box-shadow: 0 18px 48px rgba(20, 45, 58, .17); backdrop-filter: blur(12px);
  display: grid; min-width: 150px;
}
.product-note strong { font-size: 1.02rem; }
.product-note span { color: var(--ink-soft); font-size: .76rem; }
.product-note-top { right: 0; top: 100px; }
.product-note-top strong { color: var(--teal); font-size: 2rem; line-height: 1; }
.product-note-bottom { left: 2px; bottom: 64px; }

.trust-strip {
  max-width: var(--max); margin: -28px auto 0; padding: 0 24px; position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--line); box-shadow: var(--shadow);
}
.trust-strip div { padding: 26px 30px; background: var(--paper); display: grid; gap: 5px; }
.trust-strip strong { font-size: .98rem; }
.trust-strip span { color: var(--ink-soft); font-size: .86rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 126px 24px 0; }
.section-heading { max-width: 780px; }
.section-heading.compact { max-width: 720px; }
h2 { margin-bottom: 22px; font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.18; letter-spacing: -.045em; }
.section-heading > p:last-child, .safety-copy > p:last-child { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.9; }
.principles { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principles article { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.7); }
.principles article > span { color: var(--gold); font-weight: 850; letter-spacing: .12em; }
.principles h3 { margin: 46px 0 8px; font-size: 1.28rem; }
.principles p { margin-bottom: 0; color: var(--ink-soft); font-size: .92rem; }

.scene-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.scene-card {
  min-height: 322px; border-radius: 26px; overflow: hidden; position: relative; background-image: url("/assets/scenes.webp"); background-size: 300% 200%;
  box-shadow: 0 18px 48px rgba(25, 48, 61, .13); isolation: isolate;
}
.scene-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7,26,36,.84) 100%); }
.scene-card > div { position: absolute; inset: auto 0 0; padding: 30px; color: #fff; }
.scene-card span { color: #ead09e; font-size: .72rem; font-weight: 850; letter-spacing: .18em; }
.scene-card h3 { margin: 7px 0 3px; font-size: 1.7rem; }
.scene-card p { margin: 0; color: rgba(255,255,255,.82); }
.scene-1 { background-position: 0 0; }
.scene-2 { background-position: 50% 0; }
.scene-3 { background-position: 100% 0; }
.scene-4 { background-position: 0 100%; }
.scene-5 { background-position: 50% 100%; }
.scene-6 { background-position: 100% 100%; }

.safety-section { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 78px; align-items: start; }
.safety-list { border-top: 1px solid var(--line); }
.safety-list div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.safety-list strong { font-size: 1.05rem; }
.safety-list span { color: var(--ink-soft); font-size: .9rem; }

.download-section { max-width: var(--max); margin: 0 auto; padding: 126px 24px 108px; }
.download-card {
  padding: 58px; border-radius: 34px; color: #fff; background: var(--ink); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px;
}
.download-card h2 { max-width: 600px; margin-bottom: 14px; }
.download-card > div:first-child > p:not(.eyebrow) { max-width: 570px; color: rgba(255,255,255,.72); }
.download-card .button { margin-top: 17px; }
.download-meta { margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.download-meta div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 22px; }
.download-meta span { color: rgba(255,255,255,.6); }
.download-meta strong { font-weight: 720; text-align: right; }
.checksum { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.checksum > span { color: rgba(255,255,255,.6); font-size: .78rem; }
.checksum code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d9e9e7; font-size: .76rem; }
.checksum button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: #fff; background: transparent; cursor: pointer; }
.checksum button:hover { background: rgba(255,255,255,.1); }
.install-steps { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.install-steps > div { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.7); display: flex; gap: 15px; }
.install-steps > div > span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--teal); font-weight: 800; }
.install-steps p { margin: 0; display: grid; }
.install-steps small { margin-top: 3px; color: var(--ink-soft); }

footer {
  max-width: var(--max); margin: 0 auto; padding: 34px 24px 46px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand div { display: grid; }
.footer-brand span { color: var(--ink-soft); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .84rem; }
.footer-links a:hover { color: var(--teal); }
.copyright { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 66px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(244,239,228,.99) 0%, rgba(244,239,228,.93) 50%, rgba(244,239,228,.5) 100%); }
  .hero-copy { max-width: 760px; }
  .hero-product { min-height: 540px; }
  .phone-shell { height: 520px; width: 252px; }
  .product-note-top { right: 12%; }
  .product-note-bottom { left: 14%; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 0; }
  .principles h3 { margin-top: 24px; }
  .safety-section { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 72px; padding: 0 16px; }
  .brand small { display: none; }
  .brand strong { font-size: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .button-small { min-height: 42px; padding: 0 14px; font-size: .86rem; }
  .hero-inner { padding: 54px 18px 48px; }
  h1 { font-size: clamp(2.4rem, 12.4vw, 4rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { display: grid; }
  .release-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .release-facts li { min-width: 0; padding: 0 10px; }
  .release-facts strong { font-size: .9rem; }
  .release-facts span { font-size: .68rem; }
  .hero-product { min-height: 505px; }
  .phone-shell { width: 230px; height: 472px; }
  .product-note { min-width: 132px; padding: 12px 14px; }
  .product-note-top { right: 0; top: 70px; }
  .product-note-bottom { left: 0; bottom: 38px; }
  .trust-strip { margin-top: 0; padding: 0; border-radius: 0; grid-template-columns: 1fr; box-shadow: none; border-left: 0; border-right: 0; }
  .trust-strip div { padding: 20px 18px; }
  .section { padding: 90px 18px 0; }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-card { min-height: 270px; }
  .download-section { padding: 90px 18px 76px; }
  .download-card { padding: 30px 22px; grid-template-columns: 1fr; border-radius: 26px; }
  .checksum { grid-template-columns: 1fr auto; }
  .checksum > span { grid-column: 1 / -1; }
  .install-steps { grid-template-columns: 1fr; }
  footer { padding: 28px 18px 40px; grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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