/* ==========================================================================
   小虾米跨境 (https://xiamierp.top) — Flagship Liquid-Glass Website
   Directly aligned with Desktop App (tokens.css + AuthAmbientShowcase.css)
   Zero CDN dependencies · 100% GPU-composited motion · Light & Dark theme
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-primary: #ee4d2d;
  --accent-bright: #f97316;
  --accent-primary-soft: rgba(238, 77, 45, 0.11);
  --accent-border: rgba(238, 77, 45, 0.34);
  --accent-gradient: linear-gradient(135deg, #ee4d2d 0%, #f05a28 52%, #f97316 100%);

  --accent-blue: #007aff;
  --accent-blue-soft: rgba(0, 122, 255, 0.11);
  --accent-green: #16a34a;
  --accent-green-soft: rgba(22, 163, 74, 0.11);
  --accent-amber: #d97706;
  --accent-amber-soft: rgba(217, 119, 6, 0.12);

  /* Desktop L0 Canvas */
  --canvas-bg: #f4f6fa;
  --section-tinted: #eef2f8;
  --hero-bg:
    radial-gradient(1100px 680px at 10% 10%, rgba(255, 138, 101, 0.19), transparent 56%),
    radial-gradient(920px 620px at 88% 16%, rgba(56, 189, 248, 0.16), transparent 56%),
    radial-gradient(960px 660px at 52% 96%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(180deg, #f8f7f4 0%, #f3f6fb 56%, #eef2f8 100%);

  /* Desktop L1 Liquid Glass */
  --l1-bg: rgba(255, 255, 255, 0.76);
  --l1-modal-bg: rgba(255, 255, 255, 0.92);
  --l1-rim-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(148, 163, 184, 0.34) 100%
  );
  --l1-inner-highlight: rgba(255, 255, 255, 0.82);
  --l1-shadow:
    0 18px 44px -22px rgba(15, 23, 42, 0.16),
    0 4px 12px -4px rgba(15, 23, 42, 0.06);

  /* Desktop L2 Elevated Surfaces */
  --l2-bg: rgba(255, 255, 255, 0.86);
  --l2-bg-solid: #ffffff;
  --l2-subtle: rgba(15, 23, 42, 0.036);
  --l2-subtle-hover: rgba(15, 23, 42, 0.065);
  --l2-border: rgba(15, 23, 42, 0.085);
  --l2-border-strong: rgba(15, 23, 42, 0.14);
  --l2-shadow:
    0 12px 32px -18px rgba(15, 23, 42, 0.12),
    0 2px 6px -2px rgba(15, 23, 42, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --l2-shadow-hover:
    0 26px 56px -24px rgba(15, 23, 42, 0.18),
    0 6px 16px -6px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --pill-active-bg: rgba(255, 255, 255, 0.94);
  --pill-active-shadow:
    0 5px 16px -5px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);

  --btn-primary-shadow:
    0 12px 28px -10px rgba(238, 77, 45, 0.50),
    0 2px 6px -2px rgba(238, 77, 45, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  --btn-primary-shadow-hover:
    0 18px 36px -12px rgba(238, 77, 45, 0.58),
    0 4px 10px -3px rgba(238, 77, 45, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);

  --dot-grid: rgba(15, 23, 42, 0.09);
  --spot-grid-a: rgba(238, 77, 45, 0.08);
  --spot-grid-b: rgba(0, 122, 255, 0.07);
  --card-spot: rgba(238, 77, 45, 0.085);
  --card-spot-border: rgba(238, 77, 45, 0.32);
  --modal-scrim: rgba(15, 23, 42, 0.42);
}

[data-theme="dark"] {
  color-scheme: dark;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-primary: #ff6347;
  --accent-bright: #fb923c;
  --accent-primary-soft: rgba(255, 99, 71, 0.16);
  --accent-border: rgba(255, 114, 86, 0.42);
  --accent-gradient: linear-gradient(135deg, #ff6347 0%, #f97316 55%, #fb923c 100%);

  --accent-blue: #38bdf8;
  --accent-blue-soft: rgba(56, 189, 248, 0.15);
  --accent-green: #22c55e;
  --accent-green-soft: rgba(34, 197, 94, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.16);

  --canvas-bg: #0b0d13;
  --section-tinted: #0f121b;
  --hero-bg:
    radial-gradient(1100px 680px at 10% 10%, rgba(238, 77, 45, 0.16), transparent 56%),
    radial-gradient(920px 620px at 88% 18%, rgba(56, 189, 248, 0.13), transparent 56%),
    radial-gradient(960px 660px at 50% 96%, rgba(139, 92, 246, 0.12), transparent 60%),
    linear-gradient(180deg, #090b11 0%, #0d1018 55%, #111521 100%);

  --l1-bg: rgba(22, 26, 36, 0.78);
  --l1-modal-bg: rgba(20, 24, 34, 0.94);
  --l1-rim-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.14) 100%
  );
  --l1-inner-highlight: rgba(255, 255, 255, 0.11);
  --l1-shadow:
    0 24px 56px -24px rgba(0, 0, 0, 0.68),
    0 4px 14px -4px rgba(0, 0, 0, 0.42);

  --l2-bg: rgba(24, 28, 39, 0.80);
  --l2-bg-solid: #181c27;
  --l2-subtle: rgba(255, 255, 255, 0.045);
  --l2-subtle-hover: rgba(255, 255, 255, 0.085);
  --l2-border: rgba(255, 255, 255, 0.09);
  --l2-border-strong: rgba(255, 255, 255, 0.16);
  --l2-shadow:
    0 18px 42px -20px rgba(0, 0, 0, 0.56),
    0 2px 8px -2px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --l2-shadow-hover:
    0 28px 64px -22px rgba(0, 0, 0, 0.72),
    0 6px 18px -6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  --pill-active-bg: rgba(255, 255, 255, 0.13);
  --pill-active-shadow:
    0 6px 18px -6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  --btn-primary-shadow:
    0 14px 30px -10px rgba(255, 99, 71, 0.46),
    0 2px 8px -2px rgba(255, 99, 71, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --btn-primary-shadow-hover:
    0 20px 40px -12px rgba(255, 99, 71, 0.56),
    0 4px 12px -3px rgba(255, 99, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);

  --dot-grid: rgba(255, 255, 255, 0.085);
  --spot-grid-a: rgba(255, 114, 86, 0.12);
  --spot-grid-b: rgba(56, 189, 248, 0.09);
  --card-spot: rgba(255, 108, 78, 0.11);
  --card-spot-border: rgba(255, 118, 92, 0.44);
  --modal-scrim: rgba(4, 6, 12, 0.70);
}

/* ==========================================================================
   Reset & Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--canvas-bg);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI",
    "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 280ms ease, color 280ms ease;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Desktop Signature Liquid-Glass Primitives
   ========================================================================== */

.glass-l1 {
  position: relative;
  isolation: isolate;
  background: var(--l1-bg);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--l1-inner-highlight), var(--l1-shadow);
}

.glass-l1::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--l1-rim-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-l1-modal {
  position: relative;
  isolation: isolate;
  background: var(--l1-modal-bg);
  border: 1px solid var(--l2-border-strong);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  box-shadow:
    inset 0 1px 0 var(--l1-inner-highlight),
    0 32px 80px -24px rgba(15, 23, 42, 0.36);
}

[data-theme="dark"] .glass-l1-modal {
  box-shadow:
    inset 0 1px 0 var(--l1-inner-highlight),
    0 36px 90px -22px rgba(0, 0, 0, 0.8);
}

.glass-chip {
  background: var(--l1-bg);
  border: 1px solid var(--l2-border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--l1-inner-highlight), 0 6px 18px -10px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   Scroll Progress Hairline
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent-gradient);
  will-change: transform;
}

