:root {
  /* Motionsites-inspired (map legacy aliases) */
  --bg-void: #05070b;
  --bg-section: #0b0f14;
  --bg-section-alt: #0e141c;
  --bg-card: #121820;
  --bg-glass: rgba(18, 24, 32, 0.72);
  --border: #1e2a36;
  --border-glow: rgba(0, 229, 255, 0.28);
  --text: #e8eef5;
  --text-muted: #8b9aab;
  --text-faint: #5c6b7a;
  --accent: #00e5ff;
  --accent-2: #4d8bff;
  --pain: #ff6b4a;
  --gain: #22c55e;
  --warn: #f59e0b;
  --grid-dot: rgba(255, 255, 255, 0.05);
  --radius-card: 16px;
  --radius-pill: 999px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shadow-glow: 0 0 32px rgba(0, 229, 255, 0.12);
  --grad-cta: linear-gradient(135deg, #00e5ff 0%, #4d8bff 100%);

  /* legacy aliases used across site.css */
  --bg: var(--bg-void);
  --bg-elevated: var(--bg-card);
  --fg: var(--text);
  --muted: var(--text-muted);
  --line: rgba(255,255,255,.08);
  --danger: #ff453a;
  --radius: var(--radius-card);
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 50% -10%, #1b2433 0%, var(--bg) 55%);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(11,12,15,.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 12px;
}
.brand { font-weight: 650; letter-spacing: .02em; font-size: 1.05rem; flex-shrink: 0; }
.nav-links { display: flex; gap: 14px; flex-wrap: nowrap; align-items: center; min-width: 0; }
.nav-links a { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #041018 !important; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; font-size: .82rem;
  white-space: nowrap;
}
.nav-lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-lang a {
  padding: 6px 11px !important;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0 !important;
  background: transparent;
}
.nav-lang a + a { border-left: 1px solid var(--line); }
.nav-lang a.is-on {
  background: rgba(0, 229, 255, 0.14);
  color: var(--accent, #00e5ff) !important;
}
.nav-lang a:hover { color: var(--fg); }
.nav-lang a::after { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }
.hero {
  padding: 96px 0 64px; text-align: center;
  animation: rise .8s ease both;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 700;
}
.hero p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 720px; margin: 0 auto 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--fg); font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); color: var(--fg); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #041018 !important; border: none;
}

.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(90,200,250,.35); }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; }
.price-card.highlight { border-color: rgba(90,200,250,.45); background: linear-gradient(180deg, rgba(41,151,255,.12), rgba(255,255,255,.02)); }
.price { font-size: 2rem; font-weight: 700; margin: 14px 0 4px; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent-2); color: white; font-size: .75rem;
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.muted { color: var(--muted); }
.note-danger {
  color: var(--danger); font-weight: 600; margin: 8px 0 28px;
  padding: 14px 16px; border: 1px solid rgba(255,69,58,.35);
  border-radius: 12px; background: rgba(255,69,58,.08);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.clean { width: 100%; border-collapse: collapse; min-width: 720px; }
table.clean th, table.clean td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: .95rem;
}
table.clean th { background: rgba(255,255,255,.03); color: var(--muted); font-weight: 600; }
table.clean tr:last-child td { border-bottom: none; }

