/* PageCase Official Site — styles */

:root {
  --brand: #8a5cf5;
  --brand-light: #a78bfa;
  --brand-dark: #6d28d9;
  --brand-glow: rgba(138, 92, 245, 0.35);
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-muted: #f4f4f5;
  --text: #1d1d1f;
  --text-secondary: #636366;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-height: 64px;
  --scroll-offset: calc(var(--nav-height) + 24px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --section-pad: 100px;
  --container-gutter: 24px;
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-elevated: #161618;
  --bg-muted: #1c1c1e;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

/* Fallback when JS offset scroll is unavailable */
section[id],
header.hero {
  scroll-margin-top: var(--scroll-offset);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }

/* Icon host — use flex (wider support than inline-grid on older WebViews) */
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  vertical-align: middle;
}

i[data-icon][hidden] {
  display: none !important;
}

/* Explicit px sizes: em/% sizing is unreliable for SVG in some Android browsers */
i[data-icon] svg {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

.stat-icon,
.trust-icon,
.feature-icon,
.demo-tab-icon,
.icon-btn,
.faq-icon {
  overflow: hidden;
}

.stat-icon i[data-icon],
.trust-icon i[data-icon],
.feature-icon i[data-icon],
.demo-tab-icon i[data-icon],
.icon-btn i[data-icon],
.faq-icon i[data-icon] {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.stat-icon i[data-icon] svg { width: 20px !important; height: 20px !important; }
.trust-icon i[data-icon] svg { width: 22px !important; height: 22px !important; }
.feature-icon i[data-icon] svg { width: 20px !important; height: 20px !important; }
.demo-tab-icon i[data-icon] svg { width: 16px !important; height: 16px !important; }
.icon-btn i[data-icon] svg { width: 20px !important; height: 20px !important; }
.btn i[data-icon] svg { width: 18px !important; height: 18px !important; }
.faq-icon i[data-icon] svg { width: 14px !important; height: 14px !important; }

.brand-icon { width: 18px; height: 18px; max-width: none; flex-shrink: 0; display: block; }
.win-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.container {
  /* Avoid CSS min() — some Android browsers drop the whole declaration */
  width: calc(100% - var(--container-gutter) * 2);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 960px) {
  :root { --section-pad: 72px; --container-gutter: 20px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 48px; --container-gutter: 16px; }
}

@media (max-width: 380px) {
  :root { --section-pad: 40px; --container-gutter: 14px; }
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(138, 92, 245, 0.1) 0%,
    rgba(138, 92, 245, 0.04) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 50;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.16) 0%,
    rgba(138, 92, 245, 0.06) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
}

body.has-cursor-glow .cursor-glow { opacity: 1; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
}

@supports (background: color-mix(in srgb, white 50%, transparent)) {
  .nav.scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
  }
}

@supports (backdrop-filter: blur(1px)) {
  .nav.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
  }
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
}

.nav-brand:hover img { transform: scale(1.08) rotate(-3deg); }

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

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

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease-spring);
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--brand-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--brand);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: #c084fc;
  bottom: 10%;
  left: -10%;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: #818cf8;
  top: 40%;
  left: 30%;
  animation-delay: -14s;
  opacity: 0.3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text,
.hero-visual {
  min-width: 0;
  max-width: 100%;
}

/* Column sized by headline; stats stretch to that width (align with「事」) */
.hero-text {
  display: grid;
  grid-template-columns: max-content;
  justify-items: start;
  justify-content: start;
}

.mobile-br { display: none; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease-out) both;
  flex-wrap: wrap;
  justify-content: center;
  /* Stretch to headline width; don't expand the column */
  width: 0;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 2.8rem;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease-out) 0.1s both;
  overflow-wrap: normal;
  word-break: keep-all;
  max-width: 100%;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #c084fc 50%, var(--brand-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  display: inline;
}

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

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-desc-line,
.hero-desc-sub {
  display: block;
  overflow-wrap: anywhere;
}