/* ==========================================================================
   Floating Liquid-Glass Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  pointer-events: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 280ms ease;
}

.site-header.is-scrolled .nav-shell {
  box-shadow:
    inset 0 1px 0 var(--l1-inner-highlight),
    0 20px 48px -20px rgba(15, 23, 42, 0.22);
}

[data-theme="dark"] .site-header.is-scrolled .nav-shell {
  box-shadow:
    inset 0 1px 0 var(--l1-inner-highlight),
    0 24px 56px -20px rgba(0, 0, 0, 0.78);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--l2-bg-solid);
  border: 1px solid var(--l2-border-strong);
  box-shadow: 0 4px 10px -4px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.brand-mark-sm img {
  width: 19px;
  height: 19px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
}

.nav-link {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 200ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.is-active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--pill-active-bg);
  box-shadow: var(--pill-active-shadow);
}

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

.icon-pill-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--l2-border);
  background: var(--l2-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-pill-btn:hover {
  background: var(--l2-subtle-hover);
  color: var(--text-primary);
  border-color: var(--l2-border-strong);
  transform: translateY(-1px);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.mobile-only {
  display: none;
}

.icon-menu-close {
  display: none;
}

.mobile-only[aria-expanded="true"] .icon-menu-open {
  display: none;
}

.mobile-only[aria-expanded="true"] .icon-menu-close {
  display: block;
}

.mobile-drawer {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 22px;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer.is-open {
  display: flex;
  animation: drawer-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 180ms ease;
}

.mobile-nav-link:hover {
  background: var(--l2-subtle-hover);
}

.mobile-drawer-cta {
  width: 100%;
  margin-top: 4px;
}

@media (min-width: 821px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   Buttons (Tactile Specular Sheen + Subtle Magnetic Micro-Pull)
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 48%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.36) 50%,
    transparent 100%
  );
  transform: skewX(-22deg) translateX(0);
  pointer-events: none;
  opacity: 0;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

.btn:hover::after {
  opacity: 1;
  transform: skewX(-22deg) translateX(360%);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: var(--btn-primary-shadow);
}

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

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-glass {
  color: var(--text-primary);
  background: var(--l1-bg);
  border-color: var(--l2-border-strong);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 var(--l1-inner-highlight),
    0 8px 20px -12px rgba(15, 23, 42, 0.14);
}

.btn-glass:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.btn-glass:active {
  transform: translateY(0) scale(0.985);
}

/* ==========================================================================
   SECTION 1 · HERO — Interactive Liquid Glass Stage
   ========================================================================== */

