/* LiveBabel site — design system following promo/DESIGN.md
   Palette: #F5F8FB canvas / #1268B5 action blue / #1D2935 ink
   Type: Noto Sans SC (self-hosted subset) + Segoe UI for Latin
   Motion: restrained UI-like enters, 0.2–0.7s, no gimmick transitions */

@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F8FB;
  --surface: #FCFDFF;
  --surface-tint: #EDF4FB;
  --ink: #1D2935;
  --ink-soft: #556474;
  --ink-mute: #7D8E9E;
  --blue: #1268B5;
  --blue-deep: #0E549A;
  --blue-bright: #0A84FF;
  --blue-soft: #E6F2FC;
  --blue-glow: #E0F0FC;
  --line: #DDE8F2;
  --line-strong: #C9DCEF;
  --orb: #D8EAF9;
  --green: #1E9E67;
  --red: #C2412F;
  --shadow-card: 0 18px 40px rgba(24, 78, 124, .08);
  --shadow-card-hover: 0 28px 56px rgba(24, 78, 124, .15);
  --shadow-device: 0 44px 88px rgba(24, 78, 124, .20), 0 8px 24px rgba(24, 78, 124, .08);
  --shadow-btn: 0 14px 28px rgba(18, 104, 181, .26);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --font: "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .28s;
  --dur-in: .62s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(18, 104, 181, .18); }

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }

:focus-visible {
  outline: 3px solid rgba(10, 132, 255, .35);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

section { scroll-margin-top: 84px; }

/* ---------- typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .32em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.03em;
}

.h2 .accent { color: var(--blue); }

.lede {
  margin: 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.8;
}

.sec-head { margin-bottom: clamp(36px, 4.5vw, 56px); }

.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lede { margin: 0 auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.btn:active { transform: scale(.975); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(18, 104, 181, .3);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 78, 124, .12);
}

.btn-ghost .play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.btn.sm { padding: 11px 22px; font-size: 14.5px; }

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.chip.ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
  font-weight: 600;
}


/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 248, 251, .8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

.nav.scrolled {
  background: rgba(245, 248, 251, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(24, 78, 124, .06);
}

.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand .brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand .brand-word { height: 21px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #45566A;
  font-size: 14.5px;
  font-weight: 600;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.nav-links a:hover { background: #EAF2FA; color: var(--blue); }
.nav-links a.active { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 11px 22px; font-size: 14.5px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { bottom: 15px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.menu-panel {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  top: 74px;
  z-index: 59;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(24, 78, 124, .2);
  transform-origin: top center;
  animation: menu-in var(--dur-fast) var(--ease);
}

.menu-panel.show { display: block; }

.menu-panel a {
  display: block;
  padding: 13px 16px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}

.menu-panel a:hover { background: var(--blue-soft); color: var(--blue); }
.menu-panel .btn { width: 100%; margin-top: 8px; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px) scaleY(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(60px, 7vw, 96px);
}

.hero-copy { position: relative; z-index: 2; }

.hero-platforms { margin-bottom: 26px; }

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.hero h1 .accent { color: var(--blue); }

.hero-lede {
  margin: 0 0 34px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.85;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 22px;
  color: var(--ink-mute);
  font-size: 13.5px;
}

/* hero visual */

.hero-visual { position: relative; min-height: 540px; }

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -110px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, rgba(224, 240, 252, 0) 64%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border: 1.5px solid var(--orb);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb.o1 { width: 540px; height: 540px; right: -170px; top: 100px; }
.hero-orb.o2 { width: 400px; height: 400px; right: -100px; top: 170px; }

.window {
  background: var(--surface);
  border: 1px solid #D9E6F2;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-device);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 6px 11px;
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E0E8F1;
}

.window-bar em {
  margin-left: 8px;
  color: var(--ink-mute);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .02em;
}

.window img { display: block; width: 100%; border-radius: 12px; }

.device-desktop {
  position: absolute;
  left: 0;
  top: 34px;
  width: 88%;
  max-width: 620px;
  z-index: 2;
  transform: rotate(-1.6deg);
  transition: transform .8s var(--ease);
}

.device-desktop:hover { transform: rotate(0deg); }

.device-phone {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 27%;
  max-width: 208px;
  z-index: 3;
}

.phone {
  border: 8px solid #2A3B4E;
  border-radius: 40px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 38px 76px rgba(24, 78, 124, .26);
  transform: rotate(4.5deg);
  transition: transform .8s var(--ease);
}

.phone:hover { transform: rotate(1deg); }
.phone img, .phone video { display: block; width: 100%; border-radius: 31px; }

.float-pill {
  position: absolute;
  left: 3%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 19px;
  border-radius: 15px;
  background: rgba(25, 28, 35, .94);
  box-shadow: 0 22px 48px rgba(16, 32, 54, .32);
  color: #F2F5F8;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.rec-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5A52;
  box-shadow: 0 0 0 4px rgba(255, 90, 82, .16);
  animation: rec-pulse 2.2s var(--ease) infinite;
}

@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 82, .14); }
  50% { box-shadow: 0 0 0 6px rgba(255, 90, 82, .05); }
}