.hero-desc-line {
  font-weight: 500;
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  /* Don't widen the column past the headline */
  width: 0;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.stat-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 92, 245, 0.35);
  box-shadow: 0 8px 24px rgba(138, 92, 245, 0.12);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: rgba(138, 92, 245, 0.12);
}

.stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.stat-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
}

.stat-item .stat-body > span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.25;
  white-space: nowrap;
}

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

/* App mockup */
.hero-visual {
  position: relative;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 20px 8px;
  box-sizing: border-box;
}

.mockup-wrapper {
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease-out);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.mockup-wrapper:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.mockup-glow {
  position: absolute;
  inset: 10%;
  background: var(--brand);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.mockup-window {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

.mockup-window.mockup-float {
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mockup-body {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  min-height: 0;
}

.mockup-sidebar {
  padding: 14px;
  border-right: 1px solid var(--border);
  background: var(--bg-muted);
  min-width: 0;
  overflow: visible;
}

.mockup-dropzone {
  border: 1px dashed color-mix(in srgb, var(--border) 100%, var(--text-tertiary) 20%);
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  transition: border-color 0.3s, background 0.3s;
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
}

.mockup-dropzone.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elevated));
}

.mockup-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.72rem;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.4s var(--ease-out) both;
  min-width: 0;
  overflow: hidden;
}

.mockup-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.mockup-file-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.mockup-main {
  padding: 14px;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mockup-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-muted);
  border-radius: 10px;
  margin-bottom: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.mockup-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 2px;
  border-radius: 7px;
  font-size: 0.68rem;
  text-align: center;
  color: var(--text-tertiary);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  background: transparent;
}

.mockup-tab.active {
  background: var(--bg-elevated);
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.mockup-preview {
  flex: 1;
  background: var(--bg-muted);
  border-radius: 10px;
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 14px;
  isolation: isolate;
}

/* Trust strip */
.trust-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

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

.trust-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.trust-card-text { min-width: 0; }

.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Section common */
section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.demo-tabs,
.source-toggle {
  position: relative;
  z-index: 2;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: auto;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.4s;
  cursor: default;
  position: relative;
  overflow: visible;
  min-width: 0;
  isolation: isolate;
}

@property --feature-ring {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.feature-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 2px;
  /* Start at top-right corner, then clockwise */
  background: conic-gradient(
    from 60deg,
    var(--brand) calc(var(--feature-ring) * 1%),
    transparent 0
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  --feature-ring: 0;
  transition:
    --feature-ring 0.7s var(--ease-out),
    opacity 0.15s ease;
}

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

.feature-card:hover .feature-ring {
  opacity: 1;
  --feature-ring: 100;
}

@supports not (((-webkit-mask-composite: xor) or (mask-composite: exclude))) {
  .feature-ring { display: none; }
  .feature-card:hover { border-color: var(--brand); }
}

.feature-num {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.feature-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Interactive demo */
.demo-section {
  background: var(--bg-muted);
  overflow: hidden;
}

.demo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.demo-radio,
.source-radio {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#demo-r0:checked ~ .demo-tabs .demo-tab[data-tab="demo-r0"],
#demo-r1:checked ~ .demo-tabs .demo-tab[data-tab="demo-r1"],
#demo-r2:checked ~ .demo-tabs .demo-tab[data-tab="demo-r2"],
#demo-r3:checked ~ .demo-tabs .demo-tab[data-tab="demo-r3"],
#demo-r4:checked ~ .demo-tabs .demo-tab[data-tab="demo-r4"],
#demo-r5:checked ~ .demo-tabs .demo-tab[data-tab="demo-r5"] {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

#demo-r0:checked ~ .demo-panel .demo-panel-content[data-panel="0"],
#demo-r1:checked ~ .demo-panel .demo-panel-content[data-panel="1"],
#demo-r2:checked ~ .demo-panel .demo-panel-content[data-panel="2"],
#demo-r3:checked ~ .demo-panel .demo-panel-content[data-panel="3"],
#demo-r4:checked ~ .demo-panel .demo-panel-content[data-panel="4"],
#demo-r5:checked ~ .demo-panel .demo-panel-content[data-panel="5"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: left;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  background: none;
  font: inherit;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.demo-tab:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.demo-tab.active {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.demo-tab-text strong {
  display: block;
  font-size: 0.95rem;
}

.demo-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 36px;
  min-height: 480px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-panel-content {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  position: absolute;
  inset: 28px 36px 36px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  z-index: 0;
}

/* Fallback: default panel visible (HTML has demo-r0 checked) */
.demo-panel-content[data-panel="0"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

#demo-r1:checked ~ .demo-panel .demo-panel-content[data-panel="0"],
#demo-r2:checked ~ .demo-panel .demo-panel-content[data-panel="0"],
#demo-r3:checked ~ .demo-panel .demo-panel-content[data-panel="0"],
#demo-r4:checked ~ .demo-panel .demo-panel-content[data-panel="0"],
#demo-r5:checked ~ .demo-panel .demo-panel-content[data-panel="0"] {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  z-index: 0;
}

.demo-panel-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

/* fallback if JS adds .active */

.demo-caption {
  margin-bottom: 0;
  flex-shrink: 0;
}

.demo-caption h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.highlight-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.highlight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.highlight-num {
  font-size: 2rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--brand) 25%, transparent);
  line-height: 1;
  flex-shrink: 0;
}

.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Solutions */
.solutions-section {
  background: var(--bg-muted);
}

.solution-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.solution-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 280px;
  min-width: 0;
}

.solution-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.22);
}