.hero-stage {
  --mx: 36%;
  --my: 34%;
  --px: 0;
  --py: 0;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 108px 0 88px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

/* Orbiting Ambient Auras */
.aura-orbit {
  position: absolute;
  will-change: transform;
}

.aura-orbit-primary {
  top: -16%;
  left: -8%;
  width: 720px;
  height: 720px;
  transform: translate3d(calc(var(--px, 0) * 52px), calc(var(--py, 0) * 38px), 0);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-orbit-secondary {
  bottom: -24%;
  right: 6%;
  width: 680px;
  height: 680px;
  transform: translate3d(calc(var(--px, 0) * -42px), calc(var(--py, 0) * -32px), 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-orbit-tertiary {
  top: 24%;
  right: 34%;
  width: 480px;
  height: 480px;
  transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * -24px), 0);
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-disc {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  will-change: transform, opacity;
}

.aura-primary {
  background: radial-gradient(
    circle at center,
    rgba(238, 77, 45, 0.22) 0%,
    rgba(255, 134, 92, 0.10) 38%,
    rgba(255, 180, 140, 0.025) 62%,
    transparent 74%
  );
  animation: aura-drift-a 19s ease-in-out infinite;
}

.aura-secondary {
  background: radial-gradient(
    circle at center,
    rgba(56, 189, 248, 0.20) 0%,
    rgba(0, 122, 255, 0.08) 40%,
    transparent 74%
  );
  animation: aura-drift-b 23s ease-in-out infinite;
}

.aura-tertiary {
  background: radial-gradient(
    circle at center,
    rgba(245, 158, 11, 0.14) 0%,
    rgba(167, 139, 250, 0.07) 44%,
    transparent 74%
  );
  animation: aura-drift-a 27s ease-in-out -7s infinite reverse;
}

[data-theme="dark"] .aura-primary {
  background: radial-gradient(
    circle at center,
    rgba(255, 99, 71, 0.22) 0%,
    rgba(238, 77, 45, 0.09) 38%,
    transparent 74%
  );
}

[data-theme="dark"] .aura-secondary {
  background: radial-gradient(
    circle at center,
    rgba(45, 212, 191, 0.16) 0%,
    rgba(56, 189, 248, 0.09) 42%,
    transparent 74%
  );
}

/* Cursor Spotlight + Architectural Dot Grid Veil */
.cursor-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    560px circle at var(--mx, 36%) var(--my, 34%),
    rgba(238, 77, 45, 0.09) 0%,
    rgba(56, 189, 248, 0.04) 38%,
    transparent 72%
  );
}

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(
    580px circle at var(--mx, 36%) var(--my, 34%),
    rgba(255, 108, 78, 0.12) 0%,
    rgba(45, 212, 191, 0.05) 38%,
    transparent 72%
  );
}

.dot-grid-base {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.36;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
}

.dot-grid-spotlight {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--spot-grid-a) 1px, transparent 1px),
    linear-gradient(to bottom, var(--spot-grid-b) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(
    360px circle at var(--mx, 36%) var(--my, 34%),
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.32) 48%,
    transparent 76%
  );
  mask-image: radial-gradient(
    360px circle at var(--mx, 36%) var(--my, 34%),
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.32) 48%,
    transparent 76%
  );
}

/* Hero Grid Layout */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.032em;
  color: var(--text-primary);
}

.title-line {
  display: block;
}

