:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --surface-card: #ffffff;
  --purple: #5b5ce2;
  --purple-dark: #4344bf;
  --purple-light: #797af2;
  --purple-soft: #f0f1ff;
  --purple-soft-hover: #e6e8ff;
  --purple-glow: rgba(91, 92, 226, 0.18);
  --mint: #10b981;
  --mint-soft: #ecfdf5;
  --orange: #f59e0b;
  --orange-soft: #fffbeb;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;
  --pink: #ec4899;
  --pink-soft: #fdf2f8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.10), 0 6px 16px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 60px -8px rgba(91, 92, 226, 0.16), 0 12px 24px -4px rgba(15, 23, 42, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-sans); }
body { margin: 0; color: var(--ink); background: #ffffff; font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

/* Language Display Controls */
[data-lang="en"] { display: none !important; }
html[data-locale="en"] [data-lang="zh"] { display: none !important; }
html[data-locale="en"] [data-lang="en"] { display: revert !important; }

/* Global Shell & Layout */
.shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.shell-narrow { width: min(840px, calc(100% - 48px)); margin: 0 auto; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.035em;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(91, 92, 226, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--purple);
  background: var(--purple-soft);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.locale-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.locale-switch button {
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  transition: all 0.15s ease;
}

.locale-switch button:hover {
  color: var(--ink);
}

.locale-switch button.is-active {
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button.primary {
  color: #ffffff;
  background: var(--purple);
  box-shadow: 0 10px 24px -4px rgba(91, 92, 226, 0.38);
}

.button.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(91, 92, 226, 0.45);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: var(--surface);
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.button.ghost {
  color: var(--purple);
  background: var(--purple-soft);
}

.button.ghost:hover {
  background: var(--purple-soft-hover);
}

.button.store-btn {
  background: var(--ink);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.button.store-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
}

.button.store-btn svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.button.store-btn .store-text small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.button.store-btn .store-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  background: radial-gradient(circle at 82% 16%, rgba(91, 92, 226, 0.12), transparent 42%), radial-gradient(circle at 18% 70%, rgba(16, 185, 129, 0.06), transparent 36%), linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid rgba(91, 92, 226, 0.25);
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(91, 92, 226, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(91, 92, 226, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(91, 92, 226, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(91, 92, 226, 0); }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--ink);
}

.hero-copy > p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-badge-item i {
  color: var(--mint);
  font-style: normal;
  font-weight: 900;
}

/* Hero Stage with Simulated Interactive Phone & Floating Cards */
.app-stage {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.app-stage::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 92, 226, 0.16) 0%, rgba(246, 242, 255, 0.05) 70%, transparent 100%);
  z-index: 1;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  padding: 22px;
  border: 1px solid #d4d8e5;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-xl);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 18px;
}

.phone-title {
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
  font-size: 0.95rem;
}

.today-card {
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #5b5ce2 0%, #7677f5 100%);
  box-shadow: 0 12px 24px -4px rgba(91, 92, 226, 0.4);
}

.today-card small {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 750;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.today-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.today-head strong {
  font-size: 1.55rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.progress-ring {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ffffff 0 66%, rgba(255, 255, 255, 0.25) 66%);
}

.progress-ring span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #6869e7;
  font-weight: 850;
  font-size: 0.85rem;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.task:hover {
  border-color: var(--purple-light);
  transform: translateX(2px);
}

.task-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.1rem;
}

.task-icon.orange { color: #b45309; background: var(--orange-soft); }
.task-icon.mint { color: #047857; background: var(--mint-soft); }
.task-icon.blue { color: #1d4ed8; background: var(--blue-soft); }

.task strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 750;
}

.task small {
  color: var(--faint);
  font-size: 0.8rem;
}

.task-state {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 750;
}

.task-state.done {
  color: var(--mint);
  font-weight: 850;
  font-size: 1.1rem;
}

/* Floating Badges on Hero Stage */
.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.floating-score {
  right: -20px;
  bottom: 42px;
  width: 180px;
  transform: rotate(-3deg);
}

.floating-score:hover {
  transform: rotate(0deg) scale(1.03);
}

.floating-score small {
  color: var(--faint);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.floating-score strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--ink);
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 8px;
}

.sparkline i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: var(--purple);
  opacity: 0.35;
}

.sparkline i:nth-child(1) { height: 35%; }
.sparkline i:nth-child(2) { height: 50%; }
.sparkline i:nth-child(3) { height: 42%; }
.sparkline i:nth-child(4) { height: 68%; }
.sparkline i:nth-child(5) { height: 60%; }
.sparkline i:nth-child(6) { height: 92%; opacity: 1; background: var(--mint); }

.floating-buddy {
  left: -24px;
  top: 90px;
  max-width: 210px;
  transform: rotate(2deg);
}

.floating-buddy:hover {
  transform: rotate(0deg) scale(1.03);
}

.floating-buddy-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-buddy .buddy-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.floating-buddy .buddy-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}

