:root {
  --bg-0: #12101a;
  --bg-1: #1a1724;
  --bg-2: #242033;
  --text: #f6f4fa;
  --text-muted: #a8a3b8;
  --accent: #ff7a9a;
  --accent-2: #8b7bff;
  --accent-strong: #ff5c85;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 122, 154, 0.14);
  --glow-2: rgba(139, 123, 255, 0.12);
  --radius: 22px;
  --max: 1160px;
  --nav-h: 72px;
  --phone-w: 280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 40% at 8% -5%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 35% at 92% 8%, var(--glow-2), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 50%, #0c0a12 100%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* i18n */
[data-i18n] { display: none !important; }

html[data-lang="zh"] [data-i18n="zh"],
html[data-lang="en"] [data-i18n="en"] {
  display: block !important;
}

html[data-lang="zh"] .btn [data-i18n="zh"],
html[data-lang="en"] .btn [data-i18n="en"],
html[data-lang="zh"] .eyebrow [data-i18n="zh"],
html[data-lang="en"] .eyebrow [data-i18n="en"],
html[data-lang="zh"] .nav-links [data-i18n="zh"],
html[data-lang="en"] .nav-links [data-i18n="en"],
html[data-lang="zh"] .footer-links [data-i18n="zh"],
html[data-lang="en"] .footer-links [data-i18n="en"] {
  display: inline !important;
}

html[data-lang="zh"] .hero-points [data-i18n="zh"],
html[data-lang="en"] .hero-points [data-i18n="en"] {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

html[data-lang="zh"] .tutorial-fallback [data-i18n="zh"],
html[data-lang="en"] .tutorial-fallback [data-i18n="en"] {
  display: inline !important;
}

body.lang-switching [data-i18n] {
  animation: i18nSwap 0.32s ease both;
}

@keyframes i18nSwap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Motion */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.06); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-copy > * {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.33s; }

html[data-lang="zh"] .preview-thumb [data-i18n="zh"],
html[data-lang="en"] .preview-thumb [data-i18n="en"] {
  display: block !important;
}

html[data-lang="zh"] .type-tags li [data-i18n="zh"],
html[data-lang="en"] .type-tags li [data-i18n="en"],
html[data-lang="zh"] .type-spec-device[data-i18n="zh"],
html[data-lang="en"] .type-spec-device[data-i18n="en"] {
  display: inline !important;
}

.hero-phone-wrap .device-preview {
  animation: floatPhone 7s ease-in-out infinite;
}

.hero-phone-wrap .device-glow {
  animation: glowPulse 5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-2 { transition-delay: 0.15s; }

.card.reveal:nth-child(2) { transition-delay: 0.06s; }
.card.reveal:nth-child(3) { transition-delay: 0.12s; }
.card.reveal:nth-child(4) { transition-delay: 0.18s; }
.card.reveal:nth-child(5) { transition-delay: 0.24s; }
.card.reveal:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  backdrop-filter: blur(20px);
  background: rgba(18, 16, 26, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav.nav-scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 16, 26, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8a3b8' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 90, 130, 0.28);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 64px 0 32px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 28px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-points [data-i18n]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

/* Hero phone cluster */
.hero-phone-wrap {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Device preview (full mockup images) */
.device-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.device-stage--showcase {
  min-height: 560px;
}

.device-glow {
  position: absolute;
  width: 72%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 154, 0.14), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.device-preview {
  width: min(300px, 78vw);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.42));
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.device-preview.is-changing {
  opacity: 0;
  transform: scale(0.98);
}

.device-preview.is-hidden,
.type-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.device-stage--type .device-glow {
  width: 88%;
  height: 70%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.12), transparent 72%);
}

/* Typography showcase panels */
.type-panel {
  position: relative;
  z-index: 1;
  width: min(320px, 78vw);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.type-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.type-panel-inner {
  border-radius: 28px;
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 122, 154, 0.08), rgba(139, 123, 255, 0.06)),
    var(--card);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.type-panel-inner--batch {
  align-items: center;
  text-align: center;
}

.type-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.type-hero-num {
  font-size: clamp(96px, 22vw, 128px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.type-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.type-title--gradient {
  background: linear-gradient(135deg, #f6d0dc, #c8b8f0 55%, #8ec8f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.type-lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 260px;
}

.type-panel-inner--specs .type-lead {
  max-width: none;
}

.type-tags {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.type-tags li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.type-stack {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.type-stack span {
  width: 52px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 122, 154, 0.25), rgba(139, 123, 255, 0.2));
  transform: rotate(-6deg);
}

.type-stack span:nth-child(2) {
  transform: rotate(2deg) translateY(-8px);
  opacity: 0.85;
}

.type-stack span:nth-child(3) {
  transform: rotate(8deg);
  opacity: 0.7;
}

.type-spec-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.type-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.type-spec-device {
  color: var(--text);
  font-weight: 600;
}

.type-spec-dim {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.type-badge {
  margin: 0;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.type-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.type-hero-num--glyph {
  font-size: clamp(72px, 16vw, 96px);
}

.type-chip-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.type-chip-row span {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 122, 154, 0.15), rgba(139, 123, 255, 0.12));
}

.type-chip-row span:nth-child(2) { opacity: 0.85; }
.type-chip-row span:nth-child(3) { opacity: 0.7; }
.type-chip-row span:nth-child(4) { opacity: 0.55; }

.type-swatch-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  justify-content: center;
}

.type-swatch-row span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.type-swatch-row span:nth-child(1) { background: linear-gradient(135deg, #ff7a9a, #8b7bff); }
.type-swatch-row span:nth-child(2) { background: #1a8cff; }
.type-swatch-row span:nth-child(3) { background: #34c759; }
.type-swatch-row span:nth-child(4) { background: #ff9500; }
.type-swatch-row span:nth-child(5) { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }

.type-panel--standalone {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  width: 100%;
}

.type-panel-inner--drag,
.type-panel-inner--hd {
  text-align: center;
  align-items: center;
}

.type-panel-inner--drag .type-lead,
.type-panel-inner--hd .type-lead {
  max-width: 260px;
}

.type-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.type-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.type-card .type-panel {
  flex: 1;
  display: flex;
  width: 100%;
  min-width: 0;
}

.type-card .type-panel-inner {
  flex: 1;
  width: 100%;
  min-height: 360px;
  height: 100%;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
}

.type-card .type-hero-num {
  font-size: clamp(56px, 9vw, 72px);
  min-height: 72px;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.type-card .type-hero-num--glyph {
  font-size: clamp(48px, 8vw, 64px);
  justify-content: center;
}

.type-card .type-panel-inner--bg .type-title,
.type-card .type-panel-inner--specs .type-title,
.type-card .type-panel-inner--hd .type-title {
  min-height: 72px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.type-card .type-title {
  font-size: clamp(22px, 3.2vw, 28px);
}

.type-card .type-lead {
  max-width: none;
  margin-bottom: 16px;
  flex: 1;
}

.type-card .type-tags {
  margin-top: auto;
  margin-bottom: 0;
  justify-content: flex-start;
}

.type-card .type-panel-inner--batch .type-tags,
.type-card .type-panel-inner--devices .type-tags {
  justify-content: center;
}

.type-card .type-stack,
.type-card .type-badge {
  margin-top: auto;
}

.type-card .type-panel-inner--specs .type-lead {
  margin-bottom: 16px;
}

.preview-thumb--type {
  min-height: 120px;
  justify-content: center;
}

.preview-thumb-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(255, 122, 154, 0.2), rgba(139, 123, 255, 0.15));
  border: 1px solid rgba(255, 122, 154, 0.25);
  color: var(--accent);
  filter: none;
}

.preview-thumb-glyph--check {
  font-size: 32px;
  color: #5ee08a;
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.15), rgba(139, 123, 255, 0.1));
  border-color: rgba(52, 199, 89, 0.3);
}

.preview-thumb-glyph--bg {
  font-size: 34px;
  background: linear-gradient(135deg, rgba(255, 122, 154, 0.22), rgba(139, 123, 255, 0.18));
}

/* Preview strip */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 40px auto 0;
}

.preview-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.preview-thumb:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.preview-thumb.is-active {
  border-color: rgba(255, 122, 154, 0.35);
  background: var(--card-hover);
  color: var(--text);
}

.preview-thumb img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.preview-thumb [data-i18n] {
  text-align: center;
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 154, 0.22), transparent 70%);
  filter: blur(12px);
}

.phone-stage-inner {
  position: relative;
  width: min(var(--phone-w), 74vw);
}

.phone-frame {
  position: relative;
  aspect-ratio: 1179 / 2556;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(155deg, #5a5568, #1a1724 55%, #0f0d14);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 26px;
  border-radius: 20px;
  background: #0a0a10;
  z-index: 2;
}

.phone-screen-area {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

/* Demo UI inside phone */
.demo-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  transition: background 0.6s ease;
}

.demo-canvas.bg-gradient-1 {
  background: linear-gradient(145deg, #ff7a9a 0%, #8b7bff 50%, #5ec8ff 100%);
  animation: shimmer 8s ease infinite;
  background-size: 200% 200%;
}

.demo-device-shell {
  width: 72%;
  aspect-ratio: 9 / 19;
  border-radius: 18px;
  background: #1a1a22;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.demo-device-shell::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 8px;
  border-radius: 8px;
  background: #2a2a34;
  z-index: 2;
}

.demo-screen-content {
  position: absolute;
  inset: 14% 8% 8%;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0f4ff 0%, #e8ecfa 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.demo-ui-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(139, 123, 255, 0.35);
}

.demo-ui-bar.wide { width: 70%; }
.demo-ui-bar.mid { width: 50%; }
.demo-ui-block {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 122, 154, 0.25), rgba(139, 123, 255, 0.2));
  margin-top: 4px;
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  width: 70%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(8px);
}

/* Stats */
.stats { padding: 28px 0 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 154, 0.2);
}

.stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Showcase */
.showcase { padding: 72px 0 96px; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-tabs {
  display: grid;
  gap: 10px;
}

.feature-tab {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease;
  font: inherit;
}

.feature-tab:hover { background: var(--card); }

.feature-tab.is-active {
  background: var(--card-hover);
  border-color: rgba(255, 122, 154, 0.25);
  box-shadow: inset 3px 0 0 var(--accent);
  transform: translateX(4px);
}

.feature-tab-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 154, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.feature-tab h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.feature-tab p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.showcase-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Showcase demo panels */
.showcase-demo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
  transition: opacity 0.35s ease;
}

.showcase-demo.is-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.showcase-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
}

.showcase-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.demo-tile {
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-tile.active {
  border-color: var(--accent);
  background: rgba(255, 122, 154, 0.15);
}

.demo-color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: default;
}

.demo-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.demo-export-bar {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.demo-export-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.demo-batch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.demo-batch-item {
  border-radius: 8px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 122, 154, 0.3), rgba(139, 123, 255, 0.25));
}