.wave { display: flex; align-items: center; gap: 2.5px; height: 16px; flex-shrink: 0; }

.wave i {
  width: 2.5px;
  border-radius: 2px;
  background: #5AA9F7;
  height: 5px;
  animation: wave-bar 1.15s ease-in-out infinite;
}

.wave i:nth-child(1) { animation-delay: 0s; }
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .06s; }
.wave i:nth-child(5) { animation-delay: .18s; }
.wave i:nth-child(6) { animation-delay: .3s; }
.wave i:nth-child(7) { animation-delay: .09s; }

@keyframes wave-bar {
  0%, 100% { height: 5px; }
  50% { height: 15px; }
}

.pill-lang {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(90, 169, 247, .18);
  color: #8CC4FF;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
}

.pill-caret {
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #8CC4FF;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

/* ---------- intro band ---------- */

.intro {
  padding: clamp(30px, 4vw, 52px) 0 clamp(40px, 5vw, 64px);
}

.intro-statement {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: -.01em;
}

.intro-statement .accent { color: var(--blue); }

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(34px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 26px 30px;
}

.fact + .fact { border-left: 1px solid var(--line); }

.fact b {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 15.5px;
  font-weight: 800;
}

.fact p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

/* ---------- features ---------- */

.features { padding: clamp(56px, 7vw, 104px) 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  margin-bottom: 20px;
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-icon.blue { background: #E8F2FF; color: #2F7BFF; }
.feature-icon.purple { background: #F5EDFF; color: #A855F7; }
.feature-icon.green { background: #E8F8EF; color: #2FBF71; }
.feature-icon.orange { background: #FFF4E3; color: #F5A623; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.feature-card h3 .chip { margin-left: 8px; vertical-align: 2px; }

.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.feature-strip .strip-label {
  margin-right: 4px;
  color: var(--ink-mute);
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- gallery ---------- */

.gallery { padding: clamp(56px, 7vw, 104px) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.tile {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast);
}

.tile:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.tile.w7 { grid-column: span 7; }
.tile.w5 { grid-column: span 5; }
.tile.w6 { grid-column: span 6; }

.tile-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(276px, 26vw, 372px);
  padding: 18px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--surface-tint), #F6FAFE);
}

.tile-figure img,
.tile-figure > video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 42px rgba(24, 78, 124, .14);
  transition: transform .5s var(--ease);
}

.tile:hover .tile-figure img,
.tile:hover .tile-figure > video { transform: scale(1.015); }

.tile-figure .mini-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 96%;
  width: auto;
  max-width: 100%;
  border: 7px solid #2A3B4E;
  border-radius: 36px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 26px 52px rgba(24, 78, 124, .22);
}

.tile-figure .mini-phone img,
.tile-figure .mini-phone video {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 28px;
  box-shadow: none;
}

.tile-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 6px 0;
}

.tile-caption b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.tile-caption span { color: var(--ink-mute); font-size: 13px; }
.tile-caption .chip { margin-left: auto; }

/* ---------- video ---------- */

.video-sec { padding: clamp(56px, 7vw, 104px) 0; }

.video-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.video-stage {
  position: relative;
  margin-top: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  overflow: hidden;
  background: #0B1523;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.video-poster-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: opacity .45s var(--ease), visibility .45s;
}

.video-poster-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 33, .08), rgba(10, 20, 33, .34));
}