.floating-buddy .buddy-text small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

/* Dimensions Band */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.band-item {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}

.band-item:hover {
  background: var(--surface);
}

.band-item:last-child {
  border-right: 0;
}

.band-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.band-icon.reaction { color: #ea580c; background: #fff7ed; }
.band-icon.memory { color: #8b5cf6; background: #f5f3ff; }
.band-icon.focus { color: #059669; background: #ecfdf5; }
.band-icon.logic { color: #2563eb; background: #eff6ff; }

.band-item h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}

.band-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Standard Section Layout */
.section {
  padding: 104px 0;
  position: relative;
}

.section.soft {
  background: var(--surface);
}

.section.alt {
  background: #ffffff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  color: var(--purple);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 850;
  color: var(--ink);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Feature Split Layout (Text + Real Device Mockup) */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-copy {
  display: grid;
  gap: 22px;
}

.feature-pill-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-pill-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-pill-card .pill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-pill-card .pill-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 0.84rem;
  flex: 0 0 auto;
}

.feature-pill-card h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
}

.feature-pill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* Smartphone Mockup Frame for Real Screenshots */
.device-showcase {
  position: relative;
  display: grid;
  place-items: center;
}

.device-showcase::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 92, 226, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.device-frame {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  padding: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 44px;
  background: #0f172a;
  box-shadow: 0 28px 64px -12px rgba(15, 23, 42, 0.25), 0 12px 28px -4px rgba(91, 92, 226, 0.18);
  transition: transform 0.3s ease;
}

.device-frame:hover {
  transform: translateY(-6px);
}

.device-screen {
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
}

.device-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dual Device Showcase for Games section */
.dual-device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

/* Game Catalog Grid & Category Filters */
.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 38px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

.filter-btn.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(91, 92, 226, 0.3);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.game-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card.is-hidden {
  display: none;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.game-category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-category-tag.memory { color: #8b5cf6; background: #f5f3ff; }
.game-category-tag.focus { color: #059669; background: #ecfdf5; }
.game-category-tag.reaction { color: #ea580c; background: #fff7ed; }
.game-category-tag.logic { color: #2563eb; background: #eff6ff; }
.game-category-tag.casual { color: #db2777; background: #fdf2f8; }

.game-card-metric {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 650;
}

.game-card h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.game-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--surface-alt);
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Buddy System Grid */
.buddy-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.buddy-perk-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.buddy-perk-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
}

.buddy-perk-card .perk-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.buddy-perk-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}

.buddy-perk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Privacy & Trust Panel */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.trust-card {
  display: flex;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(91, 92, 226, 0.16);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--purple-light);
}

.trust-card .check-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item:hover {
  border-color: var(--purple-light);
}

.faq-item.is-open {
  border-color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex: 0 0 auto;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: var(--purple-soft);
  color: var(--purple);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Download CTA Section */
.download-section {
  padding: 80px 0;
}

.download-banner {
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #4338ca 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.download-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(91, 92, 226, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.download-banner .kicker {
  color: #c7d2fe;
}

.download-banner h2 {
  color: #ffffff;
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.download-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.download-actions .button.store-btn {
  background: #ffffff;
  color: #0f172a;
}

.download-actions .button.store-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.download-note {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 64px 0 44px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--surface-alt);
}

.footer-brand-col {
  max-width: 340px;
}

.footer-brand-col p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  color: var(--faint);
  font-size: 0.84rem;
}

/* Legal Pages Styling (/privacy/, /terms/, /delete/) */
.legal-hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 15%, rgba(91, 92, 226, 0.1), transparent 36%), linear-gradient(180deg, var(--purple-soft) 0%, #ffffff 100%);
}

.legal-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  letter-spacing: -0.04em;
  font-weight: 850;
  color: var(--ink);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.82rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 72px;
  align-items: flex-start;
  padding: 58px 0 110px;
}

.legal-toc {
  position: sticky;
  top: 106px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-toc strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.legal-toc a:hover {
  color: var(--purple);
  background: var(--purple-soft);
  transform: translateX(3px);
}

.legal-content section {
  scroll-margin-top: 100px;
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  font-weight: 850;
  color: var(--ink);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

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

.legal-content a {
  color: var(--purple);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--purple-dark);
}

.legal-content ul {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  border: 1px solid #fed7aa;
  color: #7c2d12;
  margin: 22px 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-callout p {
  margin: 0;
  color: #7c2d12;
}

/* Deletion Steps & Scope Table */
.delete-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delete-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
}

.delete-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.delete-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delete-badge.recommended {
  background: var(--mint-soft);
  color: var(--mint);
}

.delete-badge.email {
  background: var(--blue-soft);
  color: var(--blue);
}

.delete-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.delete-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.delete-step-item .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.scope-box {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.scope-box.danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.scope-box.danger h4 {
  color: #be123c;
  margin: 0 0 10px;
}

.path-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.path-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.path-arrow {
  color: var(--purple);
  font-weight: 900;
  font-size: 0.9rem;
}

.email-action-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc 0%, #f0f1ff 100%);
  border: 1px solid rgba(91, 92, 226, 0.2);
  margin: 20px 0;
}

.email-action-box .email-meta-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.email-action-box code {
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--purple-dark);
}

.danger-callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  margin: 24px 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.danger-callout strong {
  color: #881337;
}
  font-size: 1.05rem;
}

.scope-box.neutral {
  background: var(--surface);
  border-color: var(--line);
}

.scope-box.neutral h4 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.scope-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy {
    text-align: center;
    max-width: 100%;
  }
  .hero-copy h1,
  .hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-badges {
    justify-content: center;
  }
  .split-grid,
  .split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .band-item:nth-child(2) {
    border-right: 0;
  }
  .band-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: stretch;
  }
  .site-header.nav-open .nav-links a {
    padding: 12px 16px;
    font-size: 1.05rem;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .trust-grid,
  .buddy-perks-grid {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .shell,
  .shell-narrow {
    width: min(100% - 32px, 1200px);
  }
  .hero {
    padding: 56px 0 68px;
  }
  .app-stage {
    min-height: 480px;
  }
  .phone {
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 32px;
  }
  .floating-score {
    right: -6px;
    bottom: 6px;
    width: 150px;
  }
  .floating-buddy {
    left: -6px;
    top: 20px;
    max-width: 180px;
  }
  .band-grid {
    grid-template-columns: 1fr;
  }
  .band-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 16px;
  }
  .band-item:last-child {
    border-bottom: 0;
  }
  .section {
    padding: 72px 0;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  .download-banner {
    padding: 44px 20px;
    border-radius: var(--radius-lg);
  }
  .dual-device-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------
   邀请落地页 /i/?c=<码>
   只在没装 App 的手机上出现（装了会被 App Link 接走）。内容少，样式也单列在这里，
   不掺进首页那套网格。CSP 禁止行内样式，所以全部走这张表。
   ------------------------------------------------------------------ */
[hidden] {
  display: none !important;
}

.invite-main {
  padding: 64px 0 80px;
}

.invite-card {
  padding: 44px 32px 40px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.invite-kicker {
  margin: 0;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invite-title {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--ink);
}

.invite-lead {
  margin: 12px auto 0;
  max-width: 34em;
  color: var(--muted);
  line-height: 1.65;
}

.invite-code-label {
  margin: 30px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite-code {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  /* 字距把最后一个字符的右侧也撑开了，往里收一点才是视觉居中 */
  text-indent: 0.22em;
  line-height: 1.2;
}

.invite-actions {
  display: grid;
  gap: 12px;
  max-width: 340px;
  margin: 30px auto 0;
}

.invite-btn {
  width: 100%;
}

.invite-note,
.invite-invalid {
  margin: 22px auto 0;
  max-width: 32em;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.invite-invalid {
  color: #b42318;
}

.invite-footer {
  padding: 28px 0;
}

.invite-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.invite-footer a {
  color: inherit;
  text-decoration: none;
}

.invite-footer a:hover {
  color: var(--purple);
}