.title-accent-shimmer {
  background: linear-gradient(
    110deg,
    #ee4d2d 0%,
    #f97316 32%,
    #fbbf24 50%,
    #ee4d2d 68%,
    #f97316 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shimmer 7.5s linear infinite;
}

[data-theme="dark"] .title-accent-shimmer {
  background: linear-gradient(
    110deg,
    #ff6347 0%,
    #fb923c 32%,
    #fde047 50%,
    #ff6347 68%,
    #fb923c 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-sep {
  width: 1px;
  height: 26px;
  background: var(--l2-border-strong);
}

/* ==========================================================================
   Right Hero Stage — 3D Liquid-Glass Depth-of-Field Product Showcase
   ========================================================================== */

.hero-visual {
  perspective: 1300px;
  min-width: 0;
}

.stage-tilt-plane {
  transform: rotateY(calc(var(--px, 0) * 3.2deg)) rotateX(calc(var(--py, 0) * -2.6deg));
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.stage-window {
  position: relative;
  border-radius: 26px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 3D Curved-Glass Specular Reflection Sheen (GPU-only transform via --mx/--my) */
.stage-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}

.stage-specular::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 22%,
    rgba(255, 240, 232, 0.05) 42%,
    transparent 62%
  );
  transform: translate3d(
    calc((var(--mx, 36%) - 50%) * 0.5),
    calc((var(--my, 34%) - 50%) * 0.5),
    0
  );
  will-change: transform;
}

.stage-specular::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 14%,
    transparent 30%
  );
}

[data-theme="dark"] .stage-specular::before {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 178, 152, 0.05) 24%,
    rgba(56, 189, 248, 0.025) 42%,
    transparent 62%
  );
}

[data-theme="dark"] .stage-specular::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.075) 0%,
    rgba(255, 255, 255, 0.015) 14%,
    transparent 28%
  );
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--l2-border);
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.win-dot-red { background: #ff5f56; }
.win-dot-yellow { background: #ffbd2e; }
.win-dot-green { background: #27c93f; }

.window-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.window-title > img {
  flex-shrink: 0;
}

.window-title > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-green-soft);
}

/* Living 2x2 Depth-of-Field Demo Cards */
.stage-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-parallax {
  position: relative;
  z-index: 1;
  transform: translate3d(
    calc(var(--px, 0) * var(--dx, 10px)),
    calc(var(--py, 0) * var(--dy, 8px)),
    0
  );
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.demo-parallax:hover,
.demo-parallax[data-focused="true"] {
  z-index: 10;
}

.demo-offset {
  margin-top: 8px;
}

.demo-drift {
  will-change: transform;
}

.demo-drift-1 { animation: float-1 11.4s ease-in-out infinite; }
.demo-drift-2 { animation: float-2 13.0s ease-in-out -2.4s infinite; }
.demo-drift-3 { animation: float-3 14.2s ease-in-out -4.5s infinite; }
.demo-drift-4 { animation: float-4 15.0s ease-in-out -1.8s infinite; }

.demo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--l2-bg);
  border: 1px solid var(--l2-border);
  box-shadow: var(--l2-shadow);
  cursor: pointer;
  filter: blur(1.7px);
  opacity: 0.78;
  transform: scale(0.985);
  transition:
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease,
    filter 400ms ease,
    border-color 300ms ease,
    box-shadow 360ms ease;
  will-change: transform, opacity, filter;
}

.demo-card[data-ambient="true"] {
  filter: blur(0px);
  opacity: 0.98;
  transform: scale(1.01);
  border-color: var(--accent-border);
}

.demo-card:hover,
.demo-card:focus-visible,
.demo-card[data-focused="true"] {
  filter: blur(0px);
  opacity: 1;
  transform: scale(1.03);
  border-color: var(--accent-primary);
  box-shadow: var(--l2-shadow-hover);
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.demo-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.demo-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.tone-emerald { background: var(--accent-green-soft); color: var(--accent-green); }
.tone-coral { background: var(--accent-primary-soft); color: var(--accent-primary); }
.tone-blue { background: var(--accent-blue-soft); color: var(--accent-blue); }
.tone-amber { background: var(--accent-amber-soft); color: var(--accent-amber); }
.tone-emerald-text { color: var(--accent-green); }
.tone-coral-text { color: var(--accent-primary); }

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

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 10px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
  font-size: 11px;
}

.row-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-primary);
}

.row-meta {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted);
}

