/* ============================================================
   Vix Show Landing Page — Clone Stylesheet
   ------------------------------------------------------------
   All design tokens live in :root below. Change a variable here
   and it updates everywhere on the page.
   ============================================================ */

:root {
  /* Brand colors */
  --bg: #050505;               /* page background            */
  --bg-soft: #0b0b0d;          /* alternate section bg       */
  --surface: #101014;          /* cards / raised surfaces    */
  --brand: #d6336c;            /* velvet rose accent         */
  --brand-soft: #f0a6c0;       /* lighter accent             */
  --text: #ffffff;             /* primary text               */
  --text-dim: #ebebf5;         /* secondary text (lavender)  */
  --text-mute: #9b9ba8;        /* muted text                 */
  --line: rgba(235, 235, 245, 0.12);  /* borders             */
  --line-soft: rgba(235, 235, 245, 0.08);

  /* Effects */
  --glow: 0 0 24px rgba(214, 51, 108, 0.45);
  --glow-lg: 0 12px 40px -12px rgba(214, 51, 108, 0.45);
  --card-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.55);

  /* Type */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-system);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, dl, dd, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff3d67 100%);
  color: #fff;
  padding: 14px 28px;
  box-shadow: var(--glow-lg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-lg .icon { width: 26px; height: 26px; }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-lg small { font-size: 0.72rem; font-weight: 500; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 25px; height: 35px;
  filter: drop-shadow(0 0 10px rgba(214, 51, 108, 0.45));
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--text-dim); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.08); }
.lang-btn.active { border-color: rgba(214, 51, 108, 0.5); }
.lang-globe { width: 16px; height: 16px; color: var(--text-dim); }
.lang-chevron { width: 14px; height: 14px; color: var(--text-mute); transition: transform 0.2s ease; }
.lang-btn.active .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(14, 14, 18, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.lang-menu li:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang-menu li.active { color: var(--brand-soft); background: rgba(214, 51, 108, 0.1); }
.lang-check { font-size: 0.8rem; opacity: 0; }
.lang-menu li.active .lang-check { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(closest-side, rgba(214, 51, 108, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-glow-alt { top: auto; bottom: -260px; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.badge-age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-soft);
  background: rgba(214, 51, 108, 0.09);
  border: 1px solid rgba(214, 51, 108, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
}
.badge-age .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-soft) 60%, #f7d6e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  max-width: 54ch;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.hero-age-note { margin-top: 8px; font-size: 0.82rem; color: var(--brand-soft); }
.hero-stats {
  margin-top: 34px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat dt {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #fff, #ffd2dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dd { color: var(--text-mute); font-size: 0.85rem; margin-top: 2px; }

/* Hero phone mockup — image background + HTML overlay UI (mirrors original) */
.hero-phone-wrap { position: relative; display: grid; place-items: center; }
.phone-glow {
  position: absolute;
  inset: -40px;
  border-radius: 3rem;
  background: rgba(214, 51, 108, 0.22);
  filter: blur(48px);
  z-index: 0;
  animation: soft-pulse 6s ease-in-out infinite;
}
@keyframes soft-pulse { 50% { opacity: 0.55; } }
.phone {
  background: #000;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 40px 120px -30px rgba(214, 51, 108, 0.5),
    0 24px 60px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.phone img { max-width: none; }
.phone-hero {
  position: relative;
  z-index: 1;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.5;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  position: absolute;
  left: 50%; top: 12px;
  transform: translateX(-50%);
  width: 96px; height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
  z-index: 30;
}
.phone-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.phone-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 120%, rgba(0,0,0,0.7), transparent);
}
.phone-tabs {
  position: absolute;
  left: 0; right: 0; top: 40px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.phone-tabs .tab-muted { color: rgba(255, 255, 255, 0.55); }
.phone-tabs .tab-active { position: relative; color: #fff; }
.tab-underline {
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  border-radius: 999px;
  background: var(--brand);
}
.phone-live {
  position: absolute;
  right: 16px; top: 44px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 3px 9px;
  pointer-events: none;
}
.live-dot-white { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.phone-rail {
  position: absolute;
  right: 12px; bottom: 96px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #fff;
  pointer-events: none;
}
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rail-icon { width: 22px; height: 22px; color: #fff; }
.rail-heart { color: var(--brand); width: 24px; height: 24px; }
.rail-count { font-size: 11px; font-weight: 600; }
.phone-creator {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 20;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  pointer-events: none;
}
.phone-creator img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}
.creator-row { display: flex; align-items: center; gap: 8px; }
.creator-row strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.creator-age {
  font-size: 9px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  padding: 0 4px;
  line-height: 1.5;
}
.creator-caption { font-size: 12px; margin-top: 3px; opacity: 0.95; }

/* Screens-section phone variant (baked screenshot images) */
.phone-sm {
  width: min(230px, 100%);
  margin-inline: auto;
  aspect-ratio: 625 / 1024;
  border-radius: 30px;
  overflow: hidden;
}
.phone-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.marquee-track i { color: var(--brand); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-sub { margin-top: 14px; color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 51, 108, 0.4);
  box-shadow: var(--glow-lg);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--brand-soft);
  background: rgba(214, 51, 108, 0.1);
  border: 1px solid rgba(214, 51, 108, 0.28);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-mute); font-size: 0.94rem; }

/* ---------- Screens grid ---------- */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.screen-card { margin: 0; text-align: center; }
.screen-card .phone-sm {
  border-radius: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.screen-card:hover .phone-sm {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 80px -24px rgba(214, 51, 108, 0.4);
}
.screen-card figcaption {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  overflow: hidden;
}
.step-num {
  display: block;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(214, 51, 108, 0.55), rgba(214, 51, 108, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 14px; font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--text-mute); font-size: 0.94rem; }

/* ---------- Community stats ---------- */
.community-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-big {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 20px;
}
.stat-big dt {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-big dd { margin-top: 6px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Download CTA ---------- */
.download { overflow: hidden; }
.download-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.download-meta {
  margin-top: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.qr-card {
  justify-self: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 36px;
  box-shadow: var(--card-shadow);
}
.qr-card img {
  width: 168px; height: 168px;
  margin-inline: auto;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.qr-label { margin-top: 16px; font-weight: 700; }
.qr-url { margin-top: 4px; color: var(--text-mute); font-size: 0.85rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(214, 51, 108, 0.35); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: 0 0 18px; height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand-soft);
  border-radius: 2px;
  transition: transform 0.22s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-mute); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--text-mute); font-size: 0.92rem; max-width: 34ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.footer-col a { color: var(--text-dim); font-size: 0.95rem; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-block: 20px;
  color: var(--text-mute);
  font-size: 0.82rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-hero { animation: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- CJK typography adaptation ----------
   Switching languages only swaps text; the layout grid is identical.
   These rules tune type for CJK and long-string locales so nothing
   overflows or looks cramped after a language switch. */
:lang(zh), :lang(zh-TW), :lang(ja), :lang(ko) {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Microsoft YaHei", "Malgun Gothic",
    "Apple SD Gothic Neo", sans-serif;
}
:lang(zh) body, :lang(zh-TW) body, :lang(ja) body, :lang(ko) body { line-height: 1.75; }
/* CJK headings: drop negative tracking (tight tracking suits latin only) */
:lang(zh) .hero-title, :lang(zh-TW) .hero-title, :lang(ja) .hero-title, :lang(ko) .hero-title,
:lang(zh) h2, :lang(zh-TW) h2, :lang(ja) h2, :lang(ko) h2,
:lang(zh) h3, :lang(zh-TW) h3, :lang(ja) h3, :lang(ko) h3 { letter-spacing: 0; }
/* slightly smaller hero title: CJK glyphs are visually denser */
:lang(zh) .hero-title, :lang(zh-TW) .hero-title, :lang(ja) .hero-title, :lang(ko) .hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
/* uppercase + wide tracking marquee: neutralize for CJK */
:lang(zh) .marquee-track, :lang(zh-TW) .marquee-track, :lang(ja) .marquee-track, :lang(ko) .marquee-track {
  letter-spacing: 0.08em;
  text-transform: none;
}
/* keep long locale strings from wrapping inside pill buttons */
.btn { white-space: nowrap; }
.btn-lg em { white-space: nowrap; }
/* prevent overflow from long words in narrow columns */
h2, h3, p, dd { overflow-wrap: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .download-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone-wrap { order: -1; }
  .feature-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: repeat(3, 1fr); }
  .community-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 56px; }
  .lang-label { display: none; }
  .lang-btn { padding: 0 11px; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid, .steps-grid, .screen-grid { grid-template-columns: 1fr; }
  .screen-grid { gap: 40px; }
  .hero-stats { gap: 26px; }
  .phone-hero { width: min(280px, 82vw); }
  .phone-rail { right: 10px; bottom: 88px; gap: 14px; }
  .rail-btn { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (terms.html / privacy.html)
   Same design tokens as the landing page so a language switch
   keeps identical layout. Content is injected by assets/legal.js.
   ============================================================ */
.legal-main {
  padding: 64px 0 104px;
}

.legal-head {
  display: grid;
  gap: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px;
}

.legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

:lang(zh) .legal-eyebrow,
:lang(zh-TW) .legal-eyebrow,
:lang(ja) .legal-eyebrow,
:lang(ko) .legal-eyebrow {
  letter-spacing: 0.06em;
}

.legal-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-body {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.85;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 32px 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.legal-body li::marker {
  color: var(--brand);
}

.legal-body blockquote {
  margin: 0 0 20px;
  padding: 15px 20px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 52px;
  color: var(--brand-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--brand);
}

@media (max-width: 640px) {
  .legal-main {
    padding: 40px 0 76px;
  }

  .legal-body {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .legal-body h2 {
    margin-top: 32px;
  }
}
