/* ════════════════════════════════════════════════════════════════════
   AIX POS CASHIER — LANDING PAGE STYLES
   ───────────────────────────────────────────────────────────────────
   Brand: AiX — Artificial Intelligence X-Core
   Palette: deep navy bg, electric blue + cyan accents, gold + violet
   Type:    Manrope (body), Space Grotesk (headlines), JetBrains (mono)
═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-0: #02050d;
  --bg-1: #050a18;
  --bg-2: #0a1428;
  --bg-3: #0e1a36;

  /* Surfaces */
  --surface: rgba(14, 24, 48, 0.55);
  --surface-soft: rgba(8, 14, 30, 0.45);
  --surface-strong: rgba(20, 32, 60, 0.85);
  --border: rgba(96, 120, 176, 0.22);
  --border-strong: rgba(96, 120, 176, 0.45);

  /* Text */
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Brand accents */
  --primary: #38bdf8;
  --primary-2: #0ea5e9;
  --primary-3: #2563eb;
  --primary-deep: #1e40af;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-gold: #fbbf24;
  --accent-green: #22c55e;
  --accent-red: #ef4444;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #8b5cf6 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #0ea5e9);
  --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-text: linear-gradient(135deg, #38bdf8, #06b6d4 40%, #818cf8 80%, #c084fc);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(2, 8, 23, 0.3);
  --shadow-md: 0 12px 32px rgba(2, 8, 23, 0.4);
  --shadow-lg: 0 24px 64px rgba(2, 8, 23, 0.55);
  --glow-blue: 0 0 40px rgba(56, 189, 248, 0.35);
  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.30);
}

/* ─── Reset / base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 14px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.78); }
}

/* ════════════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND
═══════════════════════════════════════════════════════════════════════ */
.ambient-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(139, 92, 246, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -80px; left: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
  animation: orb-float-1 22s ease-in-out infinite alternate;
}
.orb-2 { width: 620px; height: 620px; bottom: -100px; right: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  animation: orb-float-2 28s ease-in-out infinite alternate;
}
.orb-3 { width: 380px; height: 380px; top: 40%; left: 60%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.32), transparent 70%);
  animation: orb-float-3 18s ease-in-out infinite alternate;
}
@keyframes orb-float-1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes orb-float-2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-100px, -50px) scale(1.08); }
}
@keyframes orb-float-3 {
  from { transform: translate(0,0); }
  to   { transform: translate(-60px, 80px); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ════════════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 5, 13, 0.4);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-nav[data-scrolled="true"] {
  background: rgba(2, 5, 13, 0.78);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-chip {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--primary);
}
.brand-mark {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-mark-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.brand-mark-product {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 3px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--grad-cyan);
  transition: width .2s ease, left .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   CTA BUTTONS
═══════════════════════════════════════════════════════════════════════ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.cta-btn--sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 10px; }
.cta-btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }

.cta-btn--primary {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary-3) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: white;
}
.cta-btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.cta-btn--ghost:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--primary);
  transform: translateY(-2px);
}
.cta-btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.cta-btn--outline:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════ */
.hero { padding: 80px 0 140px; position: relative; overflow: hidden; }

/* ─── Cursor spotlight ─────────────────────────────────────────────── */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(56, 189, 248, 0.18) 0%,
    rgba(56, 189, 248, 0.05) 25%,
    transparent 60%
  );
  transition: background-position 0.2s ease;
  mix-blend-mode: screen;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ─── Brand-keywords marquee scrolling slowly behind the hero ─────── */
.hero-marquee {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%) rotate(-2deg);
  opacity: 0.06;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  white-space: nowrap;
}
.hero-marquee-track {
  display: inline-flex;
  gap: 60px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 6rem;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: marquee-scroll 60s linear infinite;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero content sits above the spotlight/marquee */
.hero > .container { position: relative; z-index: 2; }

/* ─── Enhanced eyebrow (multi-dot + version chip) ─────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eyebrow-dot--2 { background: var(--accent-violet); box-shadow: 0 0 6px var(--accent-violet); animation-delay: 0.2s; }
.eyebrow-dot--3 { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); animation-delay: 0.4s; }
.eyebrow-badge {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: var(--accent-gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Word-by-word title reveal ───────────────────────────────────── */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 14px 0 22px;
  letter-spacing: -0.02em;
}
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: hero-word-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding: 0 4px 0 0;
}
.hero-word:nth-child(1) > span { animation-delay: 0.10s; }
.hero-word:nth-child(2) > span { animation-delay: 0.20s; }
.hero-word:nth-child(4) > span { animation-delay: 0.35s; }
.hero-word:nth-child(5) > span { animation-delay: 0.45s; }
.hero-word:nth-child(6) > span { animation-delay: 0.55s; }
@keyframes hero-word-up {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.hero-word--grad > span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 220%;
  animation: hero-word-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             title-shimmer 9s ease-in-out 1.5s infinite;
}
.hero-word--dot > span {
  color: var(--accent-cyan);
  text-shadow: 0 0 28px rgba(6, 182, 212, 0.8);
  animation: hero-word-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             dot-pulse 1.6s ease-in-out 1.3s infinite;
}
@keyframes dot-pulse {
  0%, 100% { text-shadow: 0 0 28px rgba(6, 182, 212, 0.8); }
  50%      { text-shadow: 0 0 48px rgba(6, 182, 212, 1); }
}

/* ─── Subtitle underline on key terms ─────────────────────────────── */
.hero-underline {
  position: relative;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.hero-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow .7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-underline:nth-of-type(1)::after { animation-delay: 1.4s; }
.hero-underline:nth-of-type(2)::after { animation-delay: 1.6s; }
.hero-underline:nth-of-type(3)::after { animation-delay: 1.8s; }
@keyframes underline-grow {
  to { transform: scaleX(1); }
}

/* ─── Hero tags with hover scale + new gold variant ───────────────── */
.tag.tag--anim {
  transition: transform .2s cubic-bezier(0.16, 1.4, 0.3, 1), background .2s ease, border-color .2s ease, color .2s ease;
  cursor: default;
}
.tag.tag--anim:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: white;
}
.tag--gold {
  background: rgba(251, 191, 36, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
}
.tag--gold:hover {
  background: rgba(251, 191, 36, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.6) !important;
  color: #fde68a !important;
}
.tag-dot--gold { background: var(--accent-gold); box-shadow: 0 0 6px var(--accent-gold); }

/* ─── Magnetic CTA buttons + extras ───────────────────────────────── */
.cta-btn--magnetic {
  position: relative;
  will-change: transform;
  transition: transform .2s cubic-bezier(0.16, 1.2, 0.3, 1), box-shadow .2s ease;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.7), rgba(168, 85, 247, 0.6));
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity .25s ease;
}
.cta-btn--magnetic:hover .cta-glow { opacity: 1; }

