/* ============================================================
   BayitPro Landing — 2026 redesign
   One continuous dark canvas, glass surfaces, aurora glows,
   gradient accents. RTL-first (logical properties throughout).
   ============================================================ */

:root {
  /* Canvas */
  --bg: #05070f;
  --bg-2: #070b16;

  /* Glass surfaces */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Type */
  --text: #f4f6fb;
  --text-2: #a7b0c4;
  --text-dim: #69728a;

  /* Brand accents */
  --indigo: #6366f1;
  --indigo-2: #818cf8;
  --indigo-3: #a5b4fc;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --amber: #f59e0b;

  /* Semantic */
  --danger: #f87171;
  --danger-2: #ef4444;
  --warning: #fbbf24;
  --success: #34d399;
  --sky: #38bdf8;
  --wa-green: #25d366;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #22d3ee 130%);
  --grad-cta: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  --grad-burn: linear-gradient(120deg, #f87171 0%, #f59e0b 90%);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-cta: 0 12px 32px rgba(99, 102, 241, 0.35);

  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

::selection {
  background: rgba(99, 102, 241, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   Atmosphere — fixed aurora glow + film grain
   ============================================================ */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(99, 102, 241, 0.17), transparent 62%),
    radial-gradient(720px 540px at 4% 14%, rgba(139, 92, 246, 0.11), transparent 60%),
    radial-gradient(1000px 720px at 50% 116%, rgba(34, 211, 238, 0.08), transparent 62%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Scroll progress — CSS scroll-driven animation (no JS) */
.scroll-progress { display: none; }

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 2px;
    z-index: 230;
    pointer-events: none;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--indigo));
    transform-origin: 100% 50%;
    transform: scaleX(0);
    animation: scrollGrow linear both;
    animation-timeline: scroll(root);
  }

  @keyframes scrollGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ============================================================
   Header — floating glass pill
   ============================================================ */
.site-header {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
  min-height: 62px;
  padding-block: 8px;
  padding-inline: 18px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 12, 24, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 22, 0.82);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.brand-word {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  direction: ltr;
}

.brand-word b {
  font-weight: 900;
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

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

/* ============================================================
   Buttons
   ============================================================ */
.primary-link,
.secondary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s ease;
}

.primary-link {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-link::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start .6s ease;
}

.primary-link:hover::after { inset-inline-start: 130%; }

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-link:active { transform: translateY(0); }

.primary-link :is(i, svg) { width: 18px; height: 18px; }

.secondary-link {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.secondary-link:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.ghost-link {
  color: var(--text-2);
  background: transparent;
  padding-inline: 16px;
}

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

.large {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 1.02rem;
  font-weight: 800;
}

.pulse-cta { animation: ctaGlow 3.2s ease-in-out infinite; }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  50% { box-shadow: 0 14px 44px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  overflow: clip;
  padding: clamp(140px, 16vw, 190px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 110px);
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.4), transparent 70%);
  top: -200px;
  inset-inline-start: -140px;
  animation: blobFloat 18s ease-in-out infinite;
}

.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.16), transparent 70%);
  bottom: -180px;
  inset-inline-end: 4%;
  animation: blobFloat 24s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -28px) scale(1.06); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 78%);
}

.hero-horizon {
  position: absolute;
  bottom: 0;
  inset-inline: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), transparent);
  box-shadow: 0 0 24px 2px rgba(99, 102, 241, 0.35);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero-content { max-width: 640px; }

/* Eyebrows */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--indigo-3);
  font-size: 0.84rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.eyebrow-live {
  padding: 7px 16px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(8px);
}

.eyebrow-live::before { display: none; }

.eyebrow-warn {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.09);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo-2);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  animation: livePulse 1.8s ease-in-out infinite;
}

.live-dot.warn-dot {
  background: var(--danger-2);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
  animation: warnPulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 0 9px rgba(99, 102, 241, 0.04); }
}

@keyframes warnPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.03); }
}

/* Headings */
h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5.1vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

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

.grad-warn {
  background: var(--grad-burn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 22px rgba(248, 113, 113, 0.35));
}