/* Demo Card 1: AI Before / After */
.demo-ai-preview {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-frame {
  position: relative;
  overflow: hidden;
  height: 58px;
  border-radius: 11px;
  border: 1px solid var(--l2-border);
  background: var(--l2-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-after {
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.14), rgba(249, 115, 22, 0.08));
  border-color: var(--accent-border);
}

.ai-tag {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

.ai-tag.is-coral {
  color: var(--accent-primary);
}

.ai-obj {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  margin-top: 8px;
}

.ai-obj-raw {
  background: var(--l2-border-strong);
}

.ai-obj-polished {
  background: var(--accent-gradient);
  box-shadow: 0 6px 14px -4px rgba(238, 77, 45, 0.55);
}

.ai-arrow {
  font-size: 12px;
  color: var(--text-muted);
}

/* Demo Card 2: Pipeline */
.demo-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
}

.pipe-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pipe-ok {
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.pipe-track {
  height: 6px;
  border-radius: 999px;
  background: var(--l2-border);
  overflow: hidden;
}

.pipe-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--accent-gradient);
  transform-origin: left center;
  animation: flow-scale 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pipe-fill-blue {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.demo-caption-line {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Demo Card 3: ROAS Sparkline + Chat Bubble */
.demo-spark-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spark-svg {
  width: 100%;
  height: 40px;
}

.spark-line {
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
  animation: spark-draw 5.4s ease-in-out infinite;
}

.demo-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
  font-size: 10.5px;
  color: var(--text-secondary);
  animation: chip-bob 4.4s ease-in-out infinite;
}

/* Stage Dock */
.stage-dock {
  padding-top: 10px;
  border-top: 1px solid var(--l2-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-dock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dock-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--l2-border);
  background: var(--l2-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.dock-pill:hover {
  color: var(--text-primary);
  border-color: var(--l2-border-strong);
}

.dock-pill.is-active {
  color: var(--accent-primary);
  background: var(--pill-active-bg);
  border-color: var(--accent-border);
  box-shadow: var(--pill-active-shadow);
}

.stage-caption {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 20px;
  transition: opacity 200ms ease;
}

.stage-progress-track {
  height: 2px;
  border-radius: 999px;
  background: var(--l2-border);
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--accent-gradient);
  transform-origin: left center;
  animation: pillar-fill 5.5s linear infinite;
}

.stage-window[data-cycle-paused="true"] .stage-progress-fill {
  animation-play-state: paused;
}

/* Breathing Status Dot & Diagonal Sheen */
.dot-breathe {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-green);
  flex-shrink: 0;
  animation: status-breathe 2.6s ease-in-out infinite;
}

.dot-breathe.delay-1 { animation-delay: -0.9s; }
.dot-breathe.delay-2 { animation-delay: -1.8s; }

.sheen-sweep {
  position: absolute;
  inset: -24% auto -24% 0;
  width: 44%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.56) 50%,
    transparent 100%
  );
  animation: sheen-move 4.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

[data-theme="dark"] .sheen-sweep {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 100%
  );
}

/* Subtle Hero Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transform: translate3d(-50%, 0, 0);
  opacity: 0.88;
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    color 200ms ease,
    border-color 200ms ease;
  will-change: transform, opacity;
}

.hero-scroll-cue:hover {
  color: var(--text-primary);
  border-color: var(--l2-border-strong);
  opacity: 1;
  transform: translate3d(-50%, 2px, 0);
}

.hero-scroll-cue.is-hidden-cue {
  opacity: 0;
  transform: translate3d(-50%, 10px, 0);
  pointer-events: none;
}

.scroll-cue-chevron {
  animation: cue-bob 2.2s ease-in-out infinite;
  will-change: transform;
}

/* ==========================================================================
   Shared Sections & Cursor-Tracking Glass Spotlight Cards
   ========================================================================== */

.section {
  position: relative;
  padding: 88px 0;
}

.section-pricing {
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(238, 77, 45, 0.065), transparent 62%),
    var(--section-tinted);
  border-top: 1px solid var(--l2-border);
}

[data-theme="dark"] .section-pricing {
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(255, 99, 71, 0.085), transparent 62%),
    var(--section-tinted);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  margin-bottom: 14px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-sub {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* Spotlight Glass Card Base (Cursor-Tracking Border + Sheen) */
.spotlight-card {
  --cx: 50%;
  --cy: 50%;
  --spot-opacity: 0;
  position: relative;
  border-radius: 24px;
  background: var(--l2-bg);
  border: 1px solid var(--l2-border);
  box-shadow: var(--l2-shadow);
  overflow: hidden;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 340ms ease,
    border-color 280ms ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--l2-shadow-hover);
  border-color: var(--l2-border-strong);
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--spot-opacity);
  transition: opacity 260ms ease;
  background: radial-gradient(
    420px circle at var(--cx) var(--cy),
    var(--card-spot) 0%,
    transparent 65%
  );
  z-index: 0;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    280px circle at var(--cx) var(--cy),
    var(--card-spot-border) 0%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--spot-opacity);
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   SECTION 2 · CORE FEATURES — 4-Card Asymmetric Bento
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-wide {
  grid-column: span 7;
}

.bento-narrow {
  grid-column: span 5;
}

.bento-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.bento-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.bento-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.bento-visual {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.bento-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
}