/* Animated bouncing arrow inside the download button */
.cta-arrow-down {
  animation: arrow-bounce 1.8s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Sheen sweep that slides across the primary CTA every few seconds */
.cta-shine {
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 30%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: cta-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-shine {
  0%, 100% { left: -40%; }
  60%      { left: 140%; }
}

/* Pulse ring around play icon on the ghost CTA */
.cta-play-pulse {
  position: absolute;
  left: 14px; top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: play-pulse-ring 1.8s ease-out infinite;
}
@keyframes play-pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Live "downloads today" pill */
.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.4s ease-in-out infinite;
}
.hero-live strong {
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 800;
}
.hero-live small { font-size: 0.66rem; color: var(--text-muted); }

/* ─── Stats with sparklines ──────────────────────────────────────── */
.stat { position: relative; }
.stat-spark {
  position: absolute;
  right: 0; top: -2px;
  width: 60px; height: 24px;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: spark-fade-in .8s ease 1.5s forwards;
}
.stat-spark svg { width: 100%; height: 100%; overflow: visible; }
@keyframes spark-fade-in {
  to { opacity: 0.65; }
}

/* ─── Pulse rings around the device ──────────────────────────────── */
.hero-right { position: relative; min-width: 0; }
.device-ring {
  position: absolute;
  inset: -30px;
  border-radius: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  pointer-events: none;
  animation: device-ring-pulse 4s ease-out infinite;
}
.device-ring-2 {
  inset: -60px;
  animation-delay: 1.5s;
  border-color: rgba(168, 85, 247, 0.22);
}
@keyframes device-ring-pulse {
  0%   { opacity: 0.7; transform: scale(0.92); }
  100% { opacity: 0;   transform: scale(1.08); }
}

/* New floating chips around the device */
.floating-4 {
  bottom: 4%; right: -22px;
  animation: float-y 5.5s 0.8s ease-in-out infinite;
  color: var(--accent-violet);
  border-color: rgba(139, 92, 246, 0.4);
}
.floating-5 {
  top: 30%; left: -40px;
  animation: float-y 5s 1.5s ease-in-out infinite;
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Award badge floating on top */
.device-award {
  position: absolute;
  top: -18px; right: -10px;
  z-index: 3;
  animation: float-y 4s 0.3s ease-in-out infinite;
}
.device-award-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #422006;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: rotate(6deg);
}
.device-award-inner small { display: block; font-size: 0.58rem; font-weight: 700; opacity: 0.7; line-height: 1; }
.device-award-inner strong { display: block; font-size: 1rem; line-height: 1; }
.device-award-star {
  font-size: 1.4rem;
  color: #fff8e7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ─── Scroll-down indicator ──────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
  text-decoration: none;
  animation: scroll-float 2.4s ease-in-out infinite;
}
.hero-scroll:hover .hero-scroll-mouse { border-color: var(--primary); }
.hero-scroll:hover { color: var(--text); }
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
  transition: border-color .2s ease;
}
.hero-scroll-wheel {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: currentColor;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.hero-left { min-width: 0; }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 14px 0 22px;
}
.hero-title-line { display: block; }
.hero-title-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: title-shimmer 8s ease-in-out infinite;
}
@keyframes title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 30px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text);
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tag-dot--green  { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.tag-dot--blue   { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.tag-dot--violet { background: var(--accent-violet); box-shadow: 0 0 6px var(--accent-violet); }
.tag-dot--cyan   { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ─── Hero right: device mockup ───────────────────────────────────── */
.hero-right { position: relative; min-width: 0; }
.device {
  position: relative;
  perspective: 1200px;
}
.device-frame {
  position: relative;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .6s ease;
}
.device:hover .device-frame { transform: rotateY(-2deg) rotateX(0deg); }

.device-screen {
  border-radius: 16px;
  background: linear-gradient(165deg, #0a1428, #050a18);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 460px;
}
.device-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
}
.device-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
}
.device-pill--green {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
}
.device-pill--green::before {
  content: '●'; color: var(--accent-green); animation: pulse 1.5s infinite;
}
.device-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(145deg, #ec4899, #f43f5e);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: white;
}
.device-actions {
  margin-left: auto;
  font-size: 0.65rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.device-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 8px;
  flex: 1;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.device-card {
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9px;
  padding: 8px 4px;
  text-align: center;
  font-size: 1.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .3s ease;
}
.device-card b { font-size: 0.62rem; color: var(--text); font-weight: 700; line-height: 1.1; }
.device-card span { font-size: 0.62rem; color: var(--accent-gold); font-weight: 800; }
.device-card:nth-child(odd)  { background: linear-gradient(165deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.04)); border-color: rgba(139, 92, 246, 0.22); }
.device-card--c1 { animation: card-pulse 4s ease-in-out infinite; }
.device-card--c4 { animation: card-pulse 4s ease-in-out 1.3s infinite; }
@keyframes card-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.device-cart {
  background: rgba(8, 14, 30, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.device-cart-head {
  font-size: 0.7rem; font-weight: 800;
  color: var(--text);
  padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.device-cart-head small { font-weight: 500; color: var(--text-dim); font-size: 0.58rem; display: block; }
.device-cart-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 'icon name' 'icon controls';
  gap: 2px 5px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(20, 32, 60, 0.4);
  font-size: 0.6rem;
}
.dc-icon { grid-area: icon; font-size: 0.95rem; }
.dc-name { grid-area: name; font-weight: 700; color: var(--text); font-size: 0.62rem; }
.dc-qty  { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); font-size: 0.58rem; }
.dc-total { color: var(--primary); font-weight: 800; text-align: right; font-size: 0.62rem; }
.device-cart-line:nth-child(2) > .dc-qty { grid-column: 2; grid-row: 2; }
.device-cart-line:nth-child(2) > .dc-total { grid-column: 2; grid-row: 2; justify-self: end; }
.device-cart-line:nth-child(3) > .dc-qty { grid-column: 2; grid-row: 2; }
.device-cart-line:nth-child(3) > .dc-total { grid-column: 2; grid-row: 2; justify-self: end; }
.device-cart-total {
  display: flex; justify-content: space-between;
  padding: 4px 6px; margin-top: 2px;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem;
}
.device-cart-total strong { color: var(--accent-gold); font-size: 0.88rem; }
.device-pay {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px;
  font-size: 0.7rem; font-weight: 800;
  cursor: pointer;
  margin-top: auto;
  animation: pay-glow 2.4s ease-in-out infinite;
}
@keyframes pay-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
  50%      { box-shadow: 0 6px 22px rgba(34, 197, 94, 0.6); }
}

.device-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

/* Floating chips around the device */
.floating {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.floating-1 { top: 8%; right: -20px; animation: float-y 5s ease-in-out infinite; color: var(--accent-gold); border-color: rgba(251, 191, 36, 0.4); }
.floating-2 { bottom: 18%; left: -22px; animation: float-y 5s 1s ease-in-out infinite; color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.4); }
.floating-3 { top: 50%; right: -32px; animation: float-y 6s 0.5s ease-in-out infinite; color: var(--accent-violet); border-color: rgba(139, 92, 246, 0.4); }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ════════════════════════════════════════════════════════════════════
   TRUST BAND
═══════════════════════════════════════════════════════════════════════ */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.trust-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.trust-logos {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.trust-logos span { opacity: 0.6; transition: opacity .2s ease, color .2s ease; }
.trust-logos span:hover { opacity: 1; color: var(--primary); }

/* ════════════════════════════════════════════════════════════════════
   SECTION HEAD
═══════════════════════════════════════════════════════════════════════ */
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 12px 0 14px;
}
.section-head p {
  font-size: 1.04rem;
  color: var(--text-muted);
}

section { padding: 100px 0; position: relative; }

/* ════════════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--c1, var(--primary)), var(--c2, var(--primary-3)));
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--c1, var(--primary)), var(--c2, var(--primary-3)));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   VIDEO
═══════════════════════════════════════════════════════════════════════ */
.video-frame {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  aspect-ratio: 16 / 9;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-3));
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.18), transparent 50%);
}
.video-play {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border: 4px solid rgba(255, 255, 255, 0.18);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5), 0 0 60px rgba(56, 189, 248, 0.4);
  transition: transform .25s ease;
  animation: play-pulse 2s ease-in-out infinite;
}
.video-play:hover { transform: scale(1.08); }
.video-play svg { margin-left: 4px; }
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5), 0 0 60px rgba(56, 189, 248, 0.4); }
  50%      { box-shadow: 0 20px 50px rgba(37, 99, 235, 0.7), 0 0 100px rgba(56, 189, 248, 0.7); }
}
.video-cap {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════════════
   ANIMATED POS DEMO (replaces the static video placeholder)
   ───────────────────────────────────────────────────────────────────
   A self-contained, looping CSS+JS demo that walks visitors through
   the cashier workflow: scan → add to cart → discount → checkout →
   receipt. Every animation is GPU-accelerated and respects the user's
   reduced-motion preference.
═══════════════════════════════════════════════════════════════════════ */
.demo-stage {
  aspect-ratio: 16 / 9;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-3));
  border-radius: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* The "live demo" badge sits floating top-right */
.demo-badge {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center; gap: 7px;
  padding: 5px 11px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  color: #86efac;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}
.demo-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ─── LEFT half: product browser ─── */
.demo-left {
  position: relative;
  background: linear-gradient(165deg, rgba(8, 18, 44, 0.6), rgba(8, 14, 30, 0.5));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.demo-topbar {
  display: flex; gap: 6px; align-items: center;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.7rem;
}
.demo-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.65rem;
}
.demo-chip--right { margin-left: auto; font-family: 'JetBrains Mono', monospace; }
.demo-chip--screen {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
  font-family: 'JetBrains Mono', monospace;
}
.demo-chip--scan {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
  transition: background .3s ease, color .3s ease;
}
.demo-chip--scan.is-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.35));
  border-color: rgba(34, 197, 94, 0.7);
  color: white;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

.demo-cats {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.demo-cat {
  padding: 4px 9px;
  font-size: 0.66rem; font-weight: 700;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.demo-cat--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.18));
  border-color: rgba(56, 189, 248, 0.5);
  color: white;
}

.demo-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  min-height: 0;
  position: relative;
}
.demo-product {
  position: relative;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: flex-end;
  padding: 0;
  background-color: #1a2540;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  min-height: 80px;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, filter .2s ease;
}
.demo-product::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, 0) 35%,
              rgba(0, 0, 0, 0.5) 65%,
              rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}
.dp-emoji {
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  z-index: 1;
  opacity: 0; /* hidden when there's a photo */
}
.dp-name {
  position: relative;
  z-index: 2;
  font-size: 0.66rem; font-weight: 800;
  text-align: center;
  line-height: 1.1;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-price {
  position: relative;
  z-index: 2;
  font-size: 0.78rem; font-weight: 900;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95);
  padding: 1px 4px 6px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}

/* Highlight state: a product is being "scanned/picked" by the demo */
.demo-product.is-highlight {
  transform: scale(1.06);
  filter: brightness(1.18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 12px 28px rgba(56, 189, 248, 0.55);
  z-index: 5;
}
.demo-product.is-highlight::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 9px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: dp-sheen 1s ease-in-out;
  pointer-events: none;
}
@keyframes dp-sheen {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Scanner beam: a vertical line sweeps across the grid when scanning */
.demo-scan-beam {
  position: absolute;
  top: 60px; bottom: 14px;
  left: 14px;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.9) 30%, rgba(56, 189, 248, 0.4) 70%, transparent 100%);
  box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  border-radius: 2px;
  z-index: 6;
}
.demo-scan-beam.is-active {
  opacity: 1;
  animation: scan-sweep 1.2s ease-in-out;
}
@keyframes scan-sweep {
  0%   { transform: translateX(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(calc(100% * 18)); opacity: 0; }
}

/* Barcode popup (briefly displayed on each scan) */
.demo-scan-pop {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 30, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(34, 197, 94, 0.3);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity .15s ease, transform .25s cubic-bezier(0.16, 1.5, 0.3, 1);
}
.demo-scan-pop.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.dsp-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  color: #86efac;
  letter-spacing: 0.08em;
}
.dsp-msg {
  font-size: 0.62rem; color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── RIGHT half: cart panel ─── */
.demo-cart {
  background: linear-gradient(165deg, rgba(4, 10, 24, 0.6), rgba(4, 8, 20, 0.5));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.demo-cart-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9px;
}
.dch-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.32), rgba(37, 99, 235, 0.24));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.dch-title { font-size: 0.78rem; font-weight: 800; color: var(--text); line-height: 1; }
.dch-sub { font-size: 0.6rem; color: var(--text-dim); margin-top: 2px; }