.form {
  max-width: 640px; margin: 0 auto; display: grid; gap: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #0e1016; color: var(--fg);
  font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted);
  padding: 28px 24px 48px; text-align: center; font-size: .9rem;
}
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list li::before { content: "\2713 "; color: var(--accent); font-weight: 700; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

/* Admin */
.admin-body { background: #0f1115; color: var(--fg); font-family: var(--font); margin: 0; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { border-right: 1px solid var(--line); padding: 24px 16px; background: #0c0e13; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.05); color: var(--fg); }
.admin-main { padding: 28px; }
.admin-main h1 { margin-top: 0; font-size: 1.6rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; font-size: .92rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.flash { padding: 10px 12px; border-radius: 10px; background: rgba(90,200,250,.12); border: 1px solid rgba(90,200,250,.3); margin-bottom: 16px; }

.eyebrow { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin: 0 0 12px; }
.lead { color: #d4d4d8; font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-with-media {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; text-align: left; padding-top: 72px;
}
.hero-with-media .hero-actions { justify-content: flex-start; }
.hero-with-media h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.hero-media {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #090b10;
}
.hero-media img { display: block; width: 100%; height: auto; }
.section-intro { max-width: 720px; margin: -8px 0 28px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.45; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; background: #0a0c12; }
.gallery-item figcaption { padding: 10px 12px 14px; color: var(--muted); font-size: .88rem; }
.split {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start;
}
.cta-card { position: sticky; top: 88px; }
.shot-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px;
}
.shot-row img {
  width: 100%; height: 160px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line);
}
.story {
  display: grid; gap: 18px;
}
.story-block {
  padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.story-block h3 { margin: 0 0 8px; }
.story-block p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .hero-with-media, .split, .gallery, .shot-row { grid-template-columns: 1fr; }
  .hero-with-media { text-align: center; }
  .hero-with-media .hero-actions { justify-content: center; }
  .hero-with-media .lead { margin-left: auto; margin-right: auto; }
  .gallery-item img, .shot-row img { height: 200px; }
  .cta-card { position: static; }
}

.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: rgba(255,255,255,.03);
}
.scenario-card h3 { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.4; }
.scenario-shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px;
}
.scenario-shot img { display:block; width:100%; height:140px; object-fit:cover; }
.motion-section { text-align: center; }
.motion-frame {
  max-width: 920px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #090b10;
  aspect-ratio: 16 / 9; position: relative;
}
.motion-track { position: relative; width: 100%; height: 100%; }
.motion-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0;
  animation: motionFade 12s infinite;
}
.motion-slide:nth-child(1) { animation-delay: 0s; }
.motion-slide:nth-child(2) { animation-delay: 3s; }
.motion-slide:nth-child(3) { animation-delay: 6s; }
.motion-slide:nth-child(4) { animation-delay: 9s; }
.motion-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.motion-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #f5f5f7; font-size: .92rem; text-align: left;
}
@keyframes motionFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 900px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-shot img { height: 180px; }
}