.solution-card-text h3 {
  font-size: 1.125rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.solution-card-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  width: fit-content;
  max-width: 100%;
}

.solution-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  --solution-action-h: 44px;
}

.solution-card .source-toggle {
  margin-bottom: 0;
}

.solution-source-toggle {
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  height: var(--solution-action-h);
  box-sizing: border-box;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.solution-source-toggle .source-btn {
  padding: 0 12px;
  height: calc(var(--solution-action-h) - 8px);
  min-height: 0;
  max-height: calc(var(--solution-action-h) - 8px);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 1 auto;
  gap: 5px;
  min-width: 0;
}

.solution-download-buttons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.solution-dl {
  min-height: var(--solution-action-h);
  height: var(--solution-action-h);
  padding: 0 22px;
  font-size: 0.875rem;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

.solution-dl-gitee {
  display: none;
}

#mosaic-source-gitee:checked ~ .solution-card-actions .solution-dl-github {
  display: none;
}

#mosaic-source-gitee:checked ~ .solution-card-actions .solution-dl-gitee {
  display: inline-flex;
}

#mosaic-source-github:checked ~ .solution-card-actions .source-toggle .source-btn[data-source="mosaic-source-github"],
#mosaic-source-gitee:checked ~ .solution-card-actions .source-toggle .source-btn[data-source="mosaic-source-gitee"] {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: none;
}

.solution-dl .win-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.solutions-placeholder {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 28px;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Download */
.download-section {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--brand) 6%, var(--bg)) 100%);
}

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--brand);
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.download-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--brand-glow);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.download-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.download-version {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.source-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-muted);
  border-radius: 999px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  gap: 2px;
  max-width: 100%;
}

.source-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

.source-btn-label {
  font: inherit;
  font-weight: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.source-region {
  font: inherit;
  font-size: 0.88em;
  font-weight: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
  vertical-align: baseline;
  position: relative;
  top: 0.05em;
}

#source-github:checked ~ .source-toggle .source-btn[data-source="source-github"],
#source-gitee:checked ~ .source-toggle .source-btn[data-source="source-gitee"] {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.dl-gitee,
.release-gitee {
  display: none;
}

#source-gitee:checked ~ .download-buttons .dl-github {
  display: none;
}