.demo-cart-lines {
  flex: 1;
  display: flex; flex-direction: column; gap: 3px;
  min-height: 0;
  overflow: hidden;
}
.demo-cart-empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-style: italic;
}
.dce-emoji {
  font-size: 2rem;
  opacity: 0.55;
  animation: float-y 3s ease-in-out infinite;
}

/* A cart line — injected by JS */
.demo-cart-line {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas: 'icon name x' 'icon controls total';
  gap: 1px 6px;
  padding: 4px 6px;
  background: rgba(20, 32, 60, 0.45);
  border: 1px solid var(--border);
  border-radius: 7px;
  animation: line-in .35s cubic-bezier(0.16, 1.4, 0.3, 1);
}
@keyframes line-in {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.dcl-icon { grid-area: icon; font-size: 1.05rem; align-self: center; }
.dcl-name {
  grid-area: name; font-size: 0.7rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dcl-x {
  grid-area: x;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.dcl-controls {
  grid-area: controls;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.dcl-controls > span:nth-child(2) {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 0 5px; border-radius: 4px;
  color: var(--text); font-weight: 800;
}
.dcl-total {
  grid-area: total; justify-self: end;
  font-size: 0.7rem; font-weight: 800;
  color: var(--primary);
}

.demo-cart-totals {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.dct-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dct-row > span:last-child { font-weight: 700; color: var(--text); }
.dct-grand {
  margin-top: 4px; padding-top: 5px;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem;
}
.dct-grand strong {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

/* Pay button — glows when cart not empty, pulses when ready */
.demo-pay {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #4b5563, #374151);
  color: white;
  font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .3s ease, background .3s ease, transform .15s ease, box-shadow .3s ease;
}
.demo-pay.is-ready {
  background: linear-gradient(135deg, #16a34a, #15803d);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
  animation: pay-ready 1.6s ease-in-out infinite;
}
.demo-pay.is-active {
  transform: scale(0.96);
  background: linear-gradient(135deg, #15803d, #166534);
  animation: none;
}
@keyframes pay-ready {
  0%, 100% { box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45); }
  50%      { box-shadow: 0 10px 32px rgba(34, 197, 94, 0.75); }
}
.dpay-icon { font-size: 0.95rem; }

/* ─── Receipt printout — slides up from bottom on payment ─── */
.demo-receipt {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px;
  background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%);
  color: #1f2937;
  border-radius: 8px;
  padding: 14px 12px 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,0,0,0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  transform: translate(-50%, 110%) rotate(-5deg);
  opacity: 0;
  transition: transform .55s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s ease;
  z-index: 15;
  pointer-events: none;
}
.demo-receipt.is-visible {
  transform: translate(-50%, -50%) rotate(-3deg);
  opacity: 1;
}
.dr-head { text-align: center; padding-bottom: 8px; border-bottom: 1px dashed #475569; }
.dr-brand { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; }
.dr-sub { font-size: 0.6rem; color: #64748b; margin-top: 2px; }
.dr-lines { padding: 6px 0; min-height: 60px; }
.dr-line {
  display: flex; justify-content: space-between;
  font-size: 0.62rem; color: #1f2937; padding: 1px 0;
}
.dr-foot { padding-top: 6px; border-top: 1px dashed #475569; }
.dr-total {
  display: flex; justify-content: space-between;
  font-weight: 800; font-size: 0.86rem;
  padding-bottom: 6px;
}
.dr-thanks { text-align: center; font-size: 0.6rem; color: #64748b; }
.dr-barcode {
  margin: 8px auto 0;
  width: 80%;
  height: 22px;
  background: repeating-linear-gradient(
    to right,
    #111 0 1px, transparent 1px 2px,
    #111 2px 4px, transparent 4px 5px,
    #111 5px 6px, transparent 6px 9px,
    #111 9px 11px, transparent 11px 13px
  );
}

/* ─── Step narration footer ─── */
.demo-steps {
  grid-column: 1 / -1;
  display: flex; gap: 5px; justify-content: center;
  padding: 6px;
  background: rgba(8, 14, 30, 0.55);
  border-radius: 10px;
}
.demo-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all .3s ease;
}
.demo-step > span {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.demo-step.is-active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: white;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.demo-step.is-active > span {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border-color: transparent;
  color: white;
}
.demo-step.is-done {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.32);
}
.demo-step.is-done > span {
  background: rgba(34, 197, 94, 0.32);
  border-color: rgba(34, 197, 94, 0.5);
  color: #d1fae5;
}

/* Responsive: collapse on narrow screens */
@media (max-width: 768px) {
  .demo-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-cart { max-height: 240px; }
  .demo-receipt { width: 160px; font-size: 0.6rem; }
}

/* ════════════════════════════════════════════════════════════════════
   DEMO CONTROL BAR — scenario picker + speed + play/pause + restart
═══════════════════════════════════════════════════════════════════════ */
.demo-controls {
  max-width: 1040px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.7), rgba(8, 14, 30, 0.7));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.demo-scenarios {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.demo-scenario-btn span { font-size: 1rem; }
.demo-scenario-btn b { font-weight: 700; }
.demo-scenario-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.32);
  color: var(--text);
}
.demo-scenario-btn.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.22));
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}
.demo-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.demo-speed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.demo-speed-label {
  padding: 0 8px 0 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.demo-speed-btn {
  padding: 4px 8px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .12s ease;
}
.demo-speed-btn:hover { background: rgba(56, 189, 248, 0.12); color: var(--text); }
.demo-speed-btn.is-active {
  background: var(--grad-cyan);
  color: white;
}
.demo-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: all .15s ease;
}
.demo-btn:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--primary);
  color: var(--primary);
}
.demo-btn-reset:hover {
  transform: rotate(-90deg);
}

/* ════════════════════════════════════════════════════════════════════
   DEMO TOAST NOTIFICATIONS (slide in from top of demo stage)
═══════════════════════════════════════════════════════════════════════ */
.demo-toast-host {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  pointer-events: none;
  max-width: 90%;
}
.demo-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: toast-in .35s cubic-bezier(0.16, 1.4, 0.3, 1), toast-out .35s ease 2.7s forwards;
}
.demo-toast--ok { border-color: rgba(34, 197, 94, 0.55); color: #d1fae5; }
.demo-toast--warn { border-color: rgba(245, 158, 11, 0.55); color: #fde68a; }
.demo-toast--error { border-color: rgba(239, 68, 68, 0.55); color: #fecaca; }
.demo-toast--info { border-color: rgba(56, 189, 248, 0.55); color: #bae6fd; }
.demo-toast .toast-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
  background: rgba(255, 255, 255, 0.06);
}
.demo-toast--ok .toast-icon    { background: rgba(34, 197, 94, 0.32); color: #d1fae5; }
.demo-toast--warn .toast-icon  { background: rgba(245, 158, 11, 0.32); color: #fde68a; }
.demo-toast--error .toast-icon { background: rgba(239, 68, 68, 0.32); color: #fecaca; }
.demo-toast--info .toast-icon  { background: rgba(56, 189, 248, 0.32); color: #bae6fd; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-12px) scale(0.92); }
}

/* ════════════════════════════════════════════════════════════════════
   LANG TOGGLE (FR / EN)
═══════════════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  background: rgba(8, 14, 30, 0.55);
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text); background: rgba(56, 189, 248, 0.1); }
.lang-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
}

@media (max-width: 1024px) {
  .lang-toggle { order: 2; }
}

/* ════════════════════════════════════════════════════════════════════
   AMBIENT NEURAL NETWORK BACKGROUND
═══════════════════════════════════════════════════════════════════════ */
.ambient-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
.neural-lines line {
  stroke-dasharray: 4 6;
  animation: line-breathe 7s ease-in-out infinite;
}
.neural-lines line:nth-child(odd)  { animation-delay: -2s; }
.neural-lines line:nth-child(3n)   { animation-delay: -4s; }
.neural-lines line:nth-child(5n)   { animation-delay: -1.5s; }
@keyframes line-breathe {
  0%, 100% { opacity: 0.18; stroke-dashoffset: 0; }
  50%      { opacity: 0.85; stroke-dashoffset: -120; }
}
.neural-nodes .nn { animation: node-pulse 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.neural-nodes .nn:nth-child(odd)  { animation-delay: -1.4s; }
.neural-nodes .nn:nth-child(3n)   { animation-delay: -2.6s; }
.neural-nodes .nn:nth-child(5n)   { animation-delay: -0.8s; }
.neural-nodes .nn:nth-child(7n)   { animation-delay: -3.1s; }
@keyframes node-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.45; }
  50%      { transform: scale(1.18); opacity: 1; }
}

/* Data packets that travel along neural paths (JS animates their positions) */
.neural-packet {
  filter: drop-shadow(0 0 6px currentColor);
  opacity: 0;
  transition: none;
}
.neural-packet.is-flying { opacity: 1; }

/* Scan-line — a faint horizontal sweep that crosses the viewport slowly */
.ambient-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg,
              rgba(56, 189, 248, 0) 0%,
              rgba(56, 189, 248, 0.05) 50%,
              rgba(56, 189, 248, 0) 100%);
  animation: scanline-drift 22s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes scanline-drift {
  from { transform: translateY(-100%); }
  to   { transform: translateY(120vh); }
}

/* Drifting AiX brand glyphs — letters and symbols float slowly across */
.ambient-glyphs {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.glyph {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.18);
  user-select: none;
  white-space: nowrap;
  animation: glyph-float 30s linear infinite;
}
.glyph-1 { top: 8%;  left: -5%;  font-size: 5rem;    animation-duration: 38s; }
.glyph-2 { top: 22%; left: 30%;  font-size: 3rem;    animation-duration: 28s; -webkit-text-stroke-color: rgba(56, 189, 248, 0.18); }
.glyph-3 { top: 35%; left: 80%;  font-size: 2.5rem;  animation-duration: 22s; -webkit-text-stroke-color: rgba(168, 85, 247, 0.18); }
.glyph-4 { top: 55%; left: -10%; font-size: 6rem;    animation-duration: 44s; }
.glyph-5 { top: 65%; left: 60%;  font-size: 2.5rem;  animation-duration: 26s; -webkit-text-stroke-color: rgba(34, 197, 94, 0.18); }
.glyph-6 { top: 75%; left: 18%;  font-size: 2.8rem;  animation-duration: 34s; -webkit-text-stroke-color: rgba(56, 189, 248, 0.18); }
.glyph-7 { top: 85%; left: 70%;  font-size: 3.5rem;  animation-duration: 25s; -webkit-text-stroke-color: rgba(168, 85, 247, 0.18); }
.glyph-8 { top: 92%; left: 5%;   font-size: 4rem;    animation-duration: 40s; }
@keyframes glyph-float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(80px, -40px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ════════════════════════════════════════════════════════════════════
   FLOATING "AiX is thinking…" indicator
═══════════════════════════════════════════════════════════════════════ */
.aix-thought {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 30, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.45), 0 0 24px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.aix-thought.is-visible {
  opacity: 1; transform: translateY(0);
}
.aix-thought-brain {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
  animation: brain-pulse 1.8s ease-in-out infinite;
}
@keyframes brain-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.aix-thought-text {
  display: flex; flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.2;
}
.aix-thought-text strong {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aix-thought-text em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}
.aix-thought-dots {
  display: inline-flex; gap: 3px; align-self: end;
  margin-left: 2px;
}
.aix-thought-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  animation: dots-bounce 1.2s ease-in-out infinite;
}
.aix-thought-dots i:nth-child(2) { animation-delay: 0.15s; }
.aix-thought-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════
   AI ASSISTANT CHAT SECTION
═══════════════════════════════════════════════════════════════════════ */
.ai-section { position: relative; }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ai-grid h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 14px; }
.ai-lead { font-size: 1.04rem; color: var(--text); margin-bottom: 22px; }
.ai-features { display: grid; gap: 12px; margin-top: 18px; }
.ai-features li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease;
}
.ai-features li:hover { border-color: var(--primary); transform: translateX(4px); }
.ai-feat-icon {
  font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.ai-features li b { display: block; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.ai-features li span { font-size: 0.82rem; color: var(--text-muted); }

/* Chat window */
.ai-chat {
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(8, 14, 30, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  display: flex; flex-direction: column;
  height: 480px;
  overflow: hidden;
}
.ai-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.10));
  border-bottom: 1px solid var(--border);
}
.ai-chat-avatar {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; color: white;
  font-size: 0.94rem;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}
.ai-chat-pulse {
  position: absolute; inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(56, 189, 248, 0.5);
  animation: chat-pulse 2.2s ease-in-out infinite;
}
@keyframes chat-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.18); opacity: 0; }
}
.ai-chat-name {
  font-weight: 800; font-size: 0.96rem; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
}
.ai-chat-online { color: var(--accent-green); font-size: 0.7rem; animation: pulse 1.6s infinite; }
.ai-chat-status { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }

.ai-chat-body {
  flex: 1;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ai-msg {
  display: flex; gap: 8px;
  max-width: 90%;
  animation: msg-in 0.4s cubic-bezier(0.16, 1.2, 0.3, 1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-bottom-right-radius: 4px;
}
.ai-msg.ai .ai-msg-bubble {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ai-msg.ai .ai-msg-bubble strong { color: var(--primary); }
.ai-msg.typing .ai-msg-bubble {
  padding: 12px 14px;
  display: inline-flex; gap: 4px; align-items: center;
}
.ai-msg.typing .ai-msg-bubble i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: dots-bounce 1.2s ease-in-out infinite;
}
.ai-msg.typing .ai-msg-bubble i:nth-child(2) { animation-delay: 0.15s; }
.ai-msg.typing .ai-msg-bubble i:nth-child(3) { animation-delay: 0.3s; }

.ai-msg-cursor::after {
  content: '▍'; color: var(--primary);
  animation: cursor-blink 0.8s steps(1) infinite;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

.ai-chat-foot {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(8, 14, 30, 0.5);
}
.ai-chat-foot input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit; font-size: 0.86rem;
}
.ai-chat-foot button {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════
   HOW IT WORKS — TIMELINE
═══════════════════════════════════════════════════════════════════════ */
.how { position: relative; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline-line {
  position: absolute;
  top: 35px;
  left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-violet) 50%, var(--accent-cyan) 100%);
  opacity: 0.22;
  border-radius: 999px;
}
.timeline-progress {
  position: absolute;
  top: 35px;
  left: 12%;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-violet) 100%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
  z-index: 1;
}
.step {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.step-num {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  border: 2px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.6rem;
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.step-num span {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step.is-visible .step-num {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12), 0 12px 28px rgba(56, 189, 248, 0.3);
}
.step-card {
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  width: 100%;
  min-height: 180px;
  transition: border-color .2s ease, transform .2s ease;
}
.step-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.step-card p { font-size: 0.86rem; margin: 0 0 10px; }
.step-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   HARDWARE GRID
═══════════════════════════════════════════════════════════════════════ */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.hw-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hw-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.4);
}
.hw-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  font-size: 1.8rem;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.32);
  margin-bottom: 14px;
}
.hw-card h4 { font-size: 1.04rem; margin: 0 0 12px; color: var(--text); }
.hw-card ul { display: flex; flex-direction: column; gap: 6px; }
.hw-card li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.hw-card li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
═══════════════════════════════════════════════════════════════════════ */
.testi-carousel { position: relative; max-width: 1240px; margin: 0 auto; overflow: hidden; }
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  transition: transform .55s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-card {
  position: relative;
  padding: 36px 28px 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(8, 14, 30, 0.45));
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .25s ease;
}
.testi-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.testi-quote {
  position: absolute;
  top: -16px; left: 20px;
  width: 50px; height: 50px;
  background: var(--grad-cyan);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', serif;
  font-size: 3rem; font-weight: 900;
  color: white;
  line-height: 1;
  padding-bottom: 18px;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.4);
}
.testi-card p {
  font-size: 0.94rem; line-height: 1.55; color: var(--text);
  margin: 8px 0 22px; min-height: 110px;
}
.testi-author {
  display: flex; gap: 12px; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: white;
  font-family: 'Space Grotesk', sans-serif;
}
.testi-av-1 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.testi-av-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.testi-av-3 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.testi-av-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.testi-av-5 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.testi-av-6 { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.testi-name { font-weight: 800; color: var(--text); font-size: 0.92rem; }
.testi-role { font-size: 0.76rem; color: var(--text-muted); }
.testi-stars {
  position: absolute; top: 24px; right: 24px;
  color: var(--accent-gold);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.testi-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 28px;
}
.testi-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.testi-dots button.is-active {
  background: var(--primary);
  width: 24px;
  border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.faq-grid h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 14px; }
.faq-grid p a { color: var(--primary); border-bottom: 1px solid currentColor; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--primary); background: linear-gradient(165deg, rgba(56, 189, 248, 0.05), var(--surface)); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 300;
  color: var(--primary);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-chev {
  transform: rotate(45deg);
  background: rgba(56, 189, 248, 0.25);
}
.faq-body {
  padding: 0 20px 18px;
  animation: faq-open 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-body p { font-size: 0.9rem; margin: 0; color: var(--text-muted); }
.faq-body strong { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ai-grid, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-chat { height: 420px; }
  .timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .timeline-line, .timeline-progress { display: none; }
  .step { flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; }
  .step-num { margin: 0; width: 54px; height: 54px; font-size: 1.3rem; flex-shrink: 0; }
  .step-card { min-height: 0; }
  .testi-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  .testi-track { grid-auto-columns: 100%; }
  .aix-thought { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .ambient-neural { opacity: 0.35; }
  .glyph { font-size: 2rem !important; }
}

/* ════════════════════════════════════════════════════════════════════
   APP SCREENS GALLERY
═══════════════════════════════════════════════════════════════════════ */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.screen-tile {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  padding-bottom: 20px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.screen-tile:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.screen-tile-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-3));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  padding: 14px;
}
.screen-tile h3 { font-size: 1.04rem; margin: 16px 24px 4px; }
.screen-tile p { font-size: 0.86rem; margin: 0 24px; color: var(--text-muted); }

/* ─── Stylised "screenshot" mocks (drawn in CSS, no images required) ─ */
.screen-mock {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; color: var(--text-muted);
}
.sm-row {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--text);
  font-weight: 700;
  font-size: 0.66rem;
}
.sm-grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.sm-grid > div {
  border-radius: 6px;
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.14), rgba(56, 189, 248, 0.06));
  border: 1px solid var(--border);
}
.sm-grid > div:nth-child(odd) {
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.04));
}
.sm-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.sm-bars > div {
  height: 16px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.32), rgba(139, 92, 246, 0.15));
}
.sm-chart {
  flex: 1; display: flex; gap: 8px; align-items: flex-end;
  padding: 6px;
}
.sm-chart > div {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-3));
  transition: opacity .25s ease;
}
.sm-chart > div:hover { opacity: 0.8; }
.sm-rows { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sm-rows > div {
  height: 14px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.sm-list { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.sm-list > div {
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.5);
  border-left: 2px solid var(--primary);
  font-size: 0.6rem;
}
.sm-kpis { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sm-kpis > div {
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.04));
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.sm-kpis b { font-size: 0.94rem; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.sm-kpis span { font-size: 0.56rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ════════════════════════════════════════════════════════════════════
   ENHANCED SCREEN TILES — richer mocks with detailed UI elements
═══════════════════════════════════════════════════════════════════════ */
.screen-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 24px;
  margin-top: 10px;
}
.screen-tags li {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

/* Tile bar (header-like top strip) */
.sm-bar {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--text);
  font-weight: 700;
  font-size: 0.66rem;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.sm-bar--cashier { background: rgba(56, 189, 248, 0.16); }
.sm-mini-btn {
  margin-left: auto;
  font-size: 0.56rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
}
.sm-mini-btn--scan { margin-left: 0; background: rgba(34, 197, 94, 0.14); color: #86efac; border-color: rgba(34, 197, 94, 0.32); }

/* Cashier mock — 2-col: products + mini cart */
.sm-cashier { display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; flex: 1; min-height: 0; }
.sm-grid--photo { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 4px; }
.sm-prod {
  position: relative;
  background: linear-gradient(165deg, var(--c, var(--primary)) 0%, color-mix(in srgb, var(--c, var(--primary)) 70%, #000) 100%);
  border-radius: 5px;
  padding: 5px 3px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: white;
  overflow: hidden;
}
.sm-prod::after {
  content:''; position: absolute; left:0; right:0; bottom:0; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
}
.sm-prod span { font-size: 1.05rem; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.sm-prod i { font-size: 0.56rem; font-style: normal; font-weight: 700; z-index: 1; text-shadow: 0 1px 1px rgba(0,0,0,0.7); }
.sm-prod b { font-size: 0.6rem; font-weight: 800; color: #fde68a; z-index: 1; text-shadow: 0 1px 1px rgba(0,0,0,0.7); }

.sm-mini-cart {
  background: rgba(8, 14, 30, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 5px;
  display: flex; flex-direction: column; gap: 3px;
}
.sm-mini-cart-head { font-size: 0.58rem; font-weight: 800; color: var(--text); padding-bottom: 3px; border-bottom: 1px solid var(--border); }
.sm-mini-line {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 4px; align-items: center;
  padding: 2px 0;
  font-size: 0.56rem;
}
.sm-mini-line span { font-size: 0.7rem; }
.sm-mini-line b { font-weight: 700; color: var(--text); }
.sm-mini-line i { font-weight: 800; color: var(--primary); font-style: normal; }
.sm-mini-total {
  margin-top: auto;
  padding-top: 4px; border-top: 1px dashed var(--border);
  font-size: 0.6rem; color: var(--text-muted);
  display: flex; justify-content: space-between;
}
.sm-mini-total strong { color: var(--accent-gold); font-family: 'Space Grotesk', sans-serif; }

/* Tab pills inside tile bars */
.sm-tab {
  font-size: 0.58rem;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
}
.sm-tab i { font-style: normal; padding: 0 4px; margin-left: 3px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; }
.sm-tab.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.22));
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
}

/* Generic table inside tile */
.sm-table { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 4px; }
.sm-th { font-size: 0.54rem; color: var(--text-dim); font-weight: 800; letter-spacing: 0.04em; padding: 2px 4px; }
.sm-tr {
  display: grid; grid-template-columns: 18px 1.4fr 0.8fr 0.7fr 0.7fr auto;
  gap: 5px; align-items: center;
  padding: 3px 4px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 5px;
  font-size: 0.56rem;
}
.sm-tr span { font-size: 0.9rem; }
.sm-tr b { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-tr i { font-style: normal; color: var(--text-muted); }
.sm-tr u { text-decoration: none; font-family: 'JetBrains Mono', monospace; color: var(--text-dim); }
.sm-pill {
  font-size: 0.54rem; font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.sm-pill--good { background: rgba(34, 197, 94, 0.16); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.32); }
.sm-pill--low  { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.32); }
.sm-pill--out  { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.32); }
.sm-pill--debt { background: rgba(168, 85, 247, 0.16); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.32); font-family: 'JetBrains Mono', monospace; }

/* Mini stat strip */
.sm-stats-mini {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  padding: 4px;
}
.sm-stats-mini > div {
  padding: 5px 8px;
  border-radius: 6px;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex; flex-direction: column; gap: 1px;
}
.sm-stats-mini b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}
.sm-stats-mini span {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* Clients tile */
.sm-clients { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.sm-client {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
}
.sm-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; color: white;
  font-family: 'Space Grotesk', sans-serif;
}
.sm-client b { font-size: 0.66rem; font-weight: 800; color: var(--text); display: block; line-height: 1.1; }
.sm-client span { font-size: 0.5rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* Audit log */
.sm-filters {
  display: flex; gap: 4px; padding: 4px; flex-wrap: wrap;
}
.sm-chip {
  font-size: 0.56rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
}
.sm-chip.is-active { background: rgba(34, 197, 94, 0.16); color: #86efac; border-color: rgba(34, 197, 94, 0.4); }
.sm-list-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.4);
  border-left: 2px solid var(--primary);
  border-radius: 4px;
  font-size: 0.55rem;
  color: var(--text-muted);
}
.sm-list-row b { font-weight: 700; color: var(--text); }
.sm-list-row i { font-style: normal; color: var(--accent-gold); font-family: 'JetBrains Mono', monospace; }
.sm-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sm-dot--ok   { background: var(--accent-green); box-shadow: 0 0 4px var(--accent-green); }
.sm-dot--warn { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.sm-dot--err  { background: var(--accent-red); box-shadow: 0 0 4px var(--accent-red); }

/* Bottom strip — used by close day, backup */
.sm-bottom-strip {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 4px;
}
.sm-bottom-strip > span {
  font-size: 0.56rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
}

/* Cash movements */
.sm-cash { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 4px; }
.sm-cash-row {
  display: grid; grid-template-columns: 18px 1fr auto auto; gap: 5px; align-items: center;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 0.6rem;
  background: rgba(15, 23, 42, 0.4);
}
.sm-cash-row span { font-size: 0.85rem; }
.sm-cash-row i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-weight: 800; }
.sm-cash-row small { font-size: 0.5rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.sm-cash-row--in  i { color: #86efac; }
.sm-cash-row--out i { color: #fca5a5; }
.sm-cash-row--in  { border-left: 2px solid var(--accent-green); }
.sm-cash-row--out { border-left: 2px solid var(--accent-red); }
.sm-cash-balance {
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.66rem; color: var(--text-muted); font-weight: 700;
}
.sm-cash-balance strong {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-gold);
  font-size: 0.92rem;
}

/* Labels print */
.sm-labels {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px;
}
.sm-label {
  background: linear-gradient(180deg, #fefce8, #fef9c3);
  color: #1f2937;
  border-radius: 4px;
  padding: 4px 5px;
  display: flex; flex-direction: column; gap: 2px;
  text-align: center;
  font-size: 0.55rem;
}
.sm-label-name { font-weight: 700; color: #111; }
.sm-label-price { color: #b91c1c; font-weight: 900; font-family: 'Space Grotesk', sans-serif; font-size: 0.74rem; }
.sm-label-barcode {
  height: 12px;
  background: repeating-linear-gradient(to right, #111 0 1px, transparent 1px 2px, #111 2px 4px, transparent 4px 5px, #111 5px 6px, transparent 6px 8px);
  margin: 2px 0;
}
.sm-label-code { font-family: 'JetBrains Mono', monospace; font-size: 0.48rem; color: #444; }

/* Network / Multi-PC LAN */
.sm-network {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 4px 6px;
  position: relative;
}
.sm-server, .sm-net-client {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  position: relative;
  font-size: 0.5rem;
}
.sm-server { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.4); }
.sm-server-icon { font-size: 1.2rem; }
.sm-server b, .sm-net-client small { font-size: 0.56rem; font-weight: 700; color: var(--text); }
.sm-server small { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 0.5rem; }
.sm-server .sm-dot, .sm-net-client .sm-dot { position: absolute; top: 4px; right: 4px; }
.sm-net-client span { font-size: 1.05rem; }
.sm-net-lines {
  width: 80%; height: 22px;
  display: flex; justify-content: space-around;
  margin: 4px 0;
}
.sm-net-lines span {
  width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), transparent);
  position: relative;
}
.sm-net-lines span::after {
  content: ''; position: absolute; left: -2px; top: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
  animation: net-packet 2s ease-in infinite;
}
.sm-net-lines span:nth-child(2)::after { animation-delay: -0.7s; }
.sm-net-lines span:nth-child(3)::after { animation-delay: -1.4s; }
@keyframes net-packet {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}
.sm-clients-row {
  display: flex; gap: 6px;
}

/* Backup */
.sm-backup { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 4px; }
.sm-backup-row {
  display: grid; grid-template-columns: 18px 1fr auto auto; gap: 5px; align-items: center;
  padding: 4px 7px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 5px;
  font-size: 0.56rem;
}
.sm-backup-row span { font-size: 0.85rem; }
.sm-backup-row b { font-family: 'JetBrains Mono', monospace; color: var(--text); font-weight: 700; }
.sm-backup-row i { font-style: normal; color: var(--text-dim); font-size: 0.52rem; font-family: 'JetBrains Mono', monospace; }

/* Settings */
.sm-settings { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 4px; }
.sm-setting-row {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 5px;
  font-size: 0.6rem;
}
.sm-setting-row span { font-size: 0.85rem; }
.sm-setting-row b { font-weight: 700; color: var(--text); }
.sm-setting-row i { font-style: normal; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* ════════════════════════════════════════════════════════════════════
   CLOUD · MOBILE · QR PAYMENTS SECTION
═══════════════════════════════════════════════════════════════════════ */
.cloud-section { position: relative; }
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.cmp-card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.7), rgba(8, 14, 30, 0.7));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cmp-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cmp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  opacity: 0;
  transition: opacity .25s ease;
}
.cmp-card:hover::before { opacity: 1; }

.cmp-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.cmp-badge--new {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}
.cmp-badge--hot {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  animation: hot-pulse 1.6s ease-in-out infinite;
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50%      { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
}

.cmp-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cmp-card h3 { font-size: 1.18rem; margin: 0 0 6px; color: var(--text); }
.cmp-card > p { font-size: 0.92rem; margin: 0; color: var(--text-muted); }

.cmp-visual {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--border);
  padding: 18px;
  min-height: 220px;
  overflow: hidden;
}

/* ── Cloud sync visual ── */
.cmp-cloud-visual {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
  position: relative;
}
.cmp-cloud-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  font-size: 0.66rem; font-weight: 700;
  color: var(--text);
  position: relative;
}
.cmp-cloud-box span { font-size: 1.4rem; }
.cmp-cloud-box small { font-size: 0.56rem; color: var(--text-dim); font-weight: 600; }
.cmp-cloud-store .cmp-sync-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 1.4s ease-in-out infinite;
}
.cmp-cloud-store--2 .cmp-sync-dot { animation-delay: 0.3s; }
.cmp-cloud-store--3 .cmp-sync-dot { animation-delay: 0.6s; }
.cmp-cloud-center {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.18));
  border-color: rgba(56, 189, 248, 0.45);
  margin-top: 16px;
}
.cmp-cloud-center span { font-size: 1.6rem; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)); }
.cmp-cloud-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.cmp-cloud-lines line {
  stroke: rgba(56, 189, 248, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  animation: cloud-line-flow 3s linear infinite;
}
@keyframes cloud-line-flow {
  to { stroke-dashoffset: -28; }
}

/* ── Mobile phone mockup ── */
.cmp-phone-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  padding: 18px 12px;
}
.cmp-phone {
  width: 200px;
  background: #0a1428;
  border-radius: 28px;
  padding: 8px;
  border: 2px solid #1e293b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}
.cmp-phone-notch {
  width: 60px; height: 14px;
  background: #000;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  margin-top: -8px;
}
.cmp-phone-screen {
  background: linear-gradient(165deg, #0c1530, #050a18);
  border-radius: 18px;
  padding: 14px 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 280px;
}
.cmp-phone-head { display: flex; flex-direction: column; gap: 2px; }
.cmp-phone-greeting { font-size: 0.74rem; font-weight: 800; color: var(--text); }
.cmp-phone-status { font-size: 0.56rem; color: #86efac; }
.cmp-phone-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cmp-phone-kpi {
  padding: 8px;
  border-radius: 9px;
  display: flex; flex-direction: column; gap: 1px;
}
.cmp-phone-kpi--green { background: linear-gradient(165deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.06)); border: 1px solid rgba(34, 197, 94, 0.3); }
.cmp-phone-kpi--blue  { background: linear-gradient(165deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.06)); border: 1px solid rgba(56, 189, 248, 0.3); }
.cmp-phone-kpi small { font-size: 0.5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cmp-phone-kpi b { font-size: 0.84rem; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-weight: 800; line-height: 1; }
.cmp-phone-kpi span { font-size: 0.56rem; color: #86efac; font-weight: 700; }
.cmp-phone-chart {
  display: flex; align-items: flex-end; gap: 3px; height: 50px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 7px;
}
.cmp-phone-chart > div {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-3));
}
.cmp-phone-alerts { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.cmp-phone-alert {
  font-size: 0.54rem;
  padding: 4px 7px;
  border-radius: 5px;
  font-weight: 700;
}
.cmp-phone-alert--warn { background: rgba(245, 158, 11, 0.15); color: #fde68a; border-left: 2px solid #f59e0b; }
.cmp-phone-alert--red  { background: rgba(239, 68, 68, 0.15); color: #fecaca; border-left: 2px solid #ef4444; }
.cmp-phone-stores {
  text-align: center;
  font-size: 0.48rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding: 4px 0 2px;
}
.cmp-phone-stores span { color: var(--text-muted); font-weight: 700; padding: 0 4px; }

.cmp-phone-bell {
  position: absolute;
  top: 22px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
  animation: bell-shake 2.4s ease-in-out infinite;
}
.cmp-phone-bell span {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  color: #ef4444;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
@keyframes bell-shake {
  0%, 90%, 100% { transform: rotate(0deg); }
  3%, 9%, 15%   { transform: rotate(-12deg); }
  6%, 12%, 18%  { transform: rotate(12deg); }
}

/* ── QR Payment visual ── */
.cmp-qr-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.cmp-receipt {
  background: linear-gradient(180deg, #fefce8, #fef9c3);
  color: #1f2937;
  border-radius: 8px;
  padding: 10px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
}
.cmp-receipt-head { text-align: center; padding-bottom: 5px; border-bottom: 1px dashed #475569; }
.cmp-receipt-head strong { display: block; font-weight: 800; font-size: 0.66rem; }
.cmp-receipt-head small { font-size: 0.5rem; color: #64748b; }
.cmp-receipt-lines { padding: 5px 0; }
.cmp-receipt-lines > div {
  display: flex; justify-content: space-between;
  font-size: 0.5rem;
  padding: 1px 0;
}
.cmp-receipt-total {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  border-top: 1px dashed #475569;
  font-weight: 800;
  font-size: 0.66rem;
}
.cmp-qr-code {
  position: relative;
  width: 70px; height: 70px;
  margin: 6px auto 4px;
  background: white;
  padding: 4px;
  border-radius: 4px;
}
.cmp-qr-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  width: 100%; height: 100%;
}
.cmp-qr-grid > div {
  background: #111;
}
/* Randomize-ish: hide some cells to look like a real QR */
.cmp-qr-grid > div:nth-child(odd) { background: white; }
.cmp-qr-grid > div:nth-child(5n)  { background: #111; }
.cmp-qr-grid > div:nth-child(7n)  { background: white; }
.cmp-qr-grid > div:nth-child(11n) { background: #111; }
.cmp-qr-pos {
  position: absolute;
  width: 18px; height: 18px;
  border: 3px solid #111;
  background: white;
}
.cmp-qr-pos--tl { top: 4px; left: 4px; }
.cmp-qr-pos--tr { top: 4px; right: 4px; }
.cmp-qr-pos--bl { bottom: 4px; left: 4px; }
.cmp-qr-pos::after {
  content: '';
  position: absolute; inset: 4px;
  background: #111;
}
.cmp-qr-hint { display: block; text-align: center; font-size: 0.5rem; color: #475569; margin-top: 2px; }

/* Scanning phone */
.cmp-scan-phone {
  background: #0a1428;
  border-radius: 14px;
  padding: 6px;
  border: 2px solid #1e293b;
  width: 100%;
  max-width: 130px;
  margin: 0 auto;
}
.cmp-scan-phone-screen {
  background: linear-gradient(165deg, #050a18, #0c1530);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.cmp-scan-target {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08), transparent);
}
.cmp-scan-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-style: solid;
  border-color: var(--primary);
  border-width: 0;
}
.cmp-scan-corner--tl { top: 4px;    left: 4px;    border-top-width: 2px; border-left-width: 2px; }
.cmp-scan-corner--tr { top: 4px;    right: 4px;   border-top-width: 2px; border-right-width: 2px; }
.cmp-scan-corner--bl { bottom: 4px; left: 4px;    border-bottom-width: 2px; border-left-width: 2px; }
.cmp-scan-corner--br { bottom: 4px; right: 4px;   border-bottom-width: 2px; border-right-width: 2px; }
.cmp-scan-beam {
  position: absolute;
  left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 8px var(--primary);
  animation: scan-beam-y 1.8s ease-in-out infinite alternate;
}
@keyframes scan-beam-y {
  from { top: 12%; }
  to   { top: 78%; }
}
.cmp-scan-amount {
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  padding: 5px 0 0;
}
.cmp-scan-amount b {
  font-size: 0.84rem; font-weight: 800;
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
}
.cmp-scan-amount small { font-size: 0.5rem; color: var(--text-muted); }

/* Payment provider chips */
.cmp-pay-providers {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 2px 0;
}
.cmp-pay-provider {
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.10));
  border: 1px solid rgba(34, 197, 94, 0.32);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  color: #d1fae5;
  letter-spacing: 0.04em;
}

/* Bullets shared across all 3 cards */
.cmp-bullets {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.cmp-bullets li {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cmp-bullets strong { color: var(--text); font-weight: 700; }

/* Extras mini-grid below the 3 main cards */
.cmp-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: rgba(8, 14, 30, 0.45);
  border: 1px solid var(--border);
}
.cmp-extra {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.cmp-extra:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.cmp-extra > span {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cmp-extra b { font-size: 0.86rem; color: var(--text); font-weight: 700; display: block; line-height: 1.1; }
.cmp-extra small { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .cmp-qr-visual { grid-template-columns: 1fr; }
  .cmp-receipt { transform: none; }
  .cmp-phone { width: 180px; }
}

/* ──────────────────────────────────────────────────────────────────
   FIX: cmp-extras icon + text-block layout
   Each card now: [icon] + [div with b + small stacked]
   The inner div takes the remaining space and stacks vertically.
─────────────────────────────────────────────────────────────────── */
.cmp-extra { gap: 12px; align-items: center; }
.cmp-extra > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

/* ──────────────────────────────────────────────────────────────────
   FIX: Timeline 4-step layout — desktop only to avoid mobile overlap
─────────────────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
}
.step { min-width: 0; }
.step-card { min-width: 0; max-width: 100%; }

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .step-card {
    min-height: 0;
  }
}

/* ──────────────────────────────────────────────────────────────────
   FIX: Testimonials quote glyph
   The 50×50 cyan box was hiding the inline " character. Replace
   with the curly opening-quote glyph (U+201C) at a size that
   actually shows above the box.
─────────────────────────────────────────────────────────────────── */
.testi-quote {
  font-family: 'Space Grotesk', Georgia, serif;
  font-size: 4rem;
  line-height: 0.7;
  padding: 14px 0 0;
  align-items: flex-start;
  justify-content: center;
}
.testi-quote::before {
  content: '\201C';
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   DEMO — Two-tier control bar (Page picker + Scenario row)
═══════════════════════════════════════════════════════════════════════ */
.demo-pages {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.demo-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.6), rgba(8, 14, 30, 0.5));
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.demo-page-btn span { font-size: 1.05rem; }
.demo-page-btn:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.4);
  color: white;
}
.demo-page-btn.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(168, 85, 247, 0.26));
  border-color: rgba(56, 189, 248, 0.65);
  color: white;
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-row2 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.demo-scenario-label {
  align-self: center;
  padding-right: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════════════════
   ALTERNATE PAGE DEMOS (Products / Stock / Clients / Reports / Audit)
═══════════════════════════════════════════════════════════════════════ */
.demo-alt-host { padding: 14px; overflow: hidden; }
.alt-page {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  gap: 10px;
  background: linear-gradient(165deg, rgba(8, 18, 44, 0.5), rgba(8, 14, 30, 0.4));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}
.alt-page-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  flex-wrap: wrap;
}
.alt-spacer { flex: 1; }
.alt-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
  transition: all .25s ease;
}
.alt-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
  border-color: transparent;
}
.alt-btn--secondary:hover, .alt-btn.is-flash {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}
.alt-btn.is-flash { animation: alt-btn-flash 0.6s ease-in-out 2; }
@keyframes alt-btn-flash {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.alt-filters {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.alt-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}
.alt-chip.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.18));
  border-color: rgba(56, 189, 248, 0.55);
  color: white;
}

.alt-steps {
  margin-top: auto;
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 6px;
  background: rgba(8, 14, 30, 0.55);
  border-radius: 9px;
}
.alt-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all .25s ease;
}
.alt-step > span {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.alt-step > i { font-style: normal; }
.alt-step.is-active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: white;
}
.alt-step.is-active > span {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
  border-color: transparent;
}

/* ── Products page ── */
.alt-table {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.alt-thead, .prd-row {
  display: grid;
  grid-template-columns: 28px 1.5fr 0.9fr 1fr 0.7fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  font-size: 0.74rem;
}
.alt-thead {
  background: rgba(8, 14, 30, 0.6);
  border-radius: 7px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  padding: 5px 10px;
}
.alt-thead > b { font-weight: 800; }
.alt-thead > i, .alt-thead > u { font-weight: 800; font-style: normal; text-decoration: none; }
.prd-row {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 7px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s cubic-bezier(0.16, 1.4, 0.3, 1), border-color .25s ease, background .25s ease;
}
.prd-row.is-visible { opacity: 1; transform: translateY(0); }
.prd-row.is-new {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.45);
  animation: prd-row-glow 1.6s ease-out;
}
@keyframes prd-row-glow {
  0%   { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  30%  { box-shadow: 0 0 28px rgba(34, 197, 94, 0.5); }
  100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
}
.prd-icon { font-size: 1.4rem; }
.prd-row b {
  font-weight: 700;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prd-row i { font-style: normal; color: var(--text-muted); font-size: 0.7rem; }
.prd-row u {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  font-size: 0.66rem;
}
.prd-row .is-edit {
  background: rgba(245, 158, 11, 0.22);
  border-radius: 4px;
  padding: 2px 6px;
  transition: background .25s ease;
  color: #fde68a !important;
}

/* ── Stock page ── */
.alt-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.alt-kpi {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 9px;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.04));
  border: 1px solid var(--border);
}
.alt-kpi--ok   { background: linear-gradient(165deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.04));  border-color: rgba(34, 197, 94, 0.35); }
.alt-kpi--warn { background: linear-gradient(165deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.04)); border-color: rgba(245, 158, 11, 0.35); }
.alt-kpi--err  { background: linear-gradient(165deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.04));   border-color: rgba(239, 68, 68, 0.35); }
.alt-kpi b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.alt-kpi b.is-bump { animation: kpi-bump 0.8s ease-out; }
@keyframes kpi-bump {
  0%, 100% { transform: scale(1); }
  35%      { transform: scale(1.15); color: var(--accent-green); }
}
.alt-kpi small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}