/* ===== cooler motion polish ===== */
body::before {
  content: "";
  position: fixed; inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(41,151,255,.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(90,200,250,.12), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(94,92,230,.10), transparent 40%);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none; z-index: -1;
}
@keyframes aurora {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.site-header { transition: background .3s ease, border-color .3s ease; }
.card, .scenario-card, .gallery-item, .price-card {
  backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.card:hover, .scenario-card:hover, .gallery-item:hover, .price-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(41,151,255,.18);
  border-color: rgba(90,200,250,.45);
}
.btn-primary {
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(90,200,250,.45);
  animation: pulseGlow 2.8s ease-in-out infinite;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,200,250,.0); }
  50% { box-shadow: 0 0 28px 2px rgba(90,200,250,.28); }
}
.hero h1 {
  background: linear-gradient(120deg, #fff 20%, #5ac8fa 55%, #2997ff 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleShine 6s ease infinite;
  background-size: 200% auto;
}
@keyframes titleShine { to { background-position: 200% center; } }
.gallery-item img, .hero-media img, .scenario-shot img, .motion-slide img {
  transition: transform .6s ease;
}
.gallery-item:hover img, .scenario-card:hover .scenario-shot img { transform: scale(1.04); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, #2997ff, #5ac8fa);
  transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 8px;
}
.stat {
  text-align: center; padding: 18px 12px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.stat strong {
  display: block; font-size: 1.6rem; background: linear-gradient(135deg,#fff,#5ac8fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== restrained polish (architect) ===== */
body.product-page::before { display: none; }
body.product-page .btn-primary { animation: none; }
body.product-page .btn-primary::after { display: none; }
body.product-page .hero h1 {
  background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--fg);
  animation: none;
}
body.product-page .card:hover,
body.product-page .gallery-item:hover,
body.product-page .scenario-card:hover {
  transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
/* keep homepage btn sheen milder */
.btn-primary { animation: none; }
.btn-primary::after { animation-duration: 5s; opacity: .55; }
.home-only-glow .btn-primary { animation: pulseGlow 3.2s ease-in-out infinite; }
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch;
}
.compare-col {
  border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  background: rgba(255,255,255,.03);
}
.compare-col h3 { margin: 0 0 12px; font-size: 1.1rem; }
.compare-col ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.compare-vs {
  align-self: center; width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; color: #041018;
  background: linear-gradient(135deg, #2997ff, #5ac8fa);
}
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .compare-vs { margin: 4px auto; }
}

/* AI chat widget */
.ai-chat { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.ai-chat-toggle {
  width: 56px; height: 56px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; color: #041018;
  background: linear-gradient(135deg, #2997ff, #5ac8fa);
  box-shadow: 0 12px 30px rgba(41,151,255,.35);
}
.ai-chat-panel {
  position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 32px));
  height: 460px; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(12,14,20,.96);
  backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.ai-chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.ai-chat-head button {
  background: transparent; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.ai-chat-messages { flex: 1; overflow: auto; padding: 12px; display: grid; gap: 8px; }
.ai-msg { max-width: 90%; padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; }
.ai-msg-user { justify-self: end; background: rgba(41,151,255,.22); }
.ai-msg-assistant { justify-self: start; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.ai-msg-busy { opacity: .7; font-style: italic; }
.ai-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.ai-chat-form input {
  flex: 1; border-radius: 10px; border: 1px solid var(--line); background: #0e1016;
  color: var(--fg); padding: 10px 12px; font: inherit;
}
.ai-chat-form button {
  border: none; border-radius: 10px; padding: 0 14px; cursor: pointer; font-weight: 600;
  background: linear-gradient(135deg, #2997ff, #5ac8fa); color: #041018;
}

.ai-chat-panel { pointer-events: auto; }
.ai-chat-head { position: relative; z-index: 2; }
.ai-chat-head button {
  width: 32px; height: 32px; line-height: 1; border-radius: 8px;
  background: rgba(255,255,255,.06) !important; color: var(--fg) !important;
  cursor: pointer; pointer-events: auto;
}
.ai-chat-head button:hover { background: rgba(255,255,255,.12) !important; }
.ai-chat-panel[hidden] { display: none !important; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .01em;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 8px;
  box-shadow: 0 0 18px rgba(90,200,250,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 26px rgba(90,200,250,.55);
}
.site-footer { display: grid; gap: 8px; }
.footer-support {
  color: #7a7a85; font-size: .85rem; letter-spacing: .02em;
}

/* ===== richer FX pass ===== */
body.home-page {
  --fx-accent: rgba(90,200,250,.55);
}
body.home-page::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  opacity: .55;
}
@keyframes gridDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-56px, -56px, 0); }
}
.pointer-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(41,151,255,.22), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .35s ease;
}
body.home-page .pointer-glow.is-on { opacity: 1; }
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.benefit-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px;
  background: linear-gradient(160deg, rgba(41,151,255,.10), rgba(255,255,255,.02));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease;
}
.benefit-card::before {
  content: ""; position: absolute; inset: -40% auto auto -30%; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(90,200,250,.35), transparent 70%);
  filter: blur(8px); opacity: .7;
}
.benefit-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(90,200,250,.5);
  box-shadow: 0 28px 70px rgba(41,151,255,.22);
}
.benefit-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #041018; background: linear-gradient(135deg,#2997ff,#5ac8fa);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.benefit-card h3 { margin: 0 0 8px; position: relative; }
.benefit-card p { margin: 0; color: var(--muted); position: relative; font-size: .95rem; }
.compare-col-good {
  border-color: rgba(90,200,250,.35);
  background: linear-gradient(180deg, rgba(41,151,255,.14), rgba(255,255,255,.02));
}
.compare-vs {
  box-shadow: 0 0 24px rgba(90,200,250,.45);
  animation: vsPulse 2.4s ease-in-out infinite;
}
@keyframes vsPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.motion-frame {
  box-shadow: 0 0 0 1px rgba(90,200,250,.2), 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(41,151,255,.15);
}
.motion-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: frameSheen 7s ease-in-out infinite;
}
@keyframes frameSheen {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.stat {
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(90,200,250,.4); }
.stat strong { font-variant-numeric: tabular-nums; }
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.hero .hero-actions .btn { animation: rise .9s ease both; }
.hero .hero-actions .btn:nth-child(2) { animation-delay: .08s; }
@media (max-width: 900px) {
  .benefit-grid { grid-template-columns: 1fr; }
  body.home-page::after { opacity: .28; }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page::after, .pointer-glow, .btn-primary::after, .motion-frame::after, .compare-vs { animation: none !important; }
}
/* ===== SPEC home-compare (UI素材设计师) ===== */:root {
  --bg-deep: #0b0f14;
  --bg-card: #121820;
  --bg-card-left: #161a1f;
  --bg-card-right: #0e1a22;
  --border: #1e2a36;
  --border-glow: rgba(0, 229, 255, 0.2);
  --text: #e8eef5;
  --text-muted: #8b9aab;
  --pain: #ff6b4a;
  --gain: #00e5ff;
  --gain-soft: #39ff14;
}

.home-compare {
  background: var(--bg-deep);
  color: var(--text);
  padding: 64px 24px;
}

.home-compare__title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin: 0 0 8px;
}

