:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #e9ece9;
  --ink: #111412;
  --muted: #5d655f;
  --line: rgba(17, 20, 18, .14);
  --green: #149d58;
  --green-dark: #087b42;
  --blue: #176bd6;
  --dark: #111816;
  --radius: 18px;
  --nav-h: 72px;
  --page: min(1280px, calc(100vw - 96px));
  --shadow: 0 24px 80px rgba(17, 25, 20, .12);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(20, 157, 88, .55); outline-offset: 4px; }

.page-wrap, .page-grid, .site-nav__inner { width: var(--page); margin-inline: auto; }
.page-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.eyebrow { margin: 0 0 18px; color: var(--green-dark); font-size: 14px; font-weight: 700; }
h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 { margin-top: 0; }
h1 { font-size: clamp(50px, 5vw, 74px); line-height: 1.02; font-weight: 650; }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; font-weight: 650; }
h3 { font-size: 24px; line-height: 1.2; }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.section-heading--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading--row h2 { margin-bottom: 0; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: rgba(245, 246, 244, .96); border-bottom: 1px solid var(--line); }
.site-nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand__mark { width: 24px; height: 24px; display: inline-block; border-radius: 7px 7px 12px 12px; background: var(--green); position: relative; }
.brand__mark::after { content: ""; position: absolute; width: 8px; height: 4px; border: 2px solid white; border-top: 0; border-radius: 0 0 8px 8px; left: 6px; top: 8px; }
.desktop-nav { margin-left: auto; display: flex; gap: 28px; }
.desktop-nav a { color: #313733; font-size: 15px; position: relative; }
.desktop-nav a::after, .footer-links a::after { content: ""; position: absolute; height: 1px; inset: auto 0 -5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover::after, .footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-action { padding: 11px 18px; background: var(--ink); color: white; border-radius: 10px; font-size: 15px; transition: transform .2s ease; }
.nav-action:hover, .primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.nav-action:active, .primary-button:active, .secondary-button:active { transform: translateY(0); }
.menu-button, .mobile-menu { display: none; }

.hero { min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 48px; display: flex; align-items: stretch; }
.hero__grid { min-height: calc(100svh - var(--nav-h) - 96px); align-items: center; }
.hero__copy { grid-column: 1 / span 5; align-self: center; padding-block: 32px; }
.hero__lead { max-width: 540px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; margin-top: 36px; }
.primary-button, .secondary-button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--ink); border-radius: 10px; font-weight: 650; transition: transform .2s ease, background .2s ease; }
.primary-button { background: var(--ink); color: white; }
.secondary-button { background: transparent; }
.hero__facts { margin: 58px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero__facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.hero__facts dt { color: var(--muted); font-size: 13px; }
.hero__facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.hero__visual { grid-column: 7 / -1; height: auto; min-height: 620px; align-self: stretch; position: relative; display: grid; place-items: center; overflow: hidden; background: #dfe5e2; border-radius: var(--radius); }
.hero__visual > img { width: min(88%, 660px); position: relative; z-index: 2; filter: drop-shadow(0 40px 46px rgba(23, 62, 106, .18)); animation: product-float 4s ease-in-out infinite; }
.hero__halo { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #f5f8f6; box-shadow: 0 0 0 70px rgba(255,255,255,.26), 0 0 0 140px rgba(255,255,255,.13); }
.now-playing { position: absolute; z-index: 3; left: 24px; bottom: 24px; width: 280px; padding: 16px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.94); border: 1px solid rgba(17,20,18,.08); border-radius: 12px; }
.now-playing span:last-child { display: grid; gap: 4px; }
.now-playing strong { font-size: 14px; }
.now-playing small { color: var(--muted); font-size: 12px; }
.now-playing__bars { width: 26px; height: 28px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.now-playing__bars i { width: 3px; height: 10px; border-radius: 3px; background: var(--green); animation: equalize 1.2s ease-in-out infinite; }
.now-playing__bars i:nth-child(2) { animation-delay: -.35s; }.now-playing__bars i:nth-child(3) { animation-delay: -.7s; }

.screen-section { min-height: 100svh; padding: 120px 0 80px; display: flex; align-items: center; }
.logic-section { background: var(--dark); color: #f5f8f6; }
.logic-section .eyebrow { color: #62d494; }
.logic-section .section-heading > p:last-child { color: #aeb8b2; }
.logic-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
.logic-rail { display: grid; gap: 8px; }
.logic-node { width: 100%; padding: 18px; display: grid; grid-template-columns: 38px 1fr; text-align: left; background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.logic-node:hover { transform: translateX(4px); }
.logic-node.is-active { background: #f3f6f4; color: var(--ink); }
.logic-node > span { grid-row: 1 / span 2; color: #62d494; font: 500 13px ui-monospace, monospace; }
.logic-node.is-active > span { color: var(--green-dark); }
.logic-node strong { font-size: 17px; }
.logic-node small { color: #8f9b94; margin-top: 5px; }
.logic-node.is-active small { color: var(--muted); }
.logic-stage { min-height: 430px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; background: #202a26; border-radius: var(--radius); overflow: hidden; }
.step-count { color: #62d494; font: 500 13px ui-monospace, monospace; }
.logic-stage h3 { font-size: 38px; margin-bottom: 16px; }
.logic-stage__copy > p:last-child { color: #bbc5bf; line-height: 1.75; font-size: 17px; }
.logic-stage__visual { min-height: 270px; display: grid; place-items: center; align-content: center; gap: 28px; background: #dbe4df; color: var(--ink); border-radius: 14px; }
.voice-ring { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 50%; border: 1px solid rgba(17,20,18,.15); }
.voice-ring span { width: 7px; height: 38px; border-radius: 8px; background: var(--green); animation: equalize 1.2s ease-in-out infinite; }
.voice-ring span:nth-child(2) { height: 62px; animation-delay: -.3s; }.voice-ring span:nth-child(3) { animation-delay: -.6s; }
.logic-stage__visual p { margin: 0; font-weight: 650; }

.hardware-section { background: #e7ebee; }
.segmented { display: inline-flex; padding: 4px; gap: 3px; background: rgba(17,20,18,.08); border-radius: 10px; }
.segmented button { min-height: 40px; padding: 0 18px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; }
.segmented button.is-active { background: white; box-shadow: 0 1px 4px rgba(17,20,18,.12); }
.hardware-stage { min-height: 570px; padding: 42px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 48px; align-items: center; background: #f8f9f8; border-radius: var(--radius); }
.hardware-stage > img { width: 100%; max-height: 540px; object-fit: contain; transition: opacity .18s ease, transform .25s ease; }
.hardware-stage > img.is-changing { opacity: 0; transform: scale(.985); }
.hardware-facts { display: grid; gap: 30px; }
.hardware-facts > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.hardware-facts span { color: var(--blue); font: 600 13px ui-monospace, monospace; }
.hardware-facts p { margin: 0; color: var(--muted); line-height: 1.65; }
.hardware-facts strong { color: var(--ink); display: block; margin-bottom: 4px; }

.app-section { background: #f4f5f3; align-items: flex-start; }
.phone-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.phone-gallery.is-hidden { display: none; }
.phone-card { padding: 0; border: 0; border-radius: 16px; background: #dfe3e0; overflow: hidden; cursor: zoom-in; text-align: left; transition: transform .22s ease, box-shadow .22s ease; }
.phone-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.phone-card img { width: 100%; aspect-ratio: 1760 / 3300; object-fit: cover; object-position: top; transition: transform .3s ease; }
.phone-card:hover img { transform: scale(1.025); }
.phone-card > span { min-height: 84px; padding: 16px; display: grid; align-content: center; gap: 5px; background: white; }
.phone-card strong { font-size: 15px; }.phone-card small { color: var(--muted); font-size: 13px; }
#device-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#device-gallery .phone-card { grid-column: span 1; }
.device-copy { grid-column: 3 / -1; align-self: stretch; padding: 48px; background: var(--dark); color: white; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; }
.device-copy h3 { max-width: 540px; font-size: 34px; }
.device-copy > p:last-child { max-width: 580px; color: #b9c3bd; line-height: 1.7; }

.setup-section { background: #fff; }
.setup-track { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.setup-step { padding: 18px 12px 22px 0; display: grid; gap: 5px; text-align: left; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.setup-step > span { color: var(--muted); font: 500 13px ui-monospace, monospace; }
.setup-step strong { font-size: 17px; }.setup-step small { color: var(--muted); }
.setup-step.is-active { border-bottom-color: var(--green); }.setup-step.is-active > span { color: var(--green-dark); }
.setup-preview { margin-top: 32px; min-height: 500px; display: grid; grid-template-columns: 42% 1fr; align-items: center; background: #e7ebea; border-radius: var(--radius); overflow: hidden; }
.setup-preview > img { width: 260px; max-height: 430px; justify-self: center; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; box-shadow: 0 20px 45px rgba(17,20,18,.14); transition: opacity .18s ease; }
.setup-preview__copy { padding: 48px; }
.setup-preview__copy > span { color: var(--green-dark); font: 600 14px ui-monospace, monospace; }
.setup-preview__copy h3 { margin: 16px 0; font-size: 40px; }
.setup-preview__copy p { max-width: 520px; color: var(--muted); line-height: 1.75; }

.recovery-section { background: #dfe7e3; overflow: hidden; }
.recovery-grid { align-items: center; }
.recovery-copy { grid-column: 1 / span 5; position: relative; z-index: 3; }
.recovery-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.7; }
.recovery-copy ol { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.recovery-copy li { display: flex; gap: 14px; align-items: center; }
.recovery-copy li span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }
.recovery-phone { grid-column: 7 / span 3; padding: 0; border: 0; border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; position: relative; z-index: 2; }
.recovery-phone img { width: 100%; }
.recovery-product { position: absolute; width: min(41vw, 630px); right: -8vw; bottom: -17%; opacity: .92; }

.site-footer { min-height: 72svh; padding: 120px 0 48px; background: var(--dark); color: white; display: flex; align-items: stretch; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; align-content: space-between; gap: 64px; }
.brand--footer { margin-bottom: 48px; }.footer-grid h2 { max-width: 700px; font-size: clamp(48px, 6vw, 82px); }
.footer-links { display: grid; align-content: start; gap: 20px; }.footer-links a { width: max-content; position: relative; color: #bbc5bf; }
.footer-meta { grid-column: 1 / -1; padding-top: 24px; display: flex; justify-content: space-between; color: #89958e; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; }

.screen-dialog { max-width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
.screen-dialog::backdrop { background: rgba(7, 12, 9, .82); backdrop-filter: blur(8px); }
.screen-dialog img { max-height: 88vh; width: auto; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.4); }
.dialog-close { position: absolute; width: 44px; height: 44px; right: -54px; top: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.35); color: white; font-size: 28px; cursor: pointer; }

@keyframes equalize { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes product-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1023px) {
  :root { --page: min(100% - 48px, 900px); }
  .desktop-nav { display: none; }.nav-action { margin-left: auto; }.menu-button { width: 44px; height: 44px; padding: 0 12px; display: grid; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
  .menu-button span { height: 1px; background: var(--ink); }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0; padding: 48px 24px; background: var(--bg); flex-direction: column; gap: 0; }
  .mobile-menu.is-open { display: flex; }.mobile-menu a { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 24px; }
  .hero__grid { align-content: center; }.hero__copy { grid-column: 1 / span 6; }.hero__visual { grid-column: 7 / -1; min-height: 0; height: min(700px, calc(100svh - var(--nav-h) - 68px)); max-height: calc(100vh - 140px); align-self: center; }
  h1 { font-size: clamp(46px, 6.5vw, 66px); }
  .hero__facts { grid-template-columns: 1fr; gap: 8px; margin-top: 36px; }.hero__facts div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
  .logic-layout { grid-template-columns: 1fr; }.logic-rail { grid-template-columns: repeat(4, 1fr); }.logic-node { grid-template-columns: 1fr; }.logic-node > span { grid-row: auto; }.logic-node small { display: none; }
  .hardware-stage { grid-template-columns: 1fr; }.hardware-facts { grid-template-columns: repeat(3, 1fr); }
  .phone-gallery { grid-template-columns: repeat(3, 1fr); }.phone-card:nth-child(n+4) { display: none; }
  .setup-preview { grid-template-columns: 48% 1fr; }
  .recovery-copy { grid-column: 1 / span 6; }.recovery-phone { grid-column: 8 / span 4; }.recovery-product { display: none; }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .hero__visual { height: calc(100vh - 140px); min-height: 0; align-self: center; }
}

@media (max-width: 639px) {
  :root { --nav-h: 64px; --page: calc(100% - 32px); --radius: 14px; }
  .nav-action { display: none; }.site-nav__inner { gap: 16px; }.menu-button { margin-left: auto; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 36px) 0 24px; }.hero__grid { display: flex; flex-direction: column; gap: 24px; }.hero__copy { padding: 0; }.hero__visual { width: 100%; height: 280px; min-height: 280px; order: 2; }
  h1 { font-size: 42px; }.hero__lead { font-size: 17px; }.hero__actions { flex-direction: column; margin-top: 28px; }.primary-button,.secondary-button { width: 100%; }.hero__facts { display: none; }
  .hero__visual > img { width: 82%; }.now-playing { width: calc(100% - 32px); left: 16px; bottom: 16px; padding: 12px; }
  .screen-section { min-height: auto; padding: 88px 0 64px; }.section-heading { margin-bottom: 32px; }.section-heading--row { display: grid; align-items: start; }.section-heading--row h2 { margin-bottom: 0; }
  h2 { font-size: 38px; }.logic-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }.logic-node { min-width: 150px; scroll-snap-align: start; }.logic-stage { min-height: auto; padding: 24px; grid-template-columns: 1fr; }.logic-stage h3 { font-size: 30px; }.logic-stage__visual { min-height: 220px; }
  .segmented { width: 100%; }.segmented button { flex: 1; }
  .hardware-stage { min-height: auto; padding: 22px; gap: 28px; }.hardware-facts { grid-template-columns: 1fr; gap: 16px; }
  .phone-gallery, #device-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }.phone-card:nth-child(n+4) { display: block; }.phone-card:last-child:nth-child(odd) { grid-column: 1 / -1; }.phone-card:last-child:nth-child(odd) img { aspect-ratio: 1.5; }.phone-card > span { min-height: 78px; padding: 12px; }.device-copy { grid-column: 1 / -1; padding: 28px; }.device-copy h3 { font-size: 28px; }
  .setup-track { grid-template-columns: repeat(2, 1fr); }.setup-preview { min-height: auto; grid-template-columns: 1fr; padding-top: 28px; }.setup-preview > img { width: 210px; max-height: 350px; }.setup-preview__copy { padding: 28px; }.setup-preview__copy h3 { font-size: 32px; }
  .recovery-grid { display: flex; flex-direction: column; align-items: stretch; }.recovery-phone { width: 72%; align-self: center; }.recovery-product { display: none; }
  .site-footer { min-height: 90svh; padding: 88px 0 32px; }.footer-grid { grid-template-columns: 1fr; }.footer-grid h2 { font-size: 52px; }.footer-meta { grid-column: 1; }
  .dialog-close { right: 0; top: -52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