.video-poster-layer.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.video-play {
  position: relative;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  background: rgba(252, 253, 255, .96);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 24px 54px rgba(10, 30, 60, .38);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast);
}

.video-play svg { width: 30px; height: 30px; margin-left: 4px; }

.video-play:hover { transform: scale(1.07); box-shadow: 0 30px 64px rgba(10, 30, 60, .44); }

.video-play::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(252, 253, 255, .5);
  animation: play-ring 2.6s var(--ease) infinite;
}

@keyframes play-ring {
  0% { transform: scale(.86); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: scale(1.14); opacity: 0; }
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 18px 13px;
  background: linear-gradient(transparent, rgba(7, 14, 24, .74));
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.video-frame:hover .video-controls,
.video-frame.touch .video-controls,
.video-frame.paused .video-controls { opacity: 1; }

.vc-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.vc-btn:hover { background: rgba(255, 255, 255, .24); }
.vc-btn svg { width: 17px; height: 17px; }

.vc-track {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.vc-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .24);
}

.vc-buffer, .vc-fill {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 4px;
  pointer-events: none;
}

.vc-buffer { background: rgba(255, 255, 255, .34); }
.vc-fill { background: var(--blue-bright); }

.vc-thumb {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  transform: translateX(-50%) scale(.72);
  transition: transform var(--dur-fast) var(--ease);
  pointer-events: none;
}

.video-frame:hover .vc-thumb, .vc-track.dragging .vc-thumb { transform: translateX(-50%) scale(1); }

.vc-time {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.video-spinner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-frame.loading .video-spinner { display: flex; }

.video-spinner i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.video-meta {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 0 6px;
}

.video-meta .meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-mute);
  font-size: 13.5px;
}

.video-meta .meta svg { width: 15px; height: 15px; color: var(--ink-mute); }
.video-meta .dl-slot { margin-left: auto; }

.video-fallback {
  display: none;
  padding: 12px 6px 2px;
  color: var(--red);
  font-size: 13.5px;
}

.video-fallback.show { display: block; }

/* ---------- download buttons (liquid progress) ---------- */

.dl-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.dl-btn:hover { background: var(--blue-deep); transform: translateY(-2px); }
.dl-btn:active { transform: scale(.98); }

.dl-btn .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--p, 0%);
  background: rgba(255, 255, 255, .26);
  transition: width .25s linear;
  pointer-events: none;
}

.dl-btn .dl-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.dl-btn .dl-label svg { width: 16px; height: 16px; }

.dl-btn[data-state="downloading"] { background: var(--blue-deep); cursor: pointer; }
.dl-btn[data-state="done"] { background: var(--green); box-shadow: 0 14px 28px rgba(30, 158, 103, .28); }
.dl-btn[data-state="error"] { background: var(--red); box-shadow: 0 14px 28px rgba(194, 65, 47, .26); }
.dl-btn[data-state="fallback"] { background: var(--green); box-shadow: 0 14px 28px rgba(30, 158, 103, .28); }

.dl-btn.sm { padding: 9px 16px; font-size: 13px; box-shadow: none; }
.dl-btn.sm .dl-label svg { width: 14px; height: 14px; }

.dl-btn.wide { width: 100%; }

/* ---------- models teaser ---------- */

.models-teaser { padding: clamp(56px, 7vw, 104px) 0; }

.teaser-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(34px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 88% 8%, var(--blue-glow) 0%, rgba(224, 240, 252, 0) 42%),
    linear-gradient(135deg, #F2F8FE 0%, var(--surface) 58%);
  box-shadow: var(--shadow-card);
}