.home-compare__sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

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

.compare-col {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.compare-col--pain {
  background: var(--bg-card-left);
}

.compare-col--gain {
  background: var(--bg-card-right);
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.compare-col__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.compare-item svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.compare-col--pain .compare-item { color: var(--pain); }
.compare-col--gain .compare-item { color: var(--gain); }

.compare-item__title {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 15px;
}

.compare-item__body {
  color: var(--text-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

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

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat__value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gain);
}

.stat__label {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.stat__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 16px;
  opacity: 0.8;
}

/* 入场动效 */
@media (prefers-reduced-motion: no-preference) {
  .compare-item,
  .stat {
    opacity: 0;
    transform: translateY(16px);
    animation: compare-in 0.55s ease forwards;
  }
  .compare-item:nth-child(2) { animation-delay: 0.08s; }
  .compare-item:nth-child(3) { animation-delay: 0.16s; }
  .compare-item:nth-child(4) { animation-delay: 0.24s; }
  .compare-item:nth-child(5) { animation-delay: 0.32s; }
  .stat:nth-child(1) { animation-delay: 0.2s; }
  .stat:nth-child(2) { animation-delay: 0.28s; }
  .stat:nth-child(3) { animation-delay: 0.36s; }
}

@keyframes compare-in {
  to { opacity: 1; transform: none; }
}

.home-compare .compare-item__icon {
  width: 28px; height: 28px; display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.home-compare .compare-col--gain:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.16);
}
.home-compare .stats-row .stat__value { color: var(--gain); }
/* homepage glow particles light */
body.home-page::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  opacity: .5;
}
@media (prefers-reduced-motion: reduce) {
  .home-compare .compare-item, .home-compare .stat { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* contact-page-form-center */
body.contact-page .form { margin-left: auto; margin-right: auto; width: 100%; max-width: 640px; }
body.contact-page .hero, body.contact-page .flash { text-align: center; }
body.contact-page .flash { max-width: 640px; margin-left: auto; margin-right: auto; }
.home-compare { width: 100%; box-sizing: border-box; }
.home-compare .compare-grid, .home-compare .stats-row { margin-left: auto; margin-right: auto; }

/* contact-rail: title + form as one centered column */
body.contact-page .wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.contact-rail {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
  width: 100%;
}
.contact-rail__head {
  text-align: center;
  margin-bottom: 28px;
}
.contact-rail__head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
}
.contact-rail__head .muted {
  margin: 0 auto;
  max-width: 36em;
}
.contact-rail .flash {
  margin: 0 0 18px;
  text-align: center;
}
.contact-rail .form,
.contact-rail .contact-form {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* ===== Apple-inspired cinematic pass (home heavy) ===== */
html.fx-ready body.home-page {
  --cinematic: 1;
}
body.home-page {
  letter-spacing: -0.01em;
}
body.home-page::before {
  opacity: 0.95;
  filter: saturate(1.15);
}
/* film grain */
body.home-page .fx-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
body.home-page .wrap.home-only-glow {
  max-width: 1180px;
}
body.home-page .hero.hero-cinematic {
  min-height: min(88vh, 920px);
  display: grid;
  place-content: center;
  padding: 120px 0 96px;
  position: relative;
  --hero-p: 0;
  transform: translateY(calc(var(--hero-p) * -28px)) scale(calc(1 - var(--hero-p) * 0.06));
  opacity: calc(1 - var(--hero-p) * 0.85);
  filter: blur(calc(var(--hero-p) * 6px));
  will-change: transform, opacity, filter;
}
body.home-page .hero.hero-cinematic h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
body.home-page .hero.hero-cinematic p {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 34em;
  color: #c4c4cc;
}
body.home-page .section h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
body.home-page .section {
  padding: 88px 0;
}
body.home-page .section-intro {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 40em;
}
.site-header.is-scrolled {
  background: rgba(8, 10, 14, 0.82);
  border-bottom-color: rgba(0, 229, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* sticky showcase (Apple pin + scrub) */
.sticky-showcase {
  --pin-p: 0;
  position: relative;
  height: 220vh;
  margin: 12px 0 8px;
}
.sticky-showcase__pin {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: grid;
  place-items: center;
  z-index: 1;
}
.sticky-showcase__pin .motion-frame {
  width: min(960px, 92vw);
  transform: scale(calc(0.92 + var(--pin-p) * 0.08))
    translateY(calc((1 - var(--pin-p)) * 24px));
  opacity: calc(0.55 + var(--pin-p) * 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.22),
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(0, 229, 255, 0.12);
  transition: none;
}
.sticky-showcase__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -18vh;
  padding: 0 16px 48px;
  pointer-events: none;
}
.sticky-showcase__copy h2 {
  margin-bottom: 10px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.65);
}
.sticky-showcase__copy .section-intro {
  margin-left: auto;
  margin-right: auto;
  color: #d4d4d8;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}
.sticky-showcase__progress {
  width: min(220px, 50vw);
  height: 3px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.sticky-showcase__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2997ff, #00e5ff);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.55);
}
.motion-section--pinned > .motion-frame {
  /* moved into sticky pin */
}
body.home-page .home-compare {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(800px 280px at 50% 0%, rgba(0, 229, 255, 0.08), transparent 60%),
    var(--bg-deep, #0b0f14);
  padding: 72px 28px;
  margin: 12px 0;
}
body.home-page .compare-col--gain {
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.12);
}
body.home-page .benefit-card,
body.home-page .card,
body.home-page .scenario-card {
  backdrop-filter: blur(14px) saturate(1.2);
}
body.home-page .reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
body.home-page .reveal.in {
  opacity: 1;
  transform: none;
}

/* product pages stay restrained */
body.product-page .sticky-showcase,
body.contact-page .sticky-showcase {
  display: contents;
}
body.product-page .hero-cinematic {
  min-height: unset;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .sticky-showcase { height: 180vh; }
  .sticky-showcase__pin { top: 10vh; height: 58vh; }
  body.home-page .hero.hero-cinematic { min-height: 72vh; padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page .hero.hero-cinematic,
  .sticky-showcase__pin .motion-frame {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .sticky-showcase { height: auto; }
  .sticky-showcase__pin { position: relative; top: auto; height: auto; }
}


/* ===== Five-chapter home (Apple rhythm) ===== */
body.home-page .wrap.home-only-glow {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
body.home-page .fx-grain { display: none !important; }

.home-chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  box-sizing: border-box;
  background: #0b0f14;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.home-chapter.is-in {
  opacity: 1;
  transform: none;
}
.home-chapter:nth-of-type(even),
.home-chapter--compare,
#ch-compare,
.home-chapter--quote {
  background: #0e141c;
}
/* home-compare as chapter */
body.home-page .home-compare {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border-radius: 0;
  border: none;
  padding: 72px 24px;
  background: #0e141c;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.home-page .home-compare.is-in,
body.home-page .home-compare.reveal.in {
  opacity: 1;
  transform: none;
}

.chapter-rail {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.chapter-rail--center { text-align: center; }
.chapter-rail--center .chapter-sub { margin-left: auto; margin-right: auto; }
.chapter-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.chapter-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.chapter-sub {
  color: #8b9aab;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 36em;
  margin: 0 0 28px;
  line-height: 1.55;
}
.chapter-hardshot {
  margin: 28px 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  background: #090b10;
}
.chapter-hardshot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: cover;
}
.chapter-actions { margin-top: 8px; }

/* Ch3 sticky proof */
.home-chapter--proof {
  display: block;
  min-height: auto;
  padding: 0;
  opacity: 1;
  transform: none;
}
.proof-stage {
  height: 300vh;
  position: relative;
}
.proof-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
}
.proof-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}
.proof-shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,.2);
  background: #090b10;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  aspect-ratio: 16 / 10;
}
.proof-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proof-source { font-size: 0.85rem; margin: -12px 0 18px; }
.proof-dots { display: flex; gap: 8px; margin-top: 22px; }
.proof-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #334155; display: inline-block;
}
.proof-dots i.on {
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0,229,255,.55);
}
.proof-bar {
  margin-top: 14px;
  width: min(220px, 60%);
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.proof-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #2997ff, #00e5ff);
}