.alt-section-title {
  margin: 6px 4px 0;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 700;
}
.alt-alerts {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.alt-alert {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.alt-alert.is-visible { opacity: 1; transform: translateX(0); }
.alt-alert[data-tone="warn"] { border-left-color: #f59e0b; }
.alt-alert > span:first-child { font-size: 1.5rem; }
.alt-alert b { font-weight: 700; color: var(--text); display: block; font-size: 0.82rem; line-height: 1.1; }
.alt-alert small { font-size: 0.66rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* ── Clients page ── */
.alt-clients-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.alt-client-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 9px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease;
}
.alt-client-card.is-visible { opacity: 1; transform: translateY(0); }
.alt-client-card:hover { border-color: var(--primary); }
.alt-client-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: white;
  font-size: 0.86rem;
}
.alt-client-info b { display: block; font-size: 0.86rem; color: var(--text); font-weight: 800; line-height: 1.15; }
.alt-client-info small { font-size: 0.7rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.alt-client-debt {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
}
.alt-client-debt.is-zero {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.alt-client-detail {
  padding: 12px;
  background: rgba(8, 14, 30, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .4s ease, max-height .5s ease;
}
.alt-client-detail.is-visible {
  opacity: 1;
  max-height: 200px;
}
.alt-client-detail-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.84rem;
}
.alt-client-history {
  display: flex; flex-direction: column;
  gap: 4px;
}
.alt-client-history > div {
  display: flex; justify-content: space-between;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.alt-client-history b { color: var(--accent-green); font-weight: 800; }
.alt-client-history i { font-style: normal; color: var(--accent-red); font-weight: 800; }

/* ── Reports page ── */
.alt-report-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  overflow: hidden;
}
.alt-chart-wrap {
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; flex-direction: column; gap: 6px;
}
.alt-chart-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.alt-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 90px;
  padding: 4px;
}
.alt-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-3));
  transition: height 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 4px;
}
.alt-chart-axis {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.alt-top-products {
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; flex-direction: column; gap: 5px;
}
.alt-top-head { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.alt-top-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 6px;
  background: rgba(8, 14, 30, 0.5);
  border-radius: 6px;
  font-size: 0.74rem;
  transition: background .25s ease, transform .25s ease;
}
.alt-top-row.is-pulse {
  background: rgba(251, 191, 36, 0.18);
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
}
.alt-top-rank {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
  font-weight: 800;
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
}
.alt-top-row b { font-weight: 700; color: var(--text); }
.alt-top-row i { font-style: normal; color: var(--text-muted); font-size: 0.66rem; }
.alt-top-row u {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-gold);
  font-weight: 800;
}