.teaser-copy .btn { margin-top: 28px; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  padding: 12px 0;
}

.tag-cloud span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 78, 124, .08);
  animation: float-tag 5.2s var(--ease) infinite;
}

.tag-cloud span:nth-child(2n) { animation-delay: .9s; }
.tag-cloud span:nth-child(3n) { animation-delay: 1.7s; }
.tag-cloud span:nth-child(5n) { animation-delay: 2.6s; }

@keyframes float-tag {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-.6deg); }
}

/* ---------- download section ---------- */

.download { padding: clamp(56px, 7vw, 104px) 0; }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast);
}

.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

.dl-card-head svg { width: 30px; height: 30px; flex-shrink: 0; }
.dl-card-head .win { color: #0A84FF; }
.dl-card-head .android { color: #2FBF71; }

.dl-card-head b { font-size: 18px; font-weight: 800; white-space: nowrap; }

.dl-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.dl-card p { flex: 1; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

.dl-card .dl-btn { margin-top: auto; }

.sha {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.sha code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sha button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.sha button:hover { color: var(--blue); background: var(--blue-soft); }
.sha button svg { width: 14px; height: 14px; }

.dl-alt {
  font-size: 12.5px;
  color: var(--ink-mute);
}

.dl-alt a { font-weight: 600; }

.ios-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 20px;
  padding: 26px 32px;
  text-align: left;
}

.ios-card .ios-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #F0F4F9;
  color: var(--ink);
  flex-shrink: 0;
}

.ios-card .ios-mark svg { width: 30px; height: 30px; }

.ios-card p { flex: 1; min-width: 240px; margin: 0; max-width: 620px; color: var(--ink-mute); font-size: 13.5px; line-height: 1.75; }

.dl-fine {
  margin-top: 22px;
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.9;
}

/* ---------- footer ---------- */

.footer {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #EEF4FA);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .6fr));
  gap: 32px;
  padding: clamp(40px, 5vw, 64px) 0 32px;
}

.footer .brand { margin-bottom: 16px; }

.footer-tag {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 300px;
}

.footer h4 {
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--ink-mute);
}

.footer ul { list-style: none; margin: 0; padding: 0; }

.footer li { margin-bottom: 10px; }

.footer li a { color: var(--ink-soft); font-size: 14.5px; transition: color var(--dur-fast); }
.footer li a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12.5px;
}

/* ---------- reveal motion ---------- */

.rise { animation: rise var(--dur-in) var(--ease) both; animation-delay: var(--d, 0s); }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-in) var(--ease), transform var(--dur-in) var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-cards { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .burger { display: block; margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-visual { min-height: 0; margin-top: 26px; padding-bottom: 46px; }
  .device-desktop { position: relative; top: 0; width: 100%; max-width: none; }
  .device-phone { width: 30%; max-width: 190px; right: -2%; bottom: 0; }
  .float-pill { left: 0; bottom: -8px; font-size: 13px; padding: 11px 15px; }

  .gallery-grid .tile { grid-column: span 12; }
  .tile.w7, .tile.w5, .tile.w6 { grid-column: span 12; }

  .teaser-card { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .intro-facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }

  .feature-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .float-pill { white-space: normal; line-height: 1.5; }

  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 24px; height: 24px; }
  .video-controls { gap: 9px; padding: 22px 12px 10px; }
  .vc-btn { width: 36px; height: 36px; }

  .video-meta .dl-slot { margin-left: 0; width: 100%; }
  .video-meta .dl-slot .dl-btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .tile-caption { flex-direction: column; align-items: flex-start; gap: 3px; }
  .tile-caption .chip { margin-left: 0; }

  .ios-card { gap: 16px; padding: 22px; }
  .ios-card .ios-mark { width: 48px; height: 48px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .rec-dot, .wave i, .pill-caret, .video-play::before, .video-spinner i,
  .tag-cloud span { animation: none; }
  .device-desktop, .phone, .tile-figure img, .feature-card, .dl-card { transition: none; }
}