@media (max-width: 900px) {
  .home-chapter { min-height: auto; padding: 80px 24px; }
  .proof-stage { height: auto; }
  .proof-pin { position: relative; height: auto; padding: 72px 24px; }
  .proof-split { grid-template-columns: 1fr; }
  .proof-shot { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  .home-chapter, body.home-page .home-compare {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .proof-stage { height: auto; }
  .proof-pin { position: relative; height: auto; }
}

/* capability + scenario chapters */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.capability-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px 18px;
  background: rgba(255,255,255,.03);
}
.capability-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.capability-card p { margin: 0 0 12px; color: #8b9aab; font-size: .92rem; line-height: 1.5; }
.capability-product {
  display: inline-block;
  font-size: .75rem;
  color: #041018;
  background: linear-gradient(135deg,#2997ff,#00e5ff);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.scenario-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
}
.scenario-card-shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #090b10;
}
.scenario-card-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scenario-card-body { padding: 16px 18px 18px; }
.scenario-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.scenario-card-body p { margin: 0; color: #8b9aab; font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) {
  .capability-grid, .scenario-cards { grid-template-columns: 1fr; }
}

/* contact page */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.contact-channel {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
}
a.contact-channel:hover { border-color: rgba(0,229,255,.35); }
.contact-channel__label {
  display: block;
  font-size: .75rem;
  color: #8b9aab;
  margin-bottom: 4px;
}
.contact-form-title {
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: .9rem;
}
.footer-contact a { color: #8b9aab; text-decoration: none; }
.footer-contact a:hover { color: #00e5ff; }

/* ===== mobile responsive pack ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--fg);
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.contact-rail {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}
.contact-rail__head h1 { margin-top: 0; font-size: clamp(1.8rem, 6vw, 2.4rem); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: relative; flex-wrap: wrap; }
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.05); }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-lang {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .nav-lang a { flex: 1; text-align: center; }
}

@media (max-width: 900px) {

  .chapter-title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .chapter-sub { font-size: 1rem; margin-bottom: 20px; }
  .chapter-hardshot img { max-height: none; }

  .home-chapter,
  body.home-page .home-compare {
    opacity: 1 !important;
    transform: none !important;
    min-height: auto;
    padding: 56px 20px;
  }

  .ai-chat { right: 14px; bottom: 14px; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-contact { justify-content: center; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: none; border-bottom: 1px solid var(--line); }
  .admin-main { padding: 20px 16px; }

  .form { padding: 20px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 64px; }
  .nav { padding-left: 16px; padding-right: 16px; }

  .stats { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .brand span { max-width: 38vw; }
  .contact-channels { grid-template-columns: 1fr; }
  .price { font-size: 1.6rem; }
}

html { -webkit-text-size-adjust: 100%; }
img, video, svg { max-width: 100%; height: auto; }

/* ===== mobile polish v2 (designer + architect) ===== */
@media (max-width: 900px) {
  body { font-size: 15px; }

  .chapter-title,
  .home-compare__title,
  .contact-rail__head h1,
  .hero h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }

  .chapter-sub,
  .home-compare__sub,
  .lead,
  .muted,
  .contact-rail__head p {
    font-size: 15px;
    line-height: 1.55;
  }

  .home-chapter,
  body.home-page .home-compare {
    padding: 48px 20px !important;
  }

  .capability-grid,
  .scenario-cards,
  .scenario-grid,
  .grid-3,
  .pricing-grid,
  .gallery {
    gap: 14px;
  }

  .capability-card,
  .scenario-card,
  .card,
  .price-card,
  .compare-col {
    padding: 16px 14px;
  }

  .stats,
  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .contact-page .wrap,
  .contact-rail {
    padding-bottom: 88px !important;
  }

  .contact-form {
    margin-bottom: 12px;
  }

  /* keep chat float clear of primary actions */
  .ai-chat { right: 12px; bottom: 12px; }
}

@media (max-width: 900px) {
  body.contact-page {
    padding-bottom: 0;
  }
  body.contact-page .site-footer {
    padding-bottom: 96px;
  }
}

/* ===== motionsites-inspired polish ===== */
body {
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font);
}
body.home-page {
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(0, 229, 255, 0.08), transparent 55%),
    var(--bg-void);
}
.site-header {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-cta, .btn-primary {
  background: var(--grad-cta) !important;
  color: #05070b !important;
  border: none;
}
.btn-ghost, a.btn:not(.btn-primary) {
  border-color: var(--border-glow);
}
.chapter-title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.chapter-tag, .eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
}
.home-chapter {
  background: var(--bg-section);
}
.home-chapter:nth-of-type(even),
.home-chapter--compare,
#ch-compare,
.home-chapter--quote,
body.home-page .home-compare {
  background: var(--bg-section-alt);
}
.capability-card,
.scenario-card,
.card,
.price-card,
.compare-col,
.contact-channel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.capability-card:hover,
.scenario-card:hover,
.card:hover,
.price-card:hover,
.contact-channel:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.capability-product {
  background: var(--grad-cta);
  color: #05070b;
}
.home-chapter--claim .chapter-rail,
.home-chapter--capabilities .chapter-rail {
  position: relative;
}
.home-chapter--claim {
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg-section);
}
.stat__value, .home-compare .stats-row .stat__value {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.compare-col--pain .compare-item { color: var(--pain); }
.compare-col--gain .compare-item { color: var(--accent); }

@media (max-width: 900px) {
  .chapter-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .capability-card,
  .scenario-card,
  .card,
  .price-card,
  .contact-channel {
    transition: none;
  }
  .capability-card:hover,
  .scenario-card:hover,
  .card:hover,
  .price-card:hover,
  .contact-channel:hover {
    transform: none;
  }
}

/* ===== layout redesign v2 (hero gallery) ===== */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--text, #e8eef5) !important;
  border: 1px solid var(--border-glow, rgba(0,229,255,.28));
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(0,229,255,.08); color: var(--accent, #00e5ff) !important; }

.home-chapter--claim {
  min-height: 92vh;
  background-color: var(--bg-void, #05070b);
  background-image:
    radial-gradient(900px 520px at 70% 20%, rgba(0,229,255,.12), transparent 55%),
    radial-gradient(var(--grid-dot, rgba(255,255,255,.05)) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
.claim-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
}
.claim-copy { max-width: 34rem; }
.claim-display {
  font-size: clamp(2.75rem, 7vw, 4.5rem) !important;
  margin-bottom: 16px;
}
.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.claim-shot {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glow, rgba(0,229,255,.28));
  box-shadow: var(--shadow-glow, 0 0 32px rgba(0,229,255,.12));
  aspect-ratio: 16 / 10;
  background: #090b10;
}
.claim-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scenario-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.scenario-gallery .scenario-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.scenario-gallery .scenario-card-shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #090b10;
}
.scenario-gallery .scenario-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scenario-gallery .scenario-card-body { padding: 16px 18px 20px; }
.scenario-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #00e5ff);
  border: 1px solid rgba(0,229,255,.25);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.scenario-gallery .scenario-card-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.scenario-gallery .scenario-card-body p { margin: 0; color: var(--text-muted, #8b9aab); font-size: .92rem; line-height: 1.5; }

.capability-grid .capability-card { padding: 22px 18px; }
.home-chapter--capabilities .chapter-title,
.home-chapter--scenarios .chapter-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
}

.cta-strip {
  padding: 28px 24px 48px;
  background: var(--bg-section-alt, #0e141c);
  border-top: 1px solid var(--border, #1e2a36);
}
.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-glow, rgba(0,229,255,.28));
  background: rgba(18,24,32,.72);
}
.cta-strip__title {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 650;
}

.home-compare .stat {
  border-radius: 16px;
  border-color: var(--border);
}
.home-compare .stat__value {
  font-size: 2.25rem;
}

@media (max-width: 1100px) {
  .scenario-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 900px) {
  .claim-split { grid-template-columns: 1fr; gap: 28px; }
  .claim-display { font-size: clamp(1.75rem, 6vw, 2.25rem) !important; }
  .home-chapter--claim { min-height: auto; padding: 48px 20px !important; }
  .claim-shot { border-radius: 16px; }
  .scenario-gallery { grid-template-columns: 1fr; gap: 14px; }
  .cta-strip__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-strip__inner .btn { width: 100%; }
}