#source-gitee:checked ~ .download-buttons .dl-gitee {
  display: inline-flex;
}

#source-gitee:checked ~ .download-meta .release-github {
  display: none;
}

#source-gitee:checked ~ .download-meta .release-gitee {
  display: inline;
}

.source-btn.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.source-btn svg,
.source-btn .brand-icon { width: 18px; height: 18px; }

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.download-meta {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.download-meta a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-meta a:hover { color: var(--brand-dark); }

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--brand); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--brand); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-privacy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  width: 100%;
  text-align: center;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  font-size: 0.75rem;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-beian a:hover {
  color: var(--text-secondary);
}

.footer-beian-icon {
  flex-shrink: 0;
}

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(20px);
  padding: calc(var(--nav-height) + 24px) 24px 24px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--bg-muted); }

/* ── Responsive breakpoints ──
   ≥1440  large desktop
   ≤960   tablet / small laptop
   ≤768   tablet portrait / phone landscape
   ≤640   phone
   ≤480   small phone
   ≤380   very small phone (iPhone SE etc.)
*/

/* Large desktop — slightly wider breathing room */
@media (min-width: 1440px) {
  .container { max-width: 1200px; width: calc(100% - 64px); }
  .hero-content { gap: 80px; }
}

/* Tablet & small laptop */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-desc { margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero-text {
    justify-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 12px 4px;
    overflow: visible;
  }
  .mockup-wrapper { transform: none; overflow: visible; }
  .mockup-window.mockup-float { animation: none; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .demo-layout { grid-template-columns: 1fr; gap: 20px; }
  .demo-tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .demo-tab { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .highlights-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-grid { grid-template-columns: 1fr; gap: 8px; }
  .section-header { margin-bottom: 28px; padding-left: 4px; padding-right: 4px; }
}

/* Tablet portrait & phone portrait — primary mobile fixes */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 32px;
    overflow-x: hidden;
  }
  .hero h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 22px; }
  .mobile-br { display: inline; }
  .hero-desc { font-size: 0.95rem; text-align: center; }
  .hero-desc-line { font-size: 0.9rem; line-height: 1.5; }
  .hero-desc-sub { font-size: 0.875rem; line-height: 1.6; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .hero-stats { gap: 10px; }
  .stat-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
  }
  .stat-icon { width: 36px; height: 36px; border-radius: 11px; }
  .stat-icon i[data-icon] svg { width: 18px; height: 18px; }
  .stat-item strong { font-size: 1.2rem; }
  .stat-item .stat-body > span { font-size: 0.72rem; }
  .hero-visual {
    max-width: 360px;
    width: 100%;
    padding: 4px 0;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }
  .mockup-wrapper { overflow: hidden; }
  .mockup-glow { filter: blur(40px); opacity: 0.18; }
  /* Hide sidebar on small screens — preview is the main signal */
  .mockup-sidebar { display: none; }
  .mockup-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mockup-main { padding: 10px; min-height: 0; overflow: visible; }
  .mockup-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    margin-bottom: 8px;
  }
  .mockup-tab { font-size: 0.62rem; padding: 5px 1px; border-radius: 6px; }
  .mockup-preview {
    min-height: 182px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mockup-titlebar { padding: 8px 10px; }
  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 18px; width: 100%; box-sizing: border-box; }
  .feature-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .feature-icon i[data-icon] svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; }
  .feature-card h3 { font-size: 0.98rem; }
  .feature-card p { font-size: 0.82rem; }
  .demo-tabs { gap: 8px; }
  .demo-tab { padding: 10px 12px; gap: 10px; }
  .demo-tab-icon { width: 34px; height: 34px; border-radius: 9px; }
  .demo-tab-icon i[data-icon] svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }
  .demo-tab-text strong { font-size: 0.88rem; }
  .demo-panel { padding: 16px 14px; min-height: 280px; overflow: hidden; }
  .demo-panel-content { top: 16px; right: 14px; bottom: 16px; left: 14px; gap: 8px; }
  .demo-caption h3 { font-size: 1.05rem; }
  .highlight-card { padding: 20px; gap: 14px; }
  .highlight-num { font-size: 1.5rem; }
  .highlight-card h3 { font-size: 0.95rem; }
  .highlight-card p { font-size: 0.82rem; }
  .solutions-placeholder { padding: 36px 20px; font-size: 0.9rem; }
  .solution-card {
    padding: 14px 16px;
    gap: 14px;
    overflow: hidden;
  }
  .solution-card-main {
    flex: 1 1 100%;
    min-width: 0;
  }
  .solution-card-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }
  .solution-card .source-toggle {
    width: auto;
    max-width: 100%;
    min-width: 0;
    justify-self: start;
  }
  .solution-source-toggle .source-btn {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    height: calc(var(--solution-action-h) - 8px);
    max-height: calc(var(--solution-action-h) - 8px);
    padding: 0 10px;
    justify-content: center;
    gap: 4px;
  }
  .solution-source-toggle .source-btn .brand-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .solution-download-buttons {
    min-width: 0;
  }
  .solution-download-buttons .btn {
    min-height: 0;
  }
  .solution-dl {
    padding: 0 14px;
  }
  /* Compact trust rows — kill the huge stacked empty look */
  .trust-strip { padding: 20px 0; }
  .trust-grid { gap: 8px; }
  .trust-card {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: left;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    gap: 12px;
  }
  .trust-card:hover { transform: none; box-shadow: none; }
  .trust-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    margin-right: 0;
    border-radius: 12px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }
  .trust-icon i[data-icon] svg { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
  .trust-card h3 { font-size: 0.92rem; margin: 0 0 2px; }
  .trust-card p { font-size: 0.78rem; margin: 0; }
  .trust-card-text { min-width: 0; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .source-toggle { width: auto; max-width: 100%; justify-content: flex-start; }
  .source-btn { flex: 0 1 auto; justify-content: center; min-height: 44px; min-width: 0; padding: 10px 14px; }
  .section-header { margin-bottom: 22px; }
  .section-header h2 { font-size: 1.5rem; overflow-wrap: break-word; word-wrap: break-word; }
  .section-header p { font-size: 0.9rem; }
}

/* Phone */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; min-width: 44px; min-height: 44px; }
  .mobile-menu { display: flex; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .nav-actions .btn-sm { display: none; }
  .hero-badge { font-size: 0.75rem; padding: 5px 12px 5px 7px; }
  .hero-visual { max-width: min(340px, 100%); width: 100%; overflow: hidden; }
  .mockup-tabs { grid-template-columns: repeat(3, 1fr); }
  .mockup-tab { font-size: 0.68rem; padding: 6px 2px; }
  .mockup-preview { min-height: 172px; padding: 10px; }
  .download-card { padding: 28px 16px; }
  .download-card::before { width: 140px; height: 140px; filter: blur(70px); }
  .download-card h2 { font-size: 1.35rem; overflow-wrap: anywhere; }
  .download-logo { width: 56px; height: 56px; margin-bottom: 16px; }
  .download-version { font-size: 0.85rem; margin-bottom: 24px; }
  .download-buttons { flex-direction: column; }
  .download-buttons .btn { width: 100%; min-height: 48px; }
  .demo-tab {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
    min-width: 0;
  }
  .demo-panel { min-height: 260px; padding: 14px 12px; }
  .demo-panel-content { inset: 14px 12px; }
  body.has-cursor-glow .cursor-glow { display: none; }
  .hero-orb { opacity: 0.3; }
  .hero-orb-1 { width: 200px; height: 200px; right: -25%; }
  .hero-orb-2 { width: 150px; height: 150px; left: -20%; }
  .hero-orb-3 { display: none; }
}