/* Bento Micro-Visual 1: Isolated Routing Lanes */
.visual-lanes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.lane-row {
  display: grid;
  grid-template-columns: auto 84px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.lane-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.lane-name {
  font-weight: 600;
  color: var(--text-primary);
}

.lane-rail {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--l2-border);
  overflow: hidden;
}

.lane-packet {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  animation: lane-travel 3.2s linear infinite;
}

.packet-2 {
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation-delay: -1.1s;
}

.packet-3 {
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation-delay: -2.2s;
}

.lane-end {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted);
}

/* Bento Micro-Visual 2: AI Visual Sheen */
.visual-ai {
  padding: 0;
  border: none;
  background: transparent;
}

.visual-ai-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.11), rgba(249, 115, 22, 0.05));
  border: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visual-ai-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-primary);
}

.visual-ai-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ai-mini-tile {
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--l1-bg);
  border: 1px solid var(--l2-border);
}

/* Bento Micro-Visual 3: Margin Shield */
.visual-margin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.margin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.margin-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.margin-val {
  font-weight: 700;
  color: var(--accent-green);
  font-variant-numeric: tabular-nums;
}

.margin-chips {
  display: flex;
  gap: 8px;
}

.margin-chips span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--l1-bg);
  border: 1px solid var(--l2-border);
}

/* Bento Micro-Visual 4: Ads + Chat */
.visual-ads-chat {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
}

.mini-panel {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--l1-bg);
  border: 1px solid var(--l2-border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.mini-bars {
  height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px;
  background: var(--l2-border-strong);
  transition: transform 300ms ease;
}

.mini-bars span.is-hot {
  background: var(--accent-gradient);
}

.bento-card:hover .mini-bars span.is-hot {
  transform: scaleY(1.08);
  transform-origin: bottom;
}

.mini-bubble-in,
.mini-bubble-out {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 9px;
  line-height: 1.4;
}

.mini-bubble-in {
  background: var(--l2-subtle);
  color: var(--text-secondary);
  align-self: flex-start;
}

.mini-bubble-out {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-weight: 600;
  align-self: flex-end;
}

/* 1-Row Trust Strip */
.trust-strip {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.trust-dot.tone-emerald { background: var(--accent-green); }
.trust-dot.tone-coral { background: var(--accent-primary); }
.trust-dot.tone-blue { background: var(--accent-blue); }
.trust-dot.tone-amber { background: var(--accent-amber); }

/* ==========================================================================
   SECTION 3 · PRICING — Clean Sliding Switch & Liquid Glass Tiers
   ========================================================================== */

.billing-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.segmented-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  gap: 4px;
}

.segmented-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--pill-active-bg);
  box-shadow: var(--pill-active-shadow);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    width 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.segmented-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

.segmented-btn.is-active {
  color: var(--text-primary);
}

.save-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
}

.sync-hint {
  min-height: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 4-Column Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card-featured {
  border-color: var(--accent-border);
  background:
    radial-gradient(360px 220px at 50% 0%, rgba(238, 77, 45, 0.10), transparent 70%),
    var(--l2-bg);
  box-shadow:
    0 24px 60px -24px rgba(238, 77, 45, 0.24),
    0 4px 14px -4px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 var(--l1-inner-highlight);
}

[data-theme="dark"] .plan-card-featured {
  background:
    radial-gradient(360px 220px at 50% 0%, rgba(255, 99, 71, 0.15), transparent 70%),
    var(--l2-bg);
  box-shadow:
    0 28px 66px -22px rgba(255, 99, 71, 0.22),
    0 6px 18px -6px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 var(--l1-inner-highlight);
}

.plan-inner {
  position: relative;
  z-index: 1;
  padding: 24px 22px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--l2-subtle);
  color: var(--text-secondary);
}

.popular-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent-gradient);
}

.plan-name {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.plan-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  min-height: 22px;
}

.plan-price-block {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--l2-border);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.price-num.is-swapping {
  opacity: 0.35;
  transform: translateY(4px);
}

.price-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 2px;
}

.plan-sub-price {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.plan-quota-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
  text-align: center;
}

.quota-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.q-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.q-key {
  font-size: 10.5px;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-green-soft);
  border: 1.5px solid var(--accent-green);
}

.plan-cta {
  width: 100%;
  height: 42px;
  font-size: 13.5px;
  margin-top: 4px;
}

/* Addon Bar + On-Demand Comparison Sheet Trigger */
.addon-bar {
  margin-top: 22px;
  padding: 13px 16px 13px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.addon-bar-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.addon-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.addon-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.compare-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--l2-border-strong);
  background: var(--pill-active-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--pill-active-shadow);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 200ms ease,
    color 200ms ease,
    background-color 200ms ease;
}

