:root {
  color-scheme: light;
  --page: #f6f6f3;
  --paper: #ffffff;
  --ink: #161616;
  --muted: #686868;
  --line: #deded9;
  --dark: #0d0e10;
  --dark-surface: #18191d;
  --dark-line: #303137;
  --orange: #f15a24;
  --orange-deep: #d94216;
  --green: #29c765;
  --max-width: 1180px;
  --showcase-phone-width: clamp(250px, calc(45.2svh - 110px), 360px);
  --theme-progress: .5;
  --theme-split: 50%;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--page); color: var(--ink); }
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 78%, white); outline-offset: 4px; }

.section-inner { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(20,20,20,.09);
  background: rgba(250,250,248,.62);
  box-shadow: 0 8px 28px rgba(25,25,25,.045);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.site-header[data-dark] { border-bottom-color: rgba(255,255,255,.1); background: rgba(12,13,15,.62); color: #f5f5f2; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.site-header[data-dark] .site-nav a { color: #d7d7d9; }
.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 760; }
.brand img { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { position: relative; color: #4f4f4f; font-size: 13px; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--orange); transition: right .25s ease; }
.site-nav a:hover::after { right: 0; }
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; padding: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

.hero {
  position: relative;
  min-height: max(820px, calc(100svh - 16px));
  padding: 104px 24px 42px;
  overflow: hidden;
  text-align: center;
  background: var(--page);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 64px 0 auto;
  height: 220px;
  background: linear-gradient(180deg, rgba(241,90,36,.07), transparent);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 18px 42px rgba(32,32,32,.16); }
.product-boundary { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.hero h1 { margin: 9px 0 0; font-size: clamp(58px, 7vw, 84px); line-height: .98; letter-spacing: 0; }
.hero h2 { margin: 15px 0 0; font-size: clamp(27px, 3.5vw, 42px); line-height: 1.1; letter-spacing: 0; }
.hero-summary { max-width: 570px; margin: 14px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.primary-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border: 1px solid rgba(25,25,25,.1); border-radius: 999px; background: rgba(255,255,255,.58); color: var(--orange-deep); box-shadow: 0 10px 28px rgba(40,40,40,.08); font-size: 14px; font-weight: 720; text-decoration: none; backdrop-filter: blur(18px) saturate(1.45); -webkit-backdrop-filter: blur(18px) saturate(1.45); }
.primary-action span { transition: transform .25s ease; }
.primary-action:hover span { transform: translateY(3px); }
.hero-device { position: relative; z-index: 1; width: clamp(236px, 25vw, 292px); margin: 28px auto 0; }
.phone-shell {
  --phone-border: 6px;
  --phone-radius: 36px;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: var(--phone-border) solid #151518;
  border-radius: var(--phone-radius);
  background: #151518;
  box-shadow: 0 30px 70px rgba(28,28,30,.22);
}
.phone-shell::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.24); border-radius: inherit; pointer-events: none; }
.phone-shell-hero { animation: hero-float 5.8s ease-in-out infinite; }
.product-picture { display: block; aspect-ratio: 1280 / 2832; width: 100%; background: #efefed; }
.product-picture img { display: block; aspect-ratio: 1280 / 2832; width: 100%; height: auto; }
.next-chapter { position: absolute; z-index: 3; right: 30px; bottom: 24px; display: flex; align-items: center; gap: 10px; color: #7b7b79; }
.next-chapter span { width: 42px; height: 1px; background: var(--orange); }
.next-chapter p { margin: 0; font: 700 9px ui-monospace, SFMono-Regular, monospace; }

.chapter-kicker { margin: 0 0 14px; color: var(--orange); font-size: 11px; font-weight: 820; }
.chapter-copy h2, .vm-heading h2, .everyday-heading h2, .trust-layout h2 { margin: 0; font-size: clamp(40px, 5.3vw, 68px); line-height: 1.03; letter-spacing: 0; }
.chapter-copy > p:not(.chapter-kicker), .vm-heading > p:not(.chapter-kicker) { max-width: 520px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.72; }

.theme-chapter { position: relative; padding: 88px 0; background: #ededeb; }
.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); align-items: center; gap: 72px; width: min(calc(100% - 80px), var(--max-width)); margin-inline: auto; }
.theme-copy { position: relative; z-index: 3; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 26px; border: 1px solid rgba(25,25,25,.14); border-radius: 50%; background: rgba(255,255,255,.72); color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.08); backdrop-filter: blur(14px); cursor: pointer; }
.theme-device-wrap { width: min(100%, var(--showcase-phone-width)); justify-self: center; }
.theme-phone { position: relative; cursor: ew-resize; touch-action: pan-y; }
.theme-dark-layer { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--phone-radius) - var(--phone-border)); clip-path: inset(0 0 0 var(--theme-split)); will-change: clip-path; }
.theme-divider { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--theme-split); width: 2px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(20,20,20,.12), 0 0 18px rgba(0,0,0,.22); transform: translateX(-1px); pointer-events: none; }
.theme-divider span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(25,25,25,.14); border-radius: 50%; background: rgba(255,255,255,.9); color: #333; box-shadow: 0 8px 22px rgba(0,0,0,.18); transform: translate(-50%, -50%); backdrop-filter: blur(12px); }
.theme-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.theme-range:focus-visible + .theme-divider span { outline: 3px solid color-mix(in srgb, var(--orange) 78%, white); outline-offset: 4px; }
.theme-mode-labels { display: flex; justify-content: space-between; margin-top: 12px; padding-inline: 2px; color: #717171; font-size: 11px; }

.dark-band { background: var(--dark); color: #f5f5f2; }
.glass-chapter { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: 100svh; padding: 88px 0; }
.glass-chapter::before { content: ""; position: absolute; z-index: -2; inset: -12%; background: url("assets/screenshots/ohos/home-light-640.webp") calc(50% + 310px) center / 560px auto no-repeat; filter: blur(54px) saturate(1.5); opacity: .25; transform: scale(1.08); }
.glass-chapter::after { content: ""; position: absolute; z-index: -1; inset: 13% 0; border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(16,17,20,.18); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); }
.glass-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); align-items: center; gap: 88px; }
.glass-copy > p:not(.chapter-kicker) { color: #aaaab0; }
.glass-device { position: relative; width: min(100%, var(--showcase-phone-width)); justify-self: center; }
.phone-shell-dark { border-color: #050507; background: #050507; }

.feature-band { padding: 112px 0; overflow: hidden; }
.feature-layout { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); align-items: center; gap: 100px; }
.feature-media { position: relative; width: min(100%, var(--showcase-phone-width)); justify-self: center; }
.feature-phone { width: 100%; }
.feature-copy { max-width: 560px; }
.feature-list { display: grid; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 15px 0; border-bottom: 1px solid var(--line); color: #4f4f4f; font-size: 13px; }
.edit-marker { position: absolute; z-index: 5; padding: 7px 9px; border: 1px solid rgba(241,90,36,.34); border-radius: 6px; background: rgba(255,255,255,.7); color: var(--orange-deep); box-shadow: 0 8px 20px rgba(0,0,0,.08); font-size: 10px; font-weight: 750; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.edit-marker-top { top: 48%; right: -38px; }
.edit-marker-side { left: -34px; bottom: 27%; }

.terminal-band { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100svh; padding: 88px 0; }
.terminal-band::before { content: ""; position: absolute; z-index: -1; inset: 7% 0; background: url("assets/screenshots/ohos/terminal-640.webp") calc(50% + 320px) center / 560px auto no-repeat; filter: blur(44px) saturate(1.9) brightness(2.1); opacity: .28; }
.terminal-layout { position: relative; grid-template-columns: minmax(0, 1fr) minmax(350px, 440px); }
.terminal-copy > p:not(.chapter-kicker) { color: #aaaab0; }
.terminal-media { width: min(100%, var(--showcase-phone-width)); }
.terminal-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: #c9c9cc; font-size: 12px; }
.terminal-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(41,199,101,.55); }

.vm-band { padding: 118px 0 130px; background: #f2f2ef; }
.vm-heading { text-align: center; }
.vm-heading > p:not(.chapter-kicker) { margin-inline: auto; }
.vm-flow { --vm-phone-width: var(--showcase-phone-width); display: grid; grid-template-columns: var(--vm-phone-width) 70px var(--vm-phone-width); justify-content: center; align-items: center; gap: 30px; margin-top: 42px; }
.vm-step { margin: 0; }
.vm-phone { width: 100%; }
.vm-step-console { transform: translateY(40px); }
.vm-step figcaption { display: flex; align-items: center; gap: 11px; margin-top: 16px; color: #555; font-size: 12px; }
.vm-step figcaption span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d1d1cd; border-radius: 50%; color: var(--orange-deep); font: 800 9px ui-monospace, monospace; }
.flow-arrow { color: var(--orange); font-size: 40px; text-align: center; }

.everyday-band { padding: 105px 0; background: var(--paper); }
.everyday-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
.everyday-heading h2 { max-width: 640px; }
.capability-list { margin-top: 46px; border-top: 1px solid var(--line); }
.capability-list article { display: grid; grid-template-columns: 55px minmax(150px, .7fr) minmax(220px, 1.2fr) auto; align-items: center; gap: 24px; min-height: 82px; border-bottom: 1px solid var(--line); }
.capability-list article > span { color: var(--orange); font: 800 10px ui-monospace, monospace; }
.capability-list h3 { margin: 0; font-size: 17px; }
.capability-list p { margin: 0; color: var(--muted); font-size: 13px; }
.capability-list b { color: #8a8a87; font: 700 9px ui-monospace, monospace; }

.trust-band { padding: 110px 0; background: #e9e9e5; }
.trust-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; }
.trust-layout h2 { font-size: clamp(38px, 4.5vw, 60px); }
.trust-points { border-top: 1px solid #ccccC7; }
.trust-points article { display: grid; grid-template-columns: 42px 170px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #ccccC7; }
.trust-points span { color: var(--orange-deep); font: 800 10px ui-monospace, monospace; }
.trust-points h3 { margin: 0; font-size: 15px; }
.trust-points p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-footer { padding: 48px 0; background: #111214; color: #f1f1ef; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { font-size: 18px; }
.footer-brand p { margin: 3px 0 0; color: #a7a7ac; font-size: 11px; }
.footer-boundary { max-width: 560px; margin: 0; color: #919198; font-size: 10px; line-height: 1.65; text-align: right; }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 920px) {
  .theme-layout, .glass-layout, .feature-layout, .terminal-layout, .trust-layout { gap: 54px; }
  .capability-list article { grid-template-columns: 42px minmax(130px,.7fr) minmax(180px,1.2fr) auto; gap: 16px; }
  .trust-points article { grid-template-columns: 35px 145px 1fr; }
}

@media (min-width: 761px) and (max-height: 950px) {
  .hero { min-height: calc(100svh - 1px); padding: 78px 24px 22px; }
  .hero-icon { width: 58px; height: 58px; border-radius: 14px; }
  .product-boundary { margin-top: 10px; }
  .hero h1 { margin-top: 6px; font-size: 58px; }
  .hero h2 { margin-top: 9px; font-size: 31px; }
  .hero-summary { margin-top: 9px; font-size: 14px; }
  .primary-action { margin-top: 10px; padding-block: 8px; }
  .hero-device { width: clamp(176px, 23svh, 210px); margin-top: 14px; }
  .vm-band { padding: 82px 0 90px; }
  .vm-flow { --vm-phone-width: clamp(220px, calc(45.2svh - 125px), var(--showcase-phone-width)); margin-top: 26px; }
  .vm-step-console { transform: none; }
}

@media (max-width: 760px) {
  :root { --showcase-phone-width: 260px; }
  .section-inner { width: min(calc(100% - 32px), var(--max-width)); }
  .header-inner { width: calc(100% - 28px); height: 58px; }
  .site-header { background: rgba(250,250,248,.72); }
  .menu-button { display: block; margin-left: auto; }
  .site-nav { position: fixed; inset: 58px 0 auto; display: grid; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: rgba(250,250,248,.86); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .28s ease, opacity .28s ease; backdrop-filter: blur(30px) saturate(1.55); -webkit-backdrop-filter: blur(30px) saturate(1.55); }
  .site-header[data-dark] .site-nav { border-bottom-color: rgba(255,255,255,.12); background: rgba(12,13,15,.86); }
  .site-header[data-dark] .site-nav a { border-bottom-color: rgba(255,255,255,.1); }
  .site-nav[data-open] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid #e5e5e1; font-size: 14px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero { min-height: 790px; padding: 86px 16px 34px; }
  .hero::before { top: 58px; height: 170px; }
  .hero-icon { width: 70px; height: 70px; border-radius: 16px; }
  .product-boundary { margin-top: 12px; font-size: 10px; }
  .hero h1 { margin-top: 7px; font-size: 52px; }
  .hero h2 { margin-top: 9px; font-size: 28px; }
  .hero-summary { max-width: 340px; margin-top: 10px; font-size: 13px; }
  .primary-action { margin-top: 13px; }
  .hero-device { width: 202px; margin-top: 20px; }
  .phone-shell { --phone-border: 5px; --phone-radius: 30px; }
  .next-chapter { right: 16px; bottom: 13px; }

  .chapter-copy h2, .vm-heading h2, .everyday-heading h2, .trust-layout h2 { font-size: 39px; }
  .chapter-copy > p:not(.chapter-kicker), .vm-heading > p:not(.chapter-kicker) { margin-top: 15px; font-size: 14px; }

  .theme-chapter { padding: 88px 0; }
  .theme-layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 42px; }
  .theme-device-wrap { width: var(--showcase-phone-width); }
  .theme-copy { text-align: center; }
  .theme-copy > p:not(.chapter-kicker) { margin-inline: auto; }

  .glass-chapter { min-height: auto; padding: 88px 0; }
  .glass-chapter::before { background-position: center 65%; background-size: 340px auto; filter: blur(40px) saturate(1.4); opacity: .21; }
  .glass-chapter::after { inset: 8% 0; }
  .glass-layout { grid-template-columns: 1fr; gap: 46px; }
  .glass-copy { text-align: center; }
  .glass-copy > p:not(.chapter-kicker) { margin-inline: auto; }
  .glass-device { width: var(--showcase-phone-width); }

  .feature-band { padding: 88px 0; }
  .feature-layout, .terminal-layout { grid-template-columns: 1fr; gap: 48px; }
  .feature-media { width: var(--showcase-phone-width); order: 2; }
  .feature-copy { text-align: center; }
  .feature-copy > p:not(.chapter-kicker) { margin-inline: auto; }
  .feature-list { text-align: left; }
  .edit-marker-top { right: -25px; }
  .edit-marker-side { left: -23px; }
  .terminal-band { min-height: auto; }
  .terminal-band::before { background-position: center 72%; background-size: 300px auto; filter: blur(48px); }
  .terminal-copy { order: 1; }
  .terminal-status { justify-content: center; }
  .terminal-media { width: var(--showcase-phone-width); }

  .vm-band { padding: 88px 0 96px; }
  .vm-flow { grid-template-columns: 1fr; gap: 26px; margin-top: 42px; }
  .vm-step, .vm-step-console { width: var(--showcase-phone-width); margin-inline: auto; transform: none; }
  .flow-arrow { transform: rotate(90deg); font-size: 30px; }

  .everyday-band, .trust-band { padding: 82px 0; }
  .everyday-heading { grid-template-columns: 1fr; gap: 0; }
  .capability-list { margin-top: 32px; }
  .capability-list article { grid-template-columns: 34px 1fr auto; gap: 12px; min-height: 76px; }
  .capability-list p { grid-column: 2 / 4; margin-top: -15px; padding-bottom: 13px; }
  .capability-list b { text-align: right; }
  .trust-layout { grid-template-columns: 1fr; gap: 42px; }
  .trust-points article { grid-template-columns: 34px 1fr; gap: 11px; }
  .trust-points p { grid-column: 2; }

  .footer-inner { display: grid; }
  .footer-boundary { text-align: left; }
}

@media (max-width: 380px) {
  .hero { min-height: 760px; }
  .hero h1 { font-size: 46px; }
  .hero h2 { font-size: 25px; }
  .hero-device { width: 188px; }
  .chapter-copy h2, .vm-heading h2, .everyday-heading h2, .trust-layout h2 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .theme-divider, .theme-dark-layer { transition: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #414141; --line: #b7b7b2; }
  .site-header, .icon-button { background: #fff; backdrop-filter: none; }
  .dark-band { --muted: #e1e1e1; }
}