/* Small phone */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-actions { max-width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 8px; }
  .stat-item { padding: 11px 12px; gap: 9px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-item strong { font-size: 1.1rem; }
  .stat-item .stat-body > span { font-size: 0.7rem; }
  .mockup-tab { font-size: 0.58rem; padding: 5px 0; }
  .mockup-dot { width: 7px; height: 7px; }
  .mockup-preview { min-height: 160px; padding: 8px; }
  /* Keep 2-col tabs — full-width stack made the demo chrome dominate the screen */
  .demo-tab { flex: 1 1 calc(50% - 6px); padding: 8px 10px; }
  .demo-tab-text span { display: none; }
  .demo-panel { min-height: 240px; }
  .highlight-card { flex-direction: column; gap: 10px; padding: 16px; }
  .highlight-num { font-size: 1.35rem; }
  .solutions-placeholder { padding: 28px 16px; }
  .solution-card { padding: 12px 14px; }
  .solution-logo { width: 44px; height: 44px; border-radius: 11px; }
  .solution-card-text h3 { font-size: 1.05rem; }
  .solution-card-actions {
    --solution-action-h: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .solution-source-toggle .source-btn {
    padding: 0 8px;
    font-size: 0.7rem;
    gap: 3px;
    min-height: 0;
    height: calc(var(--solution-action-h) - 8px);
    max-height: calc(var(--solution-action-h) - 8px);
  }
  .solution-source-toggle .source-region {
    font-size: 0.86em;
    top: 0.04em;
  }
  .solution-source-toggle .source-btn .brand-icon {
    width: 14px;
    height: 14px;
  }
  .solution-dl {
    padding: 0 12px;
    font-size: 0.78rem;
  }
  .trust-strip { padding: 16px 0; }
  .trust-card { padding: 10px 12px; }
}

/* Very small phone (320–380px) */
@media (max-width: 380px) {
  .nav-brand { font-size: 18px; }
  .hero h1 { font-size: 1.35rem; }
  .mockup-window { border-radius: var(--radius); }
  .mockup-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mockup-preview { min-height: 152px; padding: 8px; }
  .download-logo { width: 48px; height: 48px; }
  .download-card h2 { font-size: 1.2rem; }
  .source-btn { padding: 10px 10px; font-size: 0.78rem; }
  .source-region { font-size: 0.84em; top: 0.04em; }
  .source-btn svg,
  .source-btn .brand-icon { width: 16px; height: 16px; }
  .demo-panel { min-height: 220px; }
  .solution-card-actions {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .solution-card .source-toggle {
    justify-self: center;
    margin-inline: auto;
  }
  .solution-download-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .solution-dl {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Portrait phone — contain horizontal bleed only at page level */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-bg { overflow: hidden; }
  .hero-visual,
  .mockup-wrapper {
    overflow: hidden;
    max-width: 100%;
  }
  .mockup-window {
    max-width: 100%;
    width: 100%;
  }
  .btn { max-width: 100%; }

  .solution-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .solution-card .source-toggle {
    margin-inline: auto;
  }

  .solution-download-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .solution-dl {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* Landscape phone — reduce vertical overflow */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 32px;
  }
  .hero-content { gap: 24px; }
  .hero-visual { max-width: 300px; padding: 8px 4px; }
  .mockup-preview { min-height: 132px; padding: 8px; }
  section { padding: 48px 0; }
}

/* Touch devices — larger tap targets, no hover-dependent-only UX */
@media (hover: none) and (pointer: coarse) {
  .nav-links a, .icon-btn, .source-btn {
    min-height: 44px;
  }
  .demo-tab { min-height: 44px; }
  .mockup-tab { min-height: 32px; }
  .btn { min-height: 48px; }
  .feature-card:hover { transform: none; }
  .highlight-card:hover { transform: none; }
}

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