.compare-trigger-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.compare-trigger-arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-trigger-btn:hover .compare-trigger-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Minimalist Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--l2-border);
  background: var(--canvas-bg);
  padding: 26px 0 22px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-slogan {
  font-size: 12.5px;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--l2-border-strong);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--l2-border);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0.78;
  text-align: center;
}

/* ==========================================================================
   Liquid-Glass Contact Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--modal-scrim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  width: 100%;
  max-width: 448px;
  border-radius: 26px;
  padding: 24px;
  transform: translateY(14px) scale(0.96);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.modal-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
}

.contact-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.contact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-empty {
  padding: 16px;
  border-radius: 14px;
  background: var(--l2-subtle);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.modal-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--l2-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   On-Demand Liquid-Glass Full Feature Comparison Modal
   ========================================================================== */

.compare-modal-panel {
  max-width: 880px;
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.compare-modal-head {
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.compare-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.compare-cycle-pill {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--l2-border-strong);
  background: var(--l2-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.compare-cycle-pill:hover {
  background: var(--l2-subtle-hover);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.compare-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--l2-border);
  background: var(--l2-bg);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 12px 13px;
  text-align: center;
  vertical-align: bottom;
  background: var(--l1-modal-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--l2-border-strong);
}

.compare-table thead th:first-child {
  text-align: left;
  padding-left: 18px;
  width: 24%;
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--l2-bg-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 1px 0 0 var(--l2-border), 6px 0 12px -8px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] .compare-table thead th:first-child {
  box-shadow: 1px 0 0 var(--l2-border), 6px 0 12px -8px rgba(0, 0, 0, 0.55);
}

.compare-th-dim {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.compare-th-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.compare-th-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--l2-subtle);
  color: var(--text-secondary);
}

.compare-th-badge.tone-blue { background: var(--accent-blue-soft); color: var(--accent-blue); }
.compare-th-badge.tone-coral { background: var(--accent-primary-soft); color: var(--accent-primary); }
.compare-th-badge.tone-amber { background: var(--accent-amber-soft); color: var(--accent-amber); }

.compare-th-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.compare-th-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table tbody td {
  padding: 12px 12px;
  text-align: center;
  border-bottom: 1px solid var(--l2-border);
  color: var(--text-secondary);
  transition: background-color 160ms ease;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td:first-child {
  text-align: left;
  padding-left: 18px;
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--l2-bg-solid);
  box-shadow: 1px 0 0 var(--l2-border), 6px 0 12px -8px rgba(15, 23, 42, 0.10);
}

[data-theme="dark"] .compare-table tbody td:first-child {
  box-shadow: 1px 0 0 var(--l2-border), 6px 0 12px -8px rgba(0, 0, 0, 0.45);
}

.compare-table tbody tr:hover td {
  background: var(--l2-subtle);
}

.compare-table tbody tr:hover td:first-child {
  background-color: var(--l2-bg-solid);
  background-image: linear-gradient(var(--l2-subtle), var(--l2-subtle));
}

.compare-table th.is-featured-col {
  background:
    linear-gradient(180deg, rgba(238, 77, 45, 0.09) 0%, rgba(238, 77, 45, 0.03) 100%),
    var(--l1-modal-bg);
  box-shadow: inset 0 2px 0 var(--accent-primary);
}

.compare-table td.is-featured-col {
  background: rgba(238, 77, 45, 0.038);
}

[data-theme="dark"] .compare-table th.is-featured-col {
  background:
    linear-gradient(180deg, rgba(255, 99, 71, 0.16) 0%, rgba(255, 99, 71, 0.06) 100%),
    var(--l1-modal-bg);
}

[data-theme="dark"] .compare-table td.is-featured-col {
  background: rgba(255, 99, 71, 0.065);
}

.cmp-val {
  font-weight: 600;
  color: var(--text-primary);
}

.cmp-val-strong {
  font-weight: 700;
  color: var(--accent-primary);
}

.cmp-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.cmp-partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
  color: var(--text-secondary);
}

.cmp-no {
  color: var(--text-muted);
  opacity: 0.55;
  font-weight: 500;
}

.compare-modal-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--l2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.compare-foot-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Compact Legal Document Layout (terms.html & privacy.html)
   ========================================================================== */

.legal-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas-bg);
}