/* ── Audit page ── */
.alt-audit-stats {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(8, 14, 30, 0.45);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.alt-audit-stats b { color: var(--text); font-weight: 800; }

.alt-audit-head, .audit-row {
  display: grid;
  grid-template-columns: 14px 1.2fr 0.7fr 1.4fr 0.6fr;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  font-size: 0.74rem;
}
.alt-audit-head {
  background: rgba(8, 14, 30, 0.5);
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 800;
}
.alt-audit-list {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.audit-row {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 7px;
  border-left: 3px solid var(--border);
}
.audit-row b { font-weight: 700; color: var(--text); }
.audit-row i { font-style: normal; color: var(--text-muted); }
.audit-row u { text-decoration: none; color: var(--accent-gold); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }
.audit-row small { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: 0.66rem; text-align: right; }
.audit-row.is-new {
  animation: audit-row-in .55s cubic-bezier(0.16, 1.2, 0.3, 1);
}
@keyframes audit-row-in {
  from { opacity: 0; transform: translateX(-16px); background: rgba(56, 189, 248, 0.2); }
  to   { opacity: 1; transform: translateX(0); }
}
.audit-row .sm-dot--ok { background: var(--accent-green); }
.audit-row .sm-dot--warn { background: #f59e0b; }
.audit-row .sm-dot--err  { background: var(--accent-red); }

/* Responsive */
@media (max-width: 768px) {
  .alt-report-grid { grid-template-columns: 1fr; }
  .alt-clients-grid { grid-template-columns: 1fr; }
  .alt-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ════════════════════════════════════════════════════════════════════
   FINAL POLISH — accessibility, back-to-top, brand glyph, form success,
   focus rings, print stylesheet
═══════════════════════════════════════════════════════════════════════ */

/* Inline AiX mark in the nav brand */
.brand-glyph {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}
.brand-glyph svg {
  transition: transform .35s cubic-bezier(0.16, 1.2, 0.3, 1);
}
.brand:hover .brand-glyph svg {
  transform: rotate(-6deg) scale(1.06);
}

/* Hide the AIX·2026 chip on narrow viewports — the glyph carries the brand */
@media (max-width: 700px) {
  .brand-chip { display: none; }
  .brand-mark { display: none; }
}

/* Contact form success state */
.contact-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #d1fae5;
  animation: contact-success-in .55s cubic-bezier(0.16, 1.2, 0.3, 1);
  font-size: 0.92rem;
}
@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-success[hidden] { display: none; }
.contact-success-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}
.contact-success strong { color: white; margin-right: 4px; font-weight: 800; }

/* Form invalid states (light tinge — not aggressive) */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.45);
}