.hero-subtitle {
  margin-bottom: 30px;
  max-width: 56ch;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.hero-subtitle strong { color: var(--text); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 600;
}

.trust-row :is(i, svg) { width: 15px; height: 15px; color: #fda4af; }

/* ============================================================
   Money-leak widget — dark glass, red glow
   ============================================================ */
.hero-visual { position: relative; }

.money-leak {
  position: relative;
  padding: 26px 26px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(22, 27, 45, 0.92), rgba(10, 13, 26, 0.96)) padding-box,
    linear-gradient(165deg, rgba(248, 113, 113, 0.45), rgba(255, 255, 255, 0.07) 38%, rgba(129, 140, 248, 0.3)) border-box;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(239, 68, 68, 0.07);
}

.money-leak::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 18%;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(248, 113, 113, 0.18), transparent);
  filter: blur(12px);
  pointer-events: none;
}

.leak-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.leak-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.leak-brand strong { color: var(--text); font-weight: 700; }

.leak-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger-2);
  animation: warnPulse 1.4s ease-in-out infinite;
}

.leak-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.leak-status.urgent {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger-2);
  animation: livePulse 1.4s ease-in-out infinite;
}

.leak-counter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 20px;
}

.leak-currency {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fca5a5;
}

.leak-amount {
  font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-burn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(248, 113, 113, 0.3));
}

.leak-rate {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  color: var(--text-2);
  font-size: 0.86rem;
}