.legal-hero-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background:
    radial-gradient(760px 360px at 16% 0%, rgba(238, 77, 45, 0.13), transparent 64%),
    radial-gradient(700px 360px at 84% 8%, rgba(56, 189, 248, 0.11), transparent 64%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .legal-hero-glow {
  background:
    radial-gradient(760px 360px at 16% 0%, rgba(255, 99, 71, 0.15), transparent 64%),
    radial-gradient(700px 360px at 84% 8%, rgba(56, 189, 248, 0.12), transparent 64%);
}

.legal-main {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 106px 0 64px;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-header-card {
  border-radius: 24px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.24;
  color: var(--text-primary);
}

.legal-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.legal-callout {
  border-radius: 20px;
  padding: 18px 22px;
  border: 1px solid var(--accent-border);
  background: var(--accent-primary-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-callout.tone-local {
  border-color: rgba(22, 163, 74, 0.30);
  background: var(--accent-green-soft);
}

.legal-callout-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-callout p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.legal-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-split-card {
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--l2-bg);
  border: 1px solid var(--l2-border);
  box-shadow: var(--l2-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-split-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.legal-split-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-split-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.legal-card {
  border-radius: 24px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--l2-border);
}

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

.legal-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.legal-section h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-secondary);
}

.legal-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--l2-subtle);
  border: 1px solid var(--l2-border);
  color: var(--text-primary);
}

.legal-list {
  margin: 2px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  line-height: 1.74;
  color: var(--text-secondary);
}

.legal-list strong {
  color: var(--text-primary);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--l2-border-strong);
  background: var(--pill-active-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--pill-active-shadow);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.legal-back-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Scroll Choreography Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Keyframes (100% GPU Transform / Opacity / Stroke)
   ========================================================================== */

@keyframes aura-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(34px, -22px, 0) scale(1.06); }
}

@keyframes aura-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-30px, 24px, 0) scale(1.07); }
}

@keyframes float-1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes float-2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 6px, 0); }
}

@keyframes float-3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@keyframes float-4 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 5px, 0); }
}

@keyframes status-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.84); }
}

@keyframes sheen-move {
  0% { transform: translateX(-140%) skewX(-18deg); }
  45%, 100% { transform: translateX(340%) skewX(-18deg); }
}

@keyframes flow-scale {
  0% { transform: scaleX(0.18); opacity: 0.72; }
  65% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.88); opacity: 0.9; }
}

@keyframes spark-draw {
  0% { stroke-dashoffset: 240; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -240; }
}

@keyframes chip-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -2.5px, 0); }
}

@keyframes pillar-fill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes lane-travel {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

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

@keyframes drawer-in {
  0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cue-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 2.5px, 0); }
}

/* ==========================================================================
   Responsive & Accessibility Guardrails
   ========================================================================== */

@media (max-height: 680px) {
  .hero-scroll-cue {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-desc {
    max-width: 560px;
  }

  .hero-cta-row,
  .hero-metrics {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions .btn-primary {
    display: none;
  }

  .legal-page .nav-links {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    flex-shrink: 0;
  }

  .legal-page .nav-link {
    padding: 5px 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .mobile-only {
    display: inline-flex;
  }

  .bento-wide,
  .bento-narrow {
    grid-column: span 12;
  }

  .visual-ads-chat {
    grid-template-columns: 1fr;
  }

  .lane-row {
    grid-template-columns: auto 72px 1fr;
  }

  .lane-end {
    display: none;
  }

  .footer-slogan {
    display: none;
  }
}

@media (max-width: 600px) {
  .container,
  .header-inner {
    padding: 0 16px;
  }

  .legal-page .nav-shell {
    gap: 8px;
    padding: 0 8px 0 10px;
  }

  .legal-page .brand-text {
    display: none;
  }

  .legal-page .nav-link {
    padding: 5px 9px;
    font-size: 12px;
  }

  .legal-page .legal-back-btn {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero-stage {
    padding: 96px 0 60px;
  }

  .section {
    padding: 72px 0;
  }

  .stage-cards-grid {
    grid-template-columns: 1fr;
  }

  .demo-offset {
    margin-top: 0;
  }

  .pricing-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .metric-sep {
    display: none;
  }

  .hero-scroll-cue {
    display: none;
  }

  .addon-bar {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    gap: 12px;
  }

  .addon-bar-main {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .addon-bar .compare-trigger-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .compare-modal-panel {
    padding: 14px;
  }

  .compare-modal-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .compare-modal-head .modal-title {
    font-size: 18px;
  }

  .compare-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .compare-cycle-pill {
    height: 30px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .compare-table {
    min-width: 540px;
    font-size: 12px;
  }

  .compare-table thead th:first-child,
  .compare-table tbody td:first-child {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    padding-left: 12px;
    padding-right: 10px;
  }

  .legal-header-card,
  .legal-card {
    padding: 20px 18px;
  }

  .legal-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Touch devices: keep Hero demo cards razor-sharp */
@media (hover: none), (pointer: coarse) {
  .demo-card {
    filter: none;
    opacity: 0.96;
    transform: none;
  }
}

/* Pause background motion when tab hidden */
[data-motion-paused="true"] *,
[data-motion-paused="true"] *::before,
[data-motion-paused="true"] *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .demo-card {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-ambient-canvas {
    display: none;
  }
}