/* Back-to-top floating button */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 30, 0.95));
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(0.16, 1.2, 0.3, 1), background .2s ease, color .2s ease;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.55), 0 0 24px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(20px);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: white;
  transform: translateY(-4px) scale(1.06);
}

/* Don't collide with the AiX thought ticker on the bottom-left */
@media (max-width: 640px) {
  .back-to-top { bottom: 84px; right: 16px; width: 40px; height: 40px; }
}

/* ── Accessibility: visible focus rings on EVERY interactive element ── */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.cta-btn:focus-visible,
.lang-btn:focus-visible,
.demo-page-btn:focus-visible,
.demo-scenario-btn:focus-visible,
.demo-btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 0 0 6px rgba(56, 189, 248, 0.6);
}

/* ── Print stylesheet: keep the page readable when printed ── */
@media print {
  body {
    background: white !important;
    color: #0f172a !important;
  }
  .ambient-bg,
  .ambient-neural,
  .ambient-glyphs,
  .ambient-scanline,
  .hero-marquee,
  .hero-spotlight,
  .aix-thought,
  .back-to-top,
  .demo-controls,
  .demo-stage,
  .lang-toggle,
  .nav-toggle,
  .hero-scroll,
  .video-section,
  .cta-glow,
  .cta-shine,
  .cta-play-pulse,
  .device-ring,
  .floating,
  .device-glow,
  .device-award,
  .ai-chat,
  .testi-carousel,
  .demo-toast-host,
  .demo-badge {
    display: none !important;
  }
  .site-nav { position: static; box-shadow: none; }
  .hero { padding: 30px 0; }
  .hero-title,
  .hero-word > span,
  .hero-word--grad > span,
  .hero-word--dot > span {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .section-head h2 .grad,
  .grad {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: none !important;
  }
  .feature-card,
  .hw-card,
  .industry-card,
  .price-card,
  .pillar,
  .faq-item,
  .cmp-card,
  .cmp-extra,
  .step-card,
  .tech-card {
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    page-break-inside: avoid;
  }
  .feature-card p,
  .section-head p,
  .cmp-bullets li {
    color: #475569 !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  a { color: #2563eb !important; text-decoration: underline; }
  .cta-btn { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   INDUSTRIES
═══════════════════════════════════════════════════════════════════════ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.industry-card {
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.10), var(--surface));
}
.industry-emoji {
  display: inline-block;
  font-size: 2.6rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}
.industry-card h4 { font-size: 1.04rem; margin: 0 0 6px; }
.industry-card p { font-size: 0.86rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   TECH STACK
═══════════════════════════════════════════════════════════════════════ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.tech-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease;
}
.tech-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tech-card > span {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--grad-cyan);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tech-card b { font-size: 0.88rem; font-weight: 700; color: var(--text); display: block; }
.tech-card small { font-size: 0.7rem; color: var(--text-dim); display: block; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════════════════ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card--featured {
  background:
    radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.15), transparent 50%),
    var(--surface);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.15);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand);
  color: white;
  font-size: 0.7rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.price-tier {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.price {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.price-amount { font-size: 0.92rem; color: var(--text-muted); font-weight: 600; }
.price-currency {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.price-features { display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 0.9rem; color: var(--text-muted); }
.price-features li::first-letter { color: var(--accent-green); font-weight: 800; }

/* ════════════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 16px; }
.about-lead { font-size: 1.04rem; color: var(--text); margin-bottom: 14px; }
.about-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ec4899, #f43f5e);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: white;
}
.author-name { font-weight: 800; color: var(--text); }
.author-role { font-size: 0.78rem; color: var(--text-muted); }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pillar {
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pillar h4 { font-size: 0.94rem; margin: 0 0 6px; color: var(--text); }
.pillar p { font-size: 0.82rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   DOWNLOAD CARD
═══════════════════════════════════════════════════════════════════════ */
.download-card {
  position: relative;
  padding: 60px 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.18), transparent 50%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(8, 14, 30, 0.92));
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}
.download-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 12px 0 14px;
}
.download-card p { font-size: 1.04rem; margin-bottom: 24px; }
.download-glow {
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18), rgba(56, 189, 248, 0));
  filter: blur(60px);
  animation: glow-rotate 18s linear infinite;
  z-index: 0;
}
@keyframes glow-rotate { to { transform: rotate(360deg); } }
.download-content { position: relative; z-index: 1; }
.download-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-bottom: 26px;
}
.download-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.download-checks {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
}
.download-checks li {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.download-checks li::first-letter { color: var(--accent-green); font-weight: 800; }

/* ════════════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { margin-top: 24px; display: grid; gap: 12px; }
.contact-list li {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: rgba(8, 14, 30, 0.7);
}
.field textarea { resize: vertical; min-height: 80px; }
.contact-disclaimer {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
  margin: 4px 0 0;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding: 70px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand { margin-bottom: 14px; }
.footer-desc { font-size: 0.88rem; max-width: 360px; }
.footer-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; }
.footer-grid h5 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary); margin-bottom: 16px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid ul a { font-size: 0.88rem; color: var(--text-muted); }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; }

/* ════════════════════════════════════════════════════════════════════
   SCROLL REVEALS
═══════════════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 6px;
    padding: 18px 24px;
    background: rgba(2, 5, 13, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; max-width: 520px; margin: 0 auto; }
  .device-frame { transform: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin: 0 auto 44px; }
  .section-head h2 { margin: 10px 0 12px; }
  .section-head p { font-size: 0.98rem; }
  .feature-grid, .price-grid { gap: 16px; }
  .feature-card { padding: 24px 20px; }
  .price-card { padding: 30px 22px; gap: 16px; }
  .price-currency { font-size: 1.84rem; }
  .download-card { padding: 48px 28px; }
  .download-card p { font-size: 0.98rem; margin-bottom: 20px; }
  .contact-form { padding: 22px; gap: 12px; }
  .demo-controls { padding: 8px 10px; gap: 10px; border-radius: 12px; }
  .demo-scenario-btn { padding: 6px 9px; font-size: 0.72rem; }
  .demo-btn { padding: 6px 9px; font-size: 0.72rem; }
  section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .nav-row { height: 56px; gap: 10px; }
  .brand-chip { display: none; }
  .brand-glyph svg { width: 28px; height: 28px; }
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 6px 8px; font-size: 0.62rem; }
  .nav-links.is-open { top: 60px; padding: 14px 16px; }
  .hero { padding: 34px 0 52px; }
  .hero-grid { gap: 24px; }
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.1rem); margin: 10px 0 14px; line-height: 1.08; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 18px; }
  .hero-tags { gap: 6px; margin-bottom: 20px; }
  .tag { padding: 5px 9px; gap: 6px; font-size: 0.68rem; }
  .hero-ctas { gap: 8px; margin-bottom: 24px; }
  .hero-ctas .cta-btn { width: 100%; justify-content: center; padding: 11px 14px; font-size: 0.86rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-value { font-size: 1.32rem; }
  .stat-label { font-size: 0.64rem; letter-spacing: 0.1em; }
  .section-head { margin: 0 auto 30px; }
  .section-head h2 { font-size: clamp(1.5rem, 7.2vw, 1.95rem); }
  .section-head p { font-size: 0.9rem; }
  .feature-card { padding: 20px 16px; border-radius: 14px; }
  .feature-icon { width: 46px; height: 46px; margin-bottom: 14px; font-size: 1.35rem; }
  .feature-card h3 { font-size: 1rem; }
  .feature-card p { font-size: 0.86rem; }
  .video-frame, .demo-stage { border-radius: 16px; }
  .demo-stage { padding: 10px; gap: 8px; }
  .demo-topbar { padding: 4px 6px; }
  .demo-grid { gap: 5px; }
  .price-card { padding: 24px 16px; gap: 12px; border-radius: 16px; }
  .price-currency { font-size: 1.6rem; }
  .price-features li { font-size: 0.84rem; }
  .contact-grid { gap: 22px; }
  .contact-list li { padding: 10px 12px; font-size: 0.86rem; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .field label { font-size: 0.68rem; }
  .field input, .field select, .field textarea { font-size: 0.86rem; padding: 9px 11px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-grid h5 { margin-bottom: 10px; }
  .footer-grid ul { gap: 7px; }
  .footer-grid ul a { font-size: 0.84rem; }
  .download-card { padding: 40px 22px; }
  .download-buttons .cta-btn { width: 100%; }
  .site-footer { padding: 52px 0 24px; margin-top: 40px; }
  .floating { display: none; }
  section { padding: 46px 0; }
}

@media (max-width: 430px) {
  .container { padding: 0 12px; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .lang-btn { padding: 5px 7px; font-size: 0.6rem; }
  .demo-cart { max-height: 210px; }
  .demo-receipt { display: none; }
  .price-badge { font-size: 0.62rem; padding: 4px 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — respect prefers-reduced-motion
═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
