@font-face { font-family: "Fredoka"; src: url("Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --teal: #2e9e8f; --teal-d: #1f7a6d; --teal-deep: #134e47;
  --orange: #ff9f43; --orange-d: #e07a1f;
  --ink: #3a2a18; --muted: #6e5e4c; --line: #f0e3cc;
  --cream: #fff4e0; --paper: #fffaf2; --yellow: #ffc93c; --white: #fff;
  --font: "Fredoka", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  --r: 24px; --shadow: 0 24px 60px rgba(58, 42, 24, .14), 0 0 0 1px rgba(58, 42, 24, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 18px; color: #fff; background: var(--orange-d);
  padding: 13px 26px; border-radius: 999px; box-shadow: 0 10px 24px rgba(224, 122, 31, .28);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn img { width: 28px; height: 28px; background: #fff; border-radius: 50%; padding: 3px; margin-left: -10px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224, 122, 31, .34); }
.btn:focus-visible, .lang:focus-visible, .feature:focus-visible, .link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-sm { font-size: 15px; padding: 9px 18px; box-shadow: none; }
.btn-light { background: var(--yellow); color: var(--ink); box-shadow: none; }
.link { font-weight: 500; color: var(--teal-d); text-decoration: none; border-bottom: 2px solid rgba(46, 158, 143, .3); }
.link:hover { border-color: var(--teal); }

/* --- header --- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 242, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--cream); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { border: 1.5px solid var(--teal); background: transparent; color: var(--teal-d); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.lang:hover { background: var(--teal); color: #fff; }

/* --- type --- */
.eyebrow { display: inline-block; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); }
.eyebrow.light { color: var(--yellow); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 10px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 3px; background: var(--orange); margin: 18px auto 0; }
.sec-head.left h2::after { margin-left: 0; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* --- phones and screens --- */
.phone { position: relative; border-radius: 30px; overflow: hidden; background: #fff; border: 6px solid #fff; box-shadow: var(--shadow); }
.phone img { width: 100%; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; }
.screen { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .28); background: #fff; }

/* --- hero --- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 110px); background: radial-gradient(900px 500px at 85% 20%, #fff0d6, transparent 70%), radial-gradient(700px 500px at 0% 100%, #e6f4f1, transparent 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
.hero-art { position: relative; height: clamp(420px, 46vw, 600px); }
.hero-art .phone { position: absolute; width: 38%; }
.p-left { left: 2%; top: 14%; transform: rotate(-7deg); }
.p-mid { left: 31%; top: 0; z-index: 2; width: 40% !important; }
.p-right { right: 0; top: 18%; transform: rotate(7deg); }
.mascot { position: absolute; width: 88px; height: 88px; left: 22%; top: -2%; z-index: 3; filter: drop-shadow(0 10px 18px rgba(31, 122, 109, .3)); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-a { width: 60%; aspect-ratio: 1; background: #ffe2b0; opacity: .55; right: -6%; top: 6%; }
.blob-b { width: 36%; aspect-ratio: 1; background: #cdeae4; opacity: .7; left: -4%; bottom: 0; }

/* --- steps band --- */
.steps-band { padding-block: 0; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 10px 30px rgba(58, 42, 24, .06); margin-top: -36px; position: relative; z-index: 2; }
.step { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: clamp(16px, 1.7vw, 21px); }
.num { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; }
.step:nth-child(2) .num { background: var(--orange-d); }
.step:nth-child(3) .num { background: var(--yellow); color: var(--ink); }

/* --- families showcase --- */
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-list { display: grid; gap: 10px; }
.feature { display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%; padding: 18px 20px; border-radius: 20px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background-color .25s, border-color .25s, box-shadow .25s; }
.feature img { width: 44px; height: 44px; flex: none; }
.feature b { display: block; font-size: 20px; }
.feature small { display: block; font-size: 15.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.feature:hover { background: #fff8ec; }
.feature.is-on { background: #fff; border-color: var(--line); box-shadow: 0 12px 30px rgba(58, 42, 24, .08); }
.feature.is-on b { color: var(--teal-d); }
.showcase-phone { width: min(330px, 100%); justify-self: center; }
.showcase-phone .shot { display: none; }
.showcase-phone .shot.is-on { display: block; }
.js:not(.still) .showcase-phone .shot.is-on { animation: shotIn .35s ease-out; }
@keyframes shotIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* --- teachers --- */
.teachers { background: var(--cream); }
.teach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.numbered { list-style: none; counter-reset: n; display: grid; gap: 14px; }
.numbered li { counter-increment: n; position: relative; background: #fff; border-radius: 18px; padding: 16px 18px 16px 64px; }
.numbered li::before { content: counter(n); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-d); color: #fff; display: grid; place-items: center; font-weight: 600; }
.numbered b { display: block; font-size: 18px; }
.numbered span { color: var(--muted); font-size: 15.5px; }
.teach-art { position: relative; display: flex; justify-content: center; gap: 4%; }
.teach-art .phone { width: 46%; max-width: 280px; }
.t-b { margin-top: 56px; }

/* --- schools --- */
.schools { background: linear-gradient(180deg, var(--teal-deep), #0f3f3a); color: #fff; }
.schools .sec-head h2::after { background: var(--yellow); }
.school-art { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 36px); margin-bottom: clamp(32px, 5vw, 56px); }
.school-art .screen { width: min(640px, 66%); }
.s-phone { width: min(220px, 26%); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.point { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 22px; }
.point h3 { font-size: 18px; }
.point p { color: rgba(255, 255, 255, .82); font-size: 15px; margin-top: 8px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: 40px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; }

/* --- safety --- */
.vows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vow { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.vow h3 { font-size: 20px; }
.vow p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* --- closing + footer --- */
.closing { text-align: center; background: radial-gradient(700px 300px at 50% 100%, #ffe8c2, transparent 70%), var(--cream); }
.closing-title { font-size: clamp(36px, 6vw, 84px); line-height: 1.1; }
.closing-title em { font-style: normal; color: var(--teal); }
.closing-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 34px; }
.foot { background: var(--ink); color: #fff; text-align: center; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-row { display: grid; justify-items: center; gap: 8px; }
.foot p { opacity: .9; }
.foot .small { font-size: 13px; opacity: .65; }

/* --- QR modal --- */
.qr-modal { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 28px; padding: 30px 30px 26px; width: min(380px, calc(100vw - 32px)); text-align: center; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(58, 42, 24, .3); }
.qr-modal::backdrop { background: rgba(30, 22, 12, .55); backdrop-filter: blur(4px); }
.qr-modal[open] { animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
.qr-modal h2 { font-size: 20px; margin: 10px 0 16px; }
.qr-mascot { margin: 0 auto; width: 52px; height: 52px; }
.qr-code { width: 280px; max-width: 100%; margin: 0 auto; }
.qr-phone { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .qr-phone { display: none; } }
.close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 15px; }

/* --- buddy --- */
.buddy-btn { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 999px; padding: 6px 16px 6px 6px; box-shadow: 0 12px 30px rgba(58, 42, 24, .2); cursor: pointer; font-weight: 600; font-size: 15px; }
.buddy-btn img { width: 44px; height: 44px; }
.buddy { position: fixed; right: 16px; bottom: 16px; z-index: 31; width: 360px; max-height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(58, 42, 24, .3); overflow: hidden; }
.buddy[hidden] { display: none; }
.buddy:not([hidden]) { animation: pop .28s cubic-bezier(.2, .9, .3, 1.2); }
.buddy-head { display: flex; align-items: center; gap: 10px; padding: 14px 52px 14px 16px; background: var(--cream); position: relative; }
.buddy-head b { display: block; font-size: 16px; }
.buddy-head small { display: block; font-size: 12px; color: var(--muted); }
.buddy-head .close { top: 50%; transform: translateY(-50%); background: #fff; }
.buddy-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.msg.bot { background: var(--cream); border-bottom-left-radius: 6px; }
.msg.me { background: var(--teal); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.msg.typing { display: flex; gap: 5px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.buddy-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.buddy-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
.buddy-chips button:hover { border-color: var(--teal); color: var(--teal-d); }
.buddy-form { display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.buddy-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 15px; }
.buddy-form input:focus { outline: 2px solid var(--teal); border-color: transparent; }

/* --- motion: content is never hidden without JS or under reduced motion --- */
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.js:not(.still) .float-1 { animation: floatA 6s ease-in-out infinite; }
.js:not(.still) .float-2 { animation: floatA 7s ease-in-out -2s infinite; }
.js:not(.still) .float-3 { animation: floatA 8s ease-in-out -4s infinite; }
.js:not(.still) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js:not(.still) .reveal.in { opacity: 1; transform: none; }
.flip img { transition: transform .22s ease-in; transform: perspective(900px) rotateY(90deg); }
.still .flip img { transition: none; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

/* --- tablets --- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .points { grid-template-columns: repeat(2, 1fr); }
  .feature b { font-size: 18px; }
}
/* --- phones --- */
@media (max-width: 760px) {
  .top-row { height: 58px; }
  .brand img { height: 28px; }
  .top-actions .btn-sm { display: none; }
  .hero-grid, .showcase-grid, .teach-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .hero-art { height: 110vw; max-height: 470px; margin-top: 8px; }
  .hero-art .phone { width: 42%; border-width: 4px; border-radius: 22px; }
  .p-mid { width: 46% !important; left: 27%; }
  .mascot { width: 64px; height: 64px; left: 14%; }
  .steps-row { grid-template-columns: 1fr; margin-top: -24px; gap: 10px; padding: 16px; }
  .step { justify-content: flex-start; }
  .feature { padding: 14px; }
  .feature small { font-size: 14.5px; }
  .showcase-phone { width: min(280px, 78%); grid-row: 1; }
  .teach-art .phone { width: 44%; }
  .t-b { margin-top: 36px; }
  .school-art .screen { width: 70%; }
  .s-phone { width: 30%; border-width: 4px; border-radius: 18px; }
  .points, .vows { grid-template-columns: 1fr; }
  .buddy { right: 0; left: 0; bottom: 0; width: 100%; max-height: 82dvh; border-radius: 24px 24px 0 0; }
  .buddy-btn .buddy-hi { display: none; }
  .buddy-btn { padding: 6px; }
}
/* --- short landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { height: 82vh; }
}
/* English words are wider than the Chinese headline. */
html[lang="en"] .hero h1 { font-size: clamp(34px, 4.5vw, 62px); }
html[lang="en"] .closing-title { font-size: clamp(32px, 5.2vw, 72px); }
[hidden] { display: none !important; }
.buddy { padding: 0; }

/* --- schools: admin overview + branded phone, numbered pins matching the points --- */
.school-art { display: block; position: relative; max-width: 1040px; margin: 0 auto clamp(40px, 6vw, 64px); padding-right: 12%; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.browser-bar { display: flex; gap: 7px; padding: 11px 14px; background: #f3ece0; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2d6c3; }
.browser-bar i:first-child { background: #ff8a7a; } .browser-bar i:nth-child(2) { background: #ffc93c; } .browser-bar i:nth-child(3) { background: #6cc6a0; }
.browser img { width: 100%; }
.school-art .s-phone { position: absolute; right: 0; bottom: -8%; width: 24%; max-width: 240px; }
.pin { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.2; padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); white-space: nowrap; }
.pin b, .pt-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; font-size: 13px; }
.pin-1 { right: 1%; top: 28%; }          /* above the phone, at its brand header */
.pin-2 { left: 34%; top: 9%; }          /* stat cards */
.pin-3 { left: -2%; top: 1%; }          /* the admin site itself */
.pin-4 { left: 60%; top: 46%; }          /* staff card */
.js:not(.still) .school-art .pin { opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s cubic-bezier(.2, .9, .3, 1.4); }
.js:not(.still) .school-art.in .pin { opacity: 1; transform: none; }
.js:not(.still) .school-art.in .pin-1 { transition-delay: .35s; } .js:not(.still) .school-art.in .pin-2 { transition-delay: .5s; }
.js:not(.still) .school-art.in .pin-3 { transition-delay: .65s; } .js:not(.still) .school-art.in .pin-4 { transition-delay: .8s; }
.point { position: relative; }
.pt-num { background: var(--yellow); color: var(--ink); margin-bottom: 10px; }
@media (max-width: 760px) {
  .school-art { padding-right: 14%; }
  .school-art .s-phone { width: 30%; bottom: -10%; border-width: 4px; border-radius: 16px; }
  .pin { padding: 0; gap: 0; background: transparent; box-shadow: none; }
  .pin span { display: none; }
  .pin b { width: 26px; height: 26px; background: var(--yellow); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
  .pin-1 { right: 10%; top: 14%; } .pin-3 { left: -1%; top: -2%; }
  /* zoom into the readable top-left of the dashboard: brand, menu, numbers */
  .browser img { width: 165%; max-width: none; margin-bottom: -35%; }
  .browser-bar { padding: 8px 10px; } .browser-bar i { width: 8px; height: 8px; }
  .pin-2 { left: 58%; top: 9%; }
  .pin-4 { left: 19%; top: 63%; }
}

/* Chinese copy breaks at punctuation, not mid-phrase (「孩 / 子读出声」);
   overflow-wrap still breaks a phrase too long for a narrow screen. */
html[lang="zh-CN"] :is(h1, h2, h3, .lead, .step b, .closing-title) { word-break: keep-all; overflow-wrap: anywhere; }

/* =====================================================================
   -next: migomap-style layer on top of v3 (own code and art)
   ===================================================================== */
:root { --hot: #f2622e; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* --- floating pill header --- */
.top { position: fixed; top: 12px; left: 0; right: 0; background: none; backdrop-filter: none; border: 0; pointer-events: none; }
.top-row { pointer-events: auto; width: fit-content; max-width: calc(100% - 24px); height: auto; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255, 252, 246, .74); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(58, 42, 24, .07), 0 18px 40px -22px rgba(40, 30, 16, .55); }
.top .brand img { height: 26px; }
.top .nav a { font-size: 14.5px; padding: 8px 11px; }
.top .lang { border: 0; padding: 8px 10px; }
.top .btn-sm { background: var(--ink); padding: 9px 16px; }
html { scroll-padding-top: 84px; }

/* --- hero: centred headline, app cards landing around it --- */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; text-align: center; padding: 120px 0 80px; background: var(--paper); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36% 34% at 15% 30%, rgba(46, 158, 143, .15), transparent 70%),
    radial-gradient(30% 30% at 86% 24%, rgba(255, 201, 60, .22), transparent 70%),
    radial-gradient(34% 30% at 80% 84%, rgba(46, 158, 143, .11), transparent 70%),
    linear-gradient(rgba(58, 42, 24, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(58, 42, 24, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(80% 72% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(80% 72% at 50% 45%, #000 40%, transparent 100%); }
.hero-float { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fl { position: absolute; transform: rotate(var(--r, 0deg)); background: var(--bg, #fff8f0); border-radius: 18px; padding: 0; box-shadow: 0 0 0 1px rgba(58, 42, 24, .05), 0 22px 44px -20px rgba(40, 30, 16, .45); }
.fl img { width: 100%; border-radius: 18px; }
.fl-1 { width: clamp(150px, 16vw, 250px); left: 5%; top: 20%; }
.fl-2 { width: clamp(140px, 14vw, 220px); right: 5%; top: 16%; }
.fl-3 { width: clamp(170px, 17vw, 270px); left: 7%; bottom: 10%; }
.fl-4 { width: clamp(170px, 17vw, 270px); right: 6%; bottom: 12%; }
.tag { position: absolute; top: 50%; right: -12px; transform: translateY(-50%) rotate(90deg); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; font-weight: 600; background: #fff; padding: 3px 7px; border-radius: 4px; box-shadow: 0 2px 8px rgba(58, 42, 24, .12); white-space: nowrap; }
.fl-1 .tag, .fl-3 .tag { right: auto; left: -12px; transform: translateY(-50%) rotate(-90deg); }
.bubble { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px -10px rgba(40, 30, 16, .45); font-weight: 700; font-size: 22px; color: var(--teal); }
.b-1 { left: 26%; top: 13%; } .b-2 { right: 24%; bottom: 9%; color: var(--hot); } .b-3 { right: 29%; top: 11%; color: var(--yellow); }
.ping { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); color: var(--hot); }
.g-1 { left: 18%; top: 55%; } .g-2 { left: 36%; top: 84%; } .g-3 { right: 18%; top: 50%; background: var(--teal); color: var(--teal); } .g-4 { left: 43%; top: 10%; background: var(--teal); color: var(--teal); }
.hero-copy { position: relative; z-index: 2; max-width: 860px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(40px, 7vw, 108px); line-height: 1.06; letter-spacing: -.03em; margin-top: 16px; font-weight: 700; }
html[lang="en"] .hero h1 { font-size: clamp(42px, 8vw, 124px); letter-spacing: -.035em; }
.hero h1 em::after { content: "."; color: var(--hot); }
.hero .lead { margin: 22px auto 0; max-width: 32em; }
.hero-cta { justify-content: center; }

/* --- clips inside phone frames (screenshot stays underneath) --- */
.phone { isolation: isolate; }
.phone video.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s ease; z-index: 1; background: transparent; }
.phone video.clip.ready { opacity: 1; }

/* --- footer: links, then the bubble-tile wordmark --- */
.foot { background: var(--paper); color: var(--ink); text-align: left; border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; }
.foot-cols p { color: var(--muted); font-size: 15px; max-width: 22em; opacity: 1; }
.foot-cols a { text-decoration: none; font-size: 15px; color: var(--ink); }
.foot-cols a:hover { color: var(--hot); }
.giant-wrap { margin: 28px auto 6px; max-width: 1100px; }
.giant { display: block; width: 100%; height: auto; overflow: visible; }
.giant .L.t { color: var(--teal); }
.giant .L.o { color: var(--hot); }
.giant .L, .giant .card { cursor: default; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-right: 150px; }
@media (max-width: 760px) { .foot-bottom { padding-right: 80px; } }
.foot-bottom .mono { font-size: 12.5px; }

/* --- motion (only for .js:not(.still); without it everything is shown) --- */
.js:not(.still) .live-dot::after, .js:not(.still) .ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: ping 2.2s ease-out infinite; }
.js:not(.still) .live-dot { color: var(--teal); }
.js:not(.still) .g-2::after { animation-delay: .6s; } .js:not(.still) .g-3::after { animation-delay: 1.1s; } .js:not(.still) .g-4::after { animation-delay: .3s; }
.js:not(.still) .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js:not(.still) .hero-copy > h1 { animation-delay: .1s; } .js:not(.still) .hero-copy > .lead { animation-delay: .25s; } .js:not(.still) .hero-copy > .hero-cta { animation-delay: .38s; }
.js:not(.still) .fl { animation: land .9s cubic-bezier(.2, .9, .3, 1.15) both; }
.js:not(.still) .fl-1 { animation-delay: .3s; } .js:not(.still) .fl-2 { animation-delay: .45s; } .js:not(.still) .fl-3 { animation-delay: .6s; } .js:not(.still) .fl-4 { animation-delay: .75s; }
.js:not(.still) .fl img { animation: drift 6s 1.4s ease-in-out infinite; }
.js:not(.still) .fl-2 img { animation-duration: 7s; } .js:not(.still) .fl-3 img { animation-duration: 6.6s; } .js:not(.still) .fl-4 img { animation-duration: 7.4s; }
.js:not(.still) .bubble { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) both, bob 5s ease-in-out infinite; }
.js:not(.still) .b-1 { animation-delay: .9s, 1.6s; } .js:not(.still) .b-2 { animation-delay: 1s, 1.8s; } .js:not(.still) .b-3 { animation-delay: 1.1s, 2s; }
.js:not(.still) .hero-float { transition: transform .5s ease-out; }
/* the wordmark: tiles drop in letter by letter, then bob; hover/tap wiggles a letter */
.wm .giant use { transform-box: fill-box; transform-origin: 50% 100%; }
.wm .giant:not(.in) use { opacity: 0; transform: translateY(-46px) scale(.4); }
.wm .giant.in use { transition: opacity .25s ease-out var(--d, 0s), transform .6s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }
.wm .giant .L { transform-box: fill-box; transform-origin: 50% 100%; }
.wm .giant.idle .L { animation: letterBob 4s ease-in-out infinite; animation-delay: calc(var(--l) * -.45s); }
.wm .giant .L.wig { animation: wiggle .6s cubic-bezier(.3, 1.6, .5, 1); }
.wm .giant .card .ci { transform-box: fill-box; transform-origin: 50% 50%; }
.wm .giant:not(.in) .card .ci { opacity: 0; transform: scale(.3) rotate(-30deg); }
.wm .giant.in .card .ci { transition: opacity .3s var(--d, 0s), transform .6s cubic-bezier(.34, 1.8, .64, 1) var(--d, 0s); }
.wm .giant.idle .card .ci { animation: bob 3.6s ease-in-out infinite; }
.wm .giant.idle .card:nth-of-type(2n) .ci { animation-duration: 4.4s; animation-delay: -1.2s; }
.wm .giant .card.wig .ci { animation: wiggle .6s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover) and (pointer: fine) {
  .wm .giant .L:hover { animation: wiggle .6s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes land { from { opacity: 0; transform: translateY(-70px) rotate(calc(var(--r, 0deg) * -2)) scale(1.16); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes letterBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes wiggle { 0% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.06); } 55% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } }

/* --- section rhythm: tighter, so the page stays short --- */
section { padding-block: clamp(56px, 7vw, 96px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* --- tablets --- */
@media (max-width: 1024px) {
  .bubble { display: none; }
  .fl-1, .fl-3 { left: 3%; } .fl-2, .fl-4 { right: 3%; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
/* --- phones: cards above the headline, two only --- */
@media (max-width: 760px) {
  .top-row { padding-left: 14px; }
  .top .brand img { height: 22px; }
  .top-actions .btn-sm { display: inline-flex; }
  .hero { min-height: 0; padding: 92px 0 56px; place-items: stretch; }
  .hero-float { position: relative; inset: auto; height: 180px; width: calc(100% - 2 * var(--gutter)); margin: 0 auto 8px; }
  .fl-3, .fl-4, .ping, .tag { display: none; }
  .fl-1 { width: 54%; left: 0; top: 12px; }
  .fl-2 { width: 44%; right: 0; top: 0; }
  .hero h1 .nowrap { white-space: normal; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .giant-wrap { margin-top: 18px; }
}
@media (max-width: 380px) { .top .lang { padding: 8px 6px; } .top .btn-sm { padding: 8px 12px; font-size: 14px; } }
/* --- short landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 84px 0 36px; }
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(30px, 5.4vw, 52px); }
  .fl-3, .fl-4, .bubble, .tag { display: none; }
  .fl-1 { width: 18vw; left: 2%; top: 32%; } .fl-2 { width: 17vw; right: 2%; top: 28%; }
  .hero-copy { max-width: 62vw; }
}
/* --- big screens --- */
@media (min-width: 1800px) {
  :root { --wrap: 1440px; }
  .fl-1 { width: 15vw; } .fl-2 { width: 13vw; } .fl-3, .fl-4 { width: 16vw; }
  .giant-wrap { max-width: 1400px; }
}

/* Chinese headings end without the Latin full stop */
html[lang="zh-CN"] .hero h1 em::after { content: none; }
html[lang="zh-CN"] :is(.hero h1, .live) { word-break: keep-all; overflow-wrap: anywhere; }