.leak-rate :is(i, svg) { width: 15px; height: 15px; color: var(--danger); }
.leak-rate strong { color: #fca5a5; font-variant-numeric: tabular-nums; }

.leak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.leak-card {
  --c: var(--danger);
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}

.leak-card.calls { --c: #f87171; }
.leak-card.employees { --c: #fbbf24; }
.leak-card.inventory { --c: #a78bfa; }
.leak-card.suppliers { --c: #38bdf8; }

.leak-card.leak-pulse-now {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 7%, transparent);
  transform: scale(1.015);
}

.leak-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.leak-card-head :is(i, svg) {
  width: 15px;
  height: 15px;
  color: var(--c);
}

.leak-card-amount {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.leak-card-detail {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 0.74rem;
}

.leak-saved {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.07);
}

.leak-saved::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(52, 211, 153, 0.12), transparent);
  transform: skewX(-16deg);
  animation: savedSweep 4.5s ease-in-out infinite;
}

@keyframes savedSweep {
  0%, 55% { inset-inline-start: -60%; }
  85%, 100% { inset-inline-start: 120%; }
}

.leak-saved :is(i, svg) {
  width: 26px;
  height: 26px;
  color: var(--success);
  flex: 0 0 auto;
}

.leak-saved strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
}

.leak-saved-pct { color: var(--success); }

.leak-saved span:not(.leak-saved-pct) {
  color: var(--text-2);
  font-size: 0.8rem;
}

/* Floating pills around the widget */
.floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(13, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  animation: floatY 6s ease-in-out infinite;
}

.floating-pill :is(i, svg) { width: 16px; height: 16px; }

.pill-whatsapp {
  top: -16px;
  inset-inline-start: -14px;
  animation-delay: 0s;
}
.pill-whatsapp :is(i, svg) { color: var(--wa-green); }

.pill-employees {
  top: 32%;
  inset-inline-end: -22px;
  animation-delay: 1.4s;
}
.pill-employees :is(i, svg) { color: var(--indigo-2); }

.pill-inventory {
  bottom: 26%;
  inset-inline-start: -26px;
  animation-delay: 2.6s;
}
.pill-inventory :is(i, svg) { color: var(--violet); }

.pill-suppliers {
  bottom: -16px;
  inset-inline-end: 34px;
  animation-delay: 3.8s;
}
.pill-suppliers :is(i, svg) { color: var(--sky); }

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

/* ============================================================
   Ticker — marquee strip
   ============================================================ */
.ticker {
  direction: ltr;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  padding-inline-end: 44px;
  animation: tickerMove 36s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-item :is(i, svg) {
  width: 15px;
  height: 15px;
  color: var(--indigo-2);
}

/* ============================================================
   Sections — shared
   ============================================================ */
main > section {
  position: relative;
  padding: clamp(76px, 9vw, 130px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 900;
  text-wrap: balance;
}

.center-eyebrow { margin-inline: auto; }

.center-h2 { text-align: center; }

.center-sub {
  max-width: 60ch;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
}

/* Spotlight — cursor-tracking glow (class added by JS) */
.spot { position: relative; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, 0.09), transparent 65%);
}

.spot:hover::after { opacity: 1; }

/* ============================================================
   Pain section
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split-section h2 { position: sticky; top: 120px; }

.pain-list {
  display: grid;
  gap: 14px;
}

.pain-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

.pain-list article:hover {
  border-color: rgba(248, 113, 113, 0.3);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.pain-list article :is(i, svg) {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  color: #fda4af;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.pain-list h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
}

.pain-list p {
  grid-column: 2;
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

/* ============================================================
   Ops section — bento grid
   ============================================================ */
.ops-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.ops-panel {
  container-type: inline-size;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 20px 22px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.ops-panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ops-employees { grid-column: span 7; }
.ops-inventory { grid-column: span 5; }
.ops-suppliers { grid-column: span 5; }
.ops-finance { grid-column: span 7; }

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ops-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}

.ops-panel-title :is(i, svg) {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  color: var(--indigo-3);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.ops-panel-stat {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--indigo-3);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.ops-panel-stat.warn {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.ops-panel-stat.up {
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.ops-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ops-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(140deg, var(--av, var(--indigo)), color-mix(in srgb, var(--av, var(--indigo)) 60%, #000));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--av, var(--indigo)) 35%, transparent);
}

.ops-row-body {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.ops-row-body strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.ops-row-body span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.ops-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ops-status.active {
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.ops-status.pause {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.ops-status.calm {
  color: var(--indigo-3);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.ops-status.urgent {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ops-supplier-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.ops-supplier-icon :is(i, svg) { width: 16px; height: 16px; }

/* Inventory bars — fill div sits on a full-width pseudo track */
.ops-inv-row { flex-wrap: wrap; }

.ops-inv-bar {
  position: relative;
  flex: 0 0 132px;
}

.ops-inv-bar::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.ops-inv-fill {
  position: relative;
  height: 7px;
  border-radius: 99px;
}

.ops-inv-fill.low { background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.ops-inv-fill.mid { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
.ops-inv-fill.ok { background: linear-gradient(90deg, #059669, #34d399); box-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }

.ops-inv-bar span {
  display: block;
  margin-top: 6px;
  text-align: end;
  direction: ltr; /* keep "4 / 24" reading low/high; bidi would flip it */
  color: var(--text-dim);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* Finance panel */
.ops-finance-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px 26px;
  align-items: end;
}

/* Stack the chart under the number when the panel itself is narrow */
@container (max-width: 460px) {
  .ops-finance-body { grid-template-columns: 1fr; }
  .ops-finance-num { order: -1; }
}

.ops-finance-num strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ops-finance-num span {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.ops-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 92px;
}

.ops-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}

.ops-bar span {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #818cf8, rgba(99, 102, 241, 0.25));
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.revealed .ops-bar span { transform: scaleY(1); }

.revealed .ops-bar:nth-child(2) span { transition-delay: .08s; }
.revealed .ops-bar:nth-child(3) span { transition-delay: .16s; }
.revealed .ops-bar:nth-child(4) span { transition-delay: .24s; }
.revealed .ops-bar:nth-child(5) span { transition-delay: .32s; }

.ops-bar small {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.ops-finance-foot {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.84rem;
}

.ops-finance-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ops-finance-foot :is(i, svg) { width: 15px; height: 15px; }
.ops-finance-foot span:first-child :is(i, svg) { color: var(--success); }
.ops-finance-foot span:last-child :is(i, svg) { color: var(--danger); }

.ops-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 32px auto 0;
  padding: 12px 22px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.07);
  color: var(--text-2);
  font-size: 0.92rem;
  text-align: center;
}

.ops-foot :is(i, svg) {
  width: 17px;
  height: 17px;
  color: var(--violet);
  flex: 0 0 auto;
}

/* ============================================================
   Before / After
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
  align-items: stretch;
}

.ba-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chaos side — WhatsApp dark mode vibes */
.ba-chaos {
  background: linear-gradient(180deg, rgba(17, 27, 33, 0.9), rgba(11, 20, 26, 0.95));
  border-color: rgba(37, 211, 102, 0.16);
}

.ba-order {
  background: linear-gradient(180deg, rgba(22, 27, 45, 0.9), rgba(12, 16, 32, 0.95));
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.08);
}

.ba-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.ba-card-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.ba-tag {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.ba-tag.chaos {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ba-tag.order {
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.ba-unread {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--danger-2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.ba-stat-mini {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo-3);
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.wa-thread {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 16px 18px 26px;
  flex: 1;
}

.wa-msg {
  position: relative;
  width: fit-content;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 12px;
  border-start-start-radius: 4px;
  background: #1f2c33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.wa-name {
  display: block;
  margin-bottom: 1px;
  color: #53bdeb;
  font-size: 0.74rem;
  font-weight: 700;
}

.wa-msg p {
  margin: 0;
  color: #e9edef;
}

.wa-time {
  display: block;
  margin-top: 2px;
  color: rgba(233, 237, 239, 0.45);
  font-size: 0.66rem;
  text-align: end;
}

.wa-voice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-voice :is(i, svg) {
  width: 17px;
  height: 17px;
  color: var(--wa-green);
}

.wa-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wa-wave span {
  width: 3px;
  border-radius: 2px;
  background: rgba(37, 211, 102, 0.75);
  animation: wave 1.2s ease-in-out infinite;
}

.wa-wave span:nth-child(1) { height: 7px; animation-delay: 0s; }
.wa-wave span:nth-child(2) { height: 13px; animation-delay: .15s; }
.wa-wave span:nth-child(3) { height: 17px; animation-delay: .3s; }
.wa-wave span:nth-child(4) { height: 10px; animation-delay: .45s; }
.wa-wave span:nth-child(5) { height: 15px; animation-delay: .6s; }
.wa-wave span:nth-child(6) { height: 8px; animation-delay: .75s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

.wa-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(11, 20, 26, 0.95));
  pointer-events: none;
}

.ba-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ba-arrow :is(i, svg) {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  animation: arrowNudge 2.4s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.ba-arrow span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ba-tickets {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  flex: 1;
  align-content: start;
}

.ba-ticket {
  --tc: var(--indigo-2);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-inline-start: 3px solid var(--tc);
}

.ba-ticket.critical { --tc: var(--danger-2); }
.ba-ticket.warning { --tc: var(--warning); }
.ba-ticket.calm { --tc: var(--success); }

.ba-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ba-ticket-row strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.ba-ticket-row em {
  font-style: normal;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
}

.ba-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.ba-ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ba-ticket-meta :is(i, svg) { width: 13px; height: 13px; }

/* ============================================================
   Solution + metric strip
   ============================================================ */
.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.solution-layout > div:first-child p {
  color: var(--text-2);
  font-size: 1.03rem;
  line-height: 1.8;
}

.metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-strip > div {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}

.metric-strip > div:hover {
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-3px);
}

.metric-strip strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-strip span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ============================================================
   Steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.steps-grid article {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}

.steps-grid article:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.steps-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .3s ease;
}

.steps-grid article:hover::before { opacity: 1; }

.steps-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(129, 140, 248, 0.4);
  font-variant-numeric: tabular-nums;
}

.steps-grid h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.steps-grid p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

/* ============================================================
   Capabilities
   ============================================================ */
.capabilities-section h2 { max-width: 30ch; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.capability-grid article {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}

.capability-grid article:hover {
  border-color: rgba(129, 140, 248, 0.4);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.capability-grid :is(i, svg) {
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--indigo-3);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
  transition: color .3s ease, background .3s ease, box-shadow .3s ease;
}

.capability-grid article:hover :is(i, svg) {
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}

.capability-grid h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 800;
}

.capability-grid p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

/* ============================================================
   Demo CTA panel
   ============================================================ */
.demo-section { padding-block: clamp(20px, 4vw, 40px); }

.demo-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(165deg, rgba(23, 28, 50, 0.92), rgba(10, 13, 28, 0.96)) padding-box,
    linear-gradient(120deg, rgba(99, 102, 241, 0.55), rgba(255, 255, 255, 0.06) 45%, rgba(34, 211, 238, 0.4)) border-box;
  overflow: hidden;
}

.demo-layout::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto;
  height: 200px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.25), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.demo-layout > div { max-width: 62ch; }

.demo-layout h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.demo-layout p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
}

.demo-layout .primary-link { flex: 0 0 auto; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-layout > div > p {
  color: var(--text-2);
  font-size: 1.02rem;
}

.contact-notes {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-notes span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.contact-notes :is(i, svg) {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  color: var(--indigo-3);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  flex: 0 0 auto;
}

.contact-notes a {
  color: var(--indigo-3);
  font-weight: 700;
}

.contact-notes a:hover { text-decoration: underline; }

.lead-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(170deg, rgba(22, 27, 45, 0.9), rgba(11, 14, 28, 0.95)) padding-box,
    linear-gradient(165deg, rgba(99, 102, 241, 0.45), rgba(255, 255, 255, 0.07) 40%, rgba(167, 139, 250, 0.3)) border-box;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.lead-form input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lead-form input::placeholder { color: rgba(167, 176, 196, 0.45); }

.lead-form input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  background: rgba(99, 102, 241, 0.07);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.lead-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #131a30 inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.form-button {
  margin-top: 4px;
  width: 100%;
  border: none;
  cursor: pointer;
  min-height: 52px;
  font-family: var(--font);
  font-size: 1rem;
}

.form-or {
  margin: 2px 0 0;
  text-align: center;
  color: var(--text-2);
  font-size: 0.88rem;
}

.form-or a {
  color: var(--indigo-3);
  font-weight: 800;
}

.form-or a:hover { text-decoration: underline; }

.form-success {
  display: none;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  font-weight: 700;
  text-align: center;
}

.lead-form.is-sent label,
.lead-form.is-sent .form-button,
.lead-form.is-sent .form-or { display: none; }

.lead-form.is-sent .form-success { display: block; }

/* ============================================================
   Floating CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 16px 44px rgba(99, 102, 241, 0.45);
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(76px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta :is(i, svg) { width: 18px; height: 18px; }

.floating-cta:hover { transform: translateY(-3px); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(20px, 4vw, 48px);
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 64px) 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.6), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  width: min(1140px, 100%);
  margin: 0 auto 36px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 40ch;
  color: var(--text-2);
  font-size: 0.92rem;
}

.footer-nav {
  display: grid;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 600;
}

.footer-nav a { width: fit-content; transition: color .2s ease; }
.footer-nav a:hover { color: var(--text); }

.footer-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.84rem;
}

.footer-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 700;
}

.footer-pulse .live-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

.capability-grid article.reveal:nth-child(2),
.steps-grid article.reveal:nth-child(2),
.pain-list article.reveal:nth-child(2),
.metric-strip > div.reveal:nth-child(2) { transition-delay: .07s; }

.capability-grid article.reveal:nth-child(3),
.steps-grid article.reveal:nth-child(3),
.pain-list article.reveal:nth-child(3),
.metric-strip > div.reveal:nth-child(3) { transition-delay: .14s; }

.capability-grid article.reveal:nth-child(4),
.metric-strip > div.reveal:nth-child(4) { transition-delay: .21s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .ops-employees,
  .ops-inventory,
  .ops-suppliers,
  .ops-finance { grid-column: span 6; }

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

@media (max-width: 980px) {
  .site-nav { display: none; }

  .hero-section { padding-top: 120px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-content { max-width: 100%; }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
  }

  .split-section { grid-template-columns: 1fr; }
  .split-section h2 { position: static; }

  .solution-layout { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .demo-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .ba-grid { grid-template-columns: 1fr; }

  .ba-arrow {
    flex-direction: row;
    justify-content: center;
    padding: 4px 0;
  }

  .ba-arrow :is(i, svg) {
    transform: rotate(-90deg);
    animation: none;
  }
}

@media (max-width: 700px) {
  .ops-employees,
  .ops-inventory,
  .ops-suppliers,
  .ops-finance { grid-column: span 12; }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    gap: 10px;
    min-height: 56px;
  }

  .ghost-link { display: none; }

  .brand-word { font-size: 1.05rem; }

  .hero-section { padding-top: 104px; }

  h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }

  .hero-actions .secondary-link { width: 100%; }
  .hero-actions .primary-link { width: 100%; }

  .floating-pill { display: none; }

  .money-leak { padding: 20px 16px 16px; }

  .leak-grid { grid-template-columns: 1fr; }

  .ticker-track { gap: 28px; padding-inline-end: 28px; }

  .steps-grid { grid-template-columns: 1fr; }

  .capability-grid { grid-template-columns: 1fr; }

  .metric-strip { grid-template-columns: 1fr 1fr; }

  .ops-finance-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-cta {
    bottom: 16px;
    inset-inline-end: 16px;
    min-height: 48px;
    padding: 0 20px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track { animation: none; }

  .ops-bar span { transform: scaleY(1); }
}
