/* video.haoyong.app — Aqua, re-cut: one player window on deep-sea blue. Colour lives on glass
   edges and the one active element; text stays neutral. */
:root {
  --sea-0: #040b16;
  --sea-1: #071528;
  --sea-2: #0e2a55;
  --sea-3: #163d78;
  --ink: #eef4fb;
  --ink-2: #a9c2df;
  --ink-3: #8aa3c4;
  --aqua: #7cc4ff;
  --accent: #2d8cfe;
  --edge: rgba(124, 196, 255, 0.34);
  --glass-top: rgba(255, 255, 255, 0.13);
  --glass-bottom: rgba(255, 255, 255, 0.035);
  --shine: rgba(255, 255, 255, 0.5);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Segoe UI", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.65 var(--font);
  background-color: var(--sea-1);
  background-image:
    radial-gradient(60% 45% at 72% 8%, rgba(46, 110, 210, 0.42), transparent 70%),
    radial-gradient(45% 30% at 18% 62%, rgba(124, 196, 255, 0.08), transparent 70%),
    radial-gradient(40% 30% at 88% 78%, rgba(124, 196, 255, 0.06), transparent 70%),
    linear-gradient(180deg, var(--sea-2) 0%, var(--sea-1) 38%, var(--sea-0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(45, 140, 254, 0.45); color: #fff; }
html { scrollbar-color: rgba(124, 196, 255, 0.35) var(--sea-0); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sea-0); }
::-webkit-scrollbar-thumb { background: rgba(124, 196, 255, 0.28); border-radius: 8px; border: 3px solid var(--sea-0); }
input, textarea { caret-color: var(--aqua); }
a { color: var(--aqua); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: #fff; text-wrap: balance; margin: 0; }
/* Chinese headings break only at the spaces we put in them, never inside a word. */
:lang(zh) :is(.hero h1, .end h2) { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
kbd, code, pre, .readout, .timecode { font-variant-numeric: tabular-nums; }

/* Glass: the world's material. Bright top highlight, aqua hairline, soft depth. */
.glass, .nav nav, .zoom-ctl, .demo, .privacy-band, .keys kbd, .try kbd, .shelf span, .paper article {
  background: linear-gradient(var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 1px 0 var(--shine), 0 0 0 1px var(--edge), var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

/* Navigation: one glass pill floating over the page. */
.nav { position: sticky; top: 0; z-index: 20; padding: 16px var(--gutter) 0; }
.nav nav {
  max-width: 1320px; margin: 0 auto; height: 52px; border-radius: 26px;
  display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px;
  background: linear-gradient(rgba(16, 38, 76, 0.72), rgba(8, 22, 44, 0.62));
}
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.mark img { width: 28px; height: 28px; }
.links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 16px; }
.links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.links .lang { color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); margin-left: 6px; }

main { padding: 0 var(--gutter); }

/* Hero: the player window, right-anchored, with the copy to its left. */
.hero {
  max-width: 1320px; margin: 0 auto; min-height: min(calc(100vh - 68px), 980px);
  display: grid; grid-template-columns: minmax(250px, 0.62fr) minmax(0, 2fr);
  grid-template-areas: "title title" "copy window";
  align-content: center; column-gap: clamp(28px, 4vw, 56px); row-gap: clamp(24px, 4vh, 44px);
  padding: clamp(36px, 6vh, 72px) 0 72px;
}
.hero h1 { grid-area: title; font-size: clamp(42px, 5.6vw, 84px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
.hero-copy { grid-area: copy; align-self: start; }
.hero .window-wrap { grid-area: window; min-width: 0; }
.hero .sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 22ch; }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.trust { color: var(--ink-3); font-size: 15px; }

/* Store pill in Aqua gel. Not on the store yet: no link, no hover lift. */
.gel {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 26px; border-radius: 30px;
  color: #fff; font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #3a90ea 0%, #2a7fe8 46%, #1760cf 54%, #2b84ec 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 6px rgba(0, 40, 120, 0.35), 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(10, 60, 150, 0.55);
  text-shadow: 0 1px 2px rgba(0, 30, 90, 0.6);
  position: relative; overflow: hidden; cursor: default;
}
.gel::before { /* the glossy upper lens of an Aqua pill */
  content: ""; position: absolute; left: 8%; right: 8%; top: 3px; height: 46%;
  border-radius: 30px 30px 18px 18px; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}
.gel-text { position: relative; white-space: nowrap; }
.gel-big { min-height: 56px; padding: 9px 28px; font-size: 19px; }

/* The window: real app chrome around a zoomable picture. */
.window { position: relative; margin: 0; border-radius: 16px; overflow: visible; isolation: isolate; }
.window > img, .window .pic { display: block; width: 100%; }
.window .chrome-top { border-radius: 16px 16px 0 0; }
.window .chrome-bottom { border-radius: 0 0 16px 16px; }
.window::before { /* frame: hairline aqua edge and depth around the whole window */
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px var(--edge), 0 40px 90px rgba(0, 3, 12, 0.6), 0 10px 26px rgba(0, 3, 12, 0.45);
}
.pic { position: relative; aspect-ratio: 2560 / 1408; overflow: hidden; background: #000; cursor: zoom-in; touch-action: pan-y; }
.pic.zoomed { cursor: grab; touch-action: none; }
.pic.dragging { cursor: grabbing; }
.pic .still { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform-origin: 0 0; translate: 0 -50%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.zoom-ctl {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; cursor: default;
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 22px;
  background: linear-gradient(rgba(16, 38, 76, 0.75), rgba(8, 22, 44, 0.7));
}
.zoom-ctl button, .step-bar button {
  width: 36px; height: 36px; border: 0; border-radius: 18px; color: var(--ink); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.zoom-ctl button:hover, .step-bar button:hover { background: rgba(255, 255, 255, 0.1); }
.zoom-ctl button:active, .step-bar button:active { background: rgba(0, 0, 0, 0.2); transform: scale(0.94); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .solid { fill: currentColor; }
.readout { display: inline-block; min-width: 5ch; text-align: center; font: 600 15px var(--mono); color: var(--aqua); }
.readout.active { color: #fff; }
.hint { margin-top: 14px; padding-left: 4px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; }
.hint svg { color: var(--aqua); }

/* Features: each demonstrates its claim in its own form. */
.feature {
  max-width: 1200px; margin: 0 auto; padding: clamp(72px, 12vh, 140px) 0 0;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); align-items: center; gap: clamp(28px, 5vw, 80px);
}
.feature:nth-of-type(odd) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.feature:nth-of-type(odd) .copy { order: 2; }
figure.demo { margin: 0; }
.feature h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.feature .copy p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.demo { border-radius: 20px; padding: clamp(14px, 2vw, 22px); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease); filter: brightness(0.78); }
.feature.active .demo { transform: translateY(-6px); filter: none; box-shadow: inset 0 1px 0 var(--shine), 0 0 0 1px rgba(124, 196, 255, 0.6), 0 34px 80px rgba(0, 0, 0, 0.55); }
.demo figcaption { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.shot img, .toolbox img { border-radius: 12px; }
/* Zoom panel: the 1× frame with the region marked, then that region in the app at 4×. */
.swap { display: grid; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.swap[aria-pressed="true"] { cursor: zoom-out; }
.swap > * { grid-area: 1 / 1; transition: opacity 0.5s var(--ease); }
.swap .at1 { position: relative; align-self: center; overflow: hidden; border-radius: 12px; }
.swap .at1 img { display: block; width: 100%; height: auto; }
.swap .at4 { opacity: 0; display: block; width: 100%; height: auto; }
.swap[aria-pressed="true"] .at4 { opacity: 1; }
.swap[aria-pressed="true"] .at1 { opacity: 0; }
.region { position: absolute; left: 35.4%; top: 43.5%; width: 25%; height: 25%; border: 1.5px solid #fff; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 9999px rgba(0, 0, 0, 0.35); }
.toolbox { justify-self: center; max-width: 440px; }

.native-demo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 3vw, 36px); }
.app-icon { width: clamp(120px, 14vw, 200px); filter: drop-shadow(0 18px 30px rgba(0, 10, 40, 0.6)); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keys li { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 15px; }
.keys kbd { min-width: 64px; padding: 6px 12px; border-radius: 9px; text-align: center; color: var(--ink); font: 600 15px var(--font); white-space: pre; }

.stepper .frames { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.stepper .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stepper .frame.on { opacity: 1; }
.step-bar { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.timecode { display: inline-flex; gap: 10px; font: 600 17px var(--mono); color: var(--ink); min-width: 20ch; justify-content: center; }
.timecode .sep { color: var(--ink-3); }
.try { margin-top: 8px; text-align: center; color: var(--ink-3); font-size: 14px; }
.try kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; margin: 0 2px; padding: 0 6px; border-radius: 6px; color: var(--ink); font: 600 14px var(--mono); vertical-align: 1px; }

.shelves { display: grid; gap: 18px; }
.shelf h3 { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.shelf p { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf span { padding: 6px 12px; border-radius: 16px; font-size: 15px; color: var(--ink); }

.privacy-band {
  max-width: 920px; margin: clamp(88px, 14vh, 160px) auto 0; padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start;
}
.privacy-band svg { width: 34px; height: 34px; color: var(--aqua); grid-row: span 2; margin-top: 4px; }
.privacy-band h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.privacy-band p { margin-top: 10px; color: var(--ink-2); }

.end { max-width: 760px; margin: 0 auto; padding: clamp(96px, 16vh, 180px) 0 clamp(72px, 10vh, 120px); text-align: center; display: grid; justify-items: center; gap: 18px; }
.end img { width: 112px; filter: drop-shadow(0 16px 28px rgba(0, 10, 40, 0.6)); }
.end h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.02em; line-height: 1.1; }
.req { color: var(--ink-3); font-size: 14px; }

.foot { padding: 36px var(--gutter) 48px; border-top: 1px solid rgba(124, 196, 255, 0.14); display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--ink-3); font-size: 14px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.maker { color: var(--ink); font-size: 15px; }
.maker a { color: var(--aqua); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.small { font-size: 13px; }

/* Documents: the same sea, a readable glass sheet. */
.doc main.paper { padding: clamp(32px, 6vh, 64px) var(--gutter) 72px; }
.paper article { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border-radius: 22px; background: linear-gradient(rgba(14, 34, 70, 0.78), rgba(8, 20, 40, 0.74)); }
.paper h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.paper h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 10px; }
.paper h3 { font-size: 17px; margin: 22px 0 8px; }
.paper p, .paper li { color: var(--ink-2); }
.paper p + p { margin-top: 12px; }
.paper ul { padding-left: 1.2em; }
.paper li + li { margin-top: 6px; }
.paper b { color: var(--ink); }
.paper code { font: 13px var(--mono); color: var(--ink); word-break: break-all; }
.paper pre { margin: 10px 0 16px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1px var(--edge); overflow-x: auto; }
.muted { color: var(--ink-3); }
.files { list-style: none; padding: 0; }
.files li { margin: 8px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(124, 196, 255, 0.16); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
td { color: var(--ink-2); }
.faq details { border-bottom: 1px solid rgba(124, 196, 255, 0.16); }
.faq summary { cursor: pointer; padding: 14px 0; color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { /* plus drawn from two bars; the vertical one goes when open */
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; color: var(--aqua);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "copy" "window"; min-height: 0; padding-top: 32px; }
  .hero .sub { max-width: none; }
  .feature, .feature:nth-of-type(odd) { grid-template-columns: 1fr; }
  .feature:nth-of-type(odd) .copy { order: 0; }
  .native-demo { grid-template-columns: 1fr; justify-items: center; }
  .links a:not(.lang) { display: none; }
  .zoom-ctl { right: 8px; bottom: 8px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav { padding-top: 10px; }
  .zoom-ctl button { width: 30px; height: 30px; }
  .zoom-ctl .fit { display: none; }
  .readout { font-size: 13px; }
  .hero { padding-bottom: 24px; }
  .feature { padding-top: 64px; }
  .timecode { min-width: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo, .feature.active .demo { transition: none; transform: none; }
}