.demo-platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
}

/* Sections */
.section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 122, 154, 0.1);
  color: var(--accent);
  font-size: 18px;
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.compat {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.compat-box,
.steps-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.compat-list,
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.compat-list li,
.steps-list li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.compat-list strong,
.steps-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 154, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.cta { padding: 56px 0 80px; }

.cta-panel {
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 122, 154, 0.12), rgba(139, 123, 255, 0.08)),
    var(--card);
  border: 1px solid var(--line);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.cta-panel p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer-icp {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: var(--text);
}

/* Legal / privacy */
.legal {
  padding: 48px 0 80px;
}

.legal-hero {
  margin-bottom: 36px;
}

.legal-hero .eyebrow {
  margin-bottom: 12px;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.legal-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.legal-article {
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px 40px;
}

.legal-article h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.legal-article p,
.legal-article li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-article p {
  margin: 0 0 12px;
}

.legal-article ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-article li {
  margin: 0 0 8px;
}

.legal-article a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--accent);
}

html[data-lang="zh"] .legal [data-i18n="zh"],
html[data-lang="en"] .legal [data-i18n="en"] {
  display: block !important;
}

html[data-lang="zh"] .legal a [data-i18n="zh"],
html[data-lang="en"] .legal a [data-i18n="en"] {
  display: inline !important;
}

@media (max-width: 640px) {
  .legal { padding: 28px 0 56px; }
  .legal-article { padding: 24px 20px 32px; }
}

@media (max-width: 960px) {
  .hero-grid,
  .showcase-grid,
  .type-card-grid,
  .compat,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }
  .hero-phone-wrap { min-height: 380px; }
  .device-stage { min-height: 400px; }
  .device-stage--showcase { min-height: 440px; }
  .type-card-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid { gap: 32px; }
  .preview-strip { max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .type-card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cta-panel { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .preview-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
