/* ==========================================================================
   SocialAI Flagship Homepage Stylesheet (2026)
   - Self-hosted variable fonts (Sora, Plus Jakarta Sans, JetBrains Mono)
   - Zero inline style="" dependency (100% Strict CSP 'self' compliant)
   - Explicit Light Mode & Dark Mode contrast safety
   ========================================================================== */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-var.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
}

/* ---------- Scoped Theme Tokens ---------- */
.sa-home {
  --sa-display: "Sora", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --sa-body: "Plus Jakarta Sans", "Jost", ui-sans-serif, system-ui, sans-serif;
  --sa-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --sa-violet: #7f56d9;
  --sa-indigo: #4f46e5;
  --sa-orange: #fe6401;
  --sa-orange-soft: #ff8a3d;
  --sa-cyan: #38bdf8;
  --sa-green: #10b981;

  --sa-stage-bg: #080b13;
  --sa-stage-panel: #101522;
  --sa-stage-card: #151b2b;
  --sa-stage-line: rgba(255, 255, 255, 0.11);

  --sa-surface: #ffffff;
  --sa-surface-alt: #f7f8fc;
  --sa-surface-warm: #f6f3ee;
  --sa-card-surface: #ffffff;
  --sa-ink: #0f172a;
  --sa-ink-muted: #475569;
  --sa-ink-soft: #64748b;
  --sa-line: #e2e8f0;
  --sa-shadow: 0 20px 50px -18px rgba(15, 23, 42, 0.1);
  --sa-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--sa-body);
  position: relative;
}

html,
body {
  height: auto !important;
  min-height: 100%;
  scroll-behavior: auto !important;
}

@media (max-width: 991.98px) {
  .main,
  #main {
    overflow-x: clip !important;
  }
}

[data-bs-theme="dark"] .sa-home {
  --sa-surface: #0b0e17;
  --sa-surface-alt: #101522;
  --sa-surface-warm: #121726;
  --sa-card-surface: #161c2d;
  --sa-ink: #f8fafc;
  --sa-ink-muted: #cbd5e1;
  --sa-ink-soft: #94a3b8;
  --sa-line: rgba(255, 255, 255, 0.11);
  --sa-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.sa-home h1,
.sa-home h2,
.sa-home h3,
.sa-home h4 {
  font-family: var(--sa-display);
  letter-spacing: -0.025em;
}

.sa-home p {
  font-family: var(--sa-body);
}

/* ---------- Header Protection Over Dark Hero Stage (Home Only) ---------- */
.header.header-home-dark:not(.sticky) .header-logo,
body:has(.sa-home) .header:not(.sticky) .header-logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 16px;
  border-radius: 9999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  max-width: 175px;
}

.header.header-home-dark.sticky .header-logo,
body:has(.sa-home) .header.sticky .header-logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 14px;
  border-radius: 9999px;
  max-width: 165px;
}

.header.header-home-dark:not(.sticky) .sidebar .sidebar-body,
body:has(.sa-home) .header:not(.sticky) .sidebar .sidebar-body {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.header.header-home-dark:not(.sticky) .nav-right .i-btn.btn--dark,
body:has(.sa-home) .header:not(.sticky) .nav-right .i-btn.btn--dark {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 767.98px) {
  .header.header-home-dark:not(.sticky) .nav-right,
  body:has(.sa-home) .header:not(.sticky) .nav-right {
    background: rgba(255, 255, 255, 0.94);
    padding: 6px 10px;
    border-radius: 9999px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  }
  [data-bs-theme="dark"] .header.header-home-dark:not(.sticky) .nav-right,
  [data-bs-theme="dark"] body:has(.sa-home) .header:not(.sticky) .nav-right {
    background: rgba(22, 28, 45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* ---------- Top Scroll Progress Bar & Cursor Ambient Glow ---------- */
.sa-pbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999;
  background: linear-gradient(90deg, var(--sa-orange), var(--sa-violet), var(--sa-cyan));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.sa-spotlight {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 86, 217, 0.08), transparent 64%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

@media (hover: none), (pointer: coarse) {
  .sa-spotlight {
    display: none !important;
  }
}

/* ---------- Shared Eyebrows, Section Heads & Buttons ---------- */
.sa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sa-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(127, 86, 217, 0.1);
  color: var(--sa-violet);
  border: 1px solid rgba(127, 86, 217, 0.22);
}

[data-bs-theme="dark"] .sa-eyebrow {
  background: rgba(127, 86, 217, 0.2);
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.3);
}

.sa-eyebrow--dark {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}

.sa-sec-head {
  max-width: 760px;
}

.sa-sec-head--center {
  text-align: center;
  margin-inline: auto;
}

.sa-sec-head h2 {
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  font-weight: 800;
  line-height: 1.09;
  color: var(--sa-ink);
  margin-top: 16px;
}

.sa-sec-head--dark h2 {
  color: #f8fafc;
}

.sa-sec-head p {
  color: var(--sa-ink-muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.68;
  margin-top: 14px;
}

.sa-sec-head--dark p {
  color: #cbd5e1;
}

.sa-btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sa-orange) 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--sa-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 34px -10px rgba(254, 100, 1, 0.65);
  transition: transform 0.28s var(--sa-ease), box-shadow 0.28s var(--sa-ease);
  white-space: nowrap;
}

.sa-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform 0.65s var(--sa-ease);
}

.sa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(254, 100, 1, 0.8);
  color: #ffffff !important;
}

.sa-btn-primary:hover::before {
  transform: translateX(110%);
}

.sa-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  font-family: var(--sa-display);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.sa-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==========================================================================
   SECTION 1: DARK 3D HERO STAGE + FLOATING COMMAND CONSOLE
   ========================================================================== */
.sa-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, #151b2f 0%, var(--sa-stage-bg) 68%);
  color: #f8fafc;
  padding-top: clamp(120px, 14vh, 148px);
  padding-bottom: 84px;
  overflow: hidden;
}

.sa-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 28%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 25%, #000 28%, transparent 74%);
}

.sa-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.sa-glow--orange {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 100, 1, 0.34), transparent 66%);
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
}

.sa-glow--violet {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(127, 86, 217, 0.34), transparent 66%);
  top: 120px;
  right: -140px;
}

.sa-glow--cyan {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 66%);
  bottom: -80px;
  left: -120px;
}

.sa-hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.sa-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 21, 34, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: #cbd5e1;
}

.sa-pill b {
  font-family: var(--sa-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--sa-orange), #fb923c);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 11px;
}

.sa-hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.7rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-top: 22px;
  margin-bottom: 18px;
}

.sa-hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.sa-hero h1 .w {
  display: inline-block;
}

.sa-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--sa-orange) 12%, #ffb366 54%, #a78bfa 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sa-hero-lead {
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  color: #cbd5e1 !important;
  max-width: 710px;
  margin-inline: auto;
}

.sa-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.sa-video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.sa-video-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.sa-video-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(254, 100, 1, 0.22);
  color: var(--sa-orange-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.sa-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13px;
  color: #94a3b8;
}

.sa-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sa-trust-strip i {
  color: var(--sa-green);
}

/* ---------- Hero 3D Stage & Floating Platform Ecosystem ---------- */
.sa-stage {
  position: relative;
  height: 550px;
  margin-top: 46px;
  z-index: 2;
}

.sa-tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sa-tile {
  position: absolute;
  width: var(--tile-size, 74px);
  height: var(--tile-size, 74px);
  border-radius: 22%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 13px;
  display: grid;
  place-items: center;
  will-change: transform;
  pointer-events: auto;
  transition: box-shadow 0.25s ease;
}

.sa-tile:hover {
  box-shadow: 0 26px 56px -14px rgba(127, 86, 217, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.sa-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Pure CSS tile positions (CSP-safe replacement for inline styles) */
.sa-tile--1 { --tile-size: 76px; left: 4%; top: 38px; }
.sa-tile--2 { --tile-size: 66px; left: 17%; top: 18px; }
.sa-tile--3 { --tile-size: 80px; left: 7%; top: 205px; }
.sa-tile--4 { --tile-size: 64px; left: 19%; top: 315px; }
.sa-tile--5 { --tile-size: 68px; left: 5%; top: 390px; }
.sa-tile--6 { --tile-size: 76px; right: 5%; top: 36px; }
.sa-tile--7 { --tile-size: 66px; right: 18%; top: 22px; }
.sa-tile--8 { --tile-size: 80px; right: 7%; top: 210px; }
.sa-tile--9 { --tile-size: 66px; right: 19%; top: 325px; }
.sa-tile--10 { --tile-size: 68px; right: 5%; top: 395px; }

/* Center Interactive Command Console Portal */
.sa-portal {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(440px, 92%);
  transform: translateX(-50%);
  z-index: 4;
  will-change: transform;
}

.sa-console {
  background: linear-gradient(180deg, #161c2e 0%, #0e1320 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 20px;
  box-shadow:
    0 36px 90px -24px rgba(127, 86, 217, 0.36),
    0 32px 84px -22px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sa-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--sa-mono);
  font-size: 11px;
  color: #94a3b8;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6ee7b7;
  font-weight: 600;
}

.sa-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sa-green);
  box-shadow: 0 0 12px var(--sa-green);
  animation: saPulse 1.8s ease-in-out infinite;
}

.sa-domain-tag {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  color: #e2e8f0;
}

.sa-console-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 86, 217, 0.24), rgba(254, 100, 1, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sa-console-stat-label {
  font-family: var(--sa-mono);
  font-size: 11px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sa-console-stat-num {
  font-family: var(--sa-display);
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-top: 2px;
}

.sa-ring-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 11, 19, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 11px 5px 7px;
  flex-shrink: 0;
}

.sa-ring-svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.sa-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.sa-ring-fill {
  fill: none;
  stroke: var(--sa-orange-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 69.12;
  stroke-dashoffset: 69.12;
  animation: saRingCycle 12s linear infinite;
}

.sa-ring-text {
  font-family: var(--sa-mono);
  font-size: 11px;
  color: #fde68a;
  font-weight: 600;
  white-space: nowrap;
}

.sa-console-rows {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.sa-c-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px 13px;
  max-width: 100%;
  overflow: hidden;
}

.sa-c-row-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 0%;
  min-width: 0;
}

.sa-c-row-left > div {
  flex: 1 1 0%;
  min-width: 0;
}

.sa-c-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(127, 86, 217, 0.22);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sa-c-ico--orange {
  background: rgba(254, 100, 1, 0.22);
  color: #fdba74;
}

.sa-c-ico--cyan {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.sa-c-ico--green {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.sa-c-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.sa-c-row-sub {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-c-tag {
  font-family: var(--sa-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Frosted Floating KPI Cards Around Center Console */
.sa-float-card {
  position: absolute;
  z-index: 5;
  background: rgba(16, 21, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  gap: 11px;
  will-change: transform;
  max-width: 248px;
}

.sa-float-card--1 { left: 10%; top: 105px; }
.sa-float-card--2 { right: 9%; top: 115px; }
.sa-float-card--3 { left: 11%; bottom: 42px; }
.sa-float-card--4 { right: 10%; bottom: 38px; }

.sa-fc-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.sa-fc-badge--orange {
  background: rgba(254, 100, 1, 0.2);
  color: #fdba74;
}

.sa-fc-badge--violet {
  background: rgba(127, 86, 217, 0.22);
  color: #c4b5fd;
}

.sa-fc-badge--cyan {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.sa-fc-title {
  font-family: var(--sa-display);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sa-fc-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 1199.98px) {
  .sa-float-card--1 { left: 3%; }
  .sa-float-card--2 { right: 3%; }
  .sa-float-card--3 { left: 3%; }
  .sa-float-card--4 { right: 3%; }
}

@media (max-width: 991.98px) {
  .sa-hero {
    padding-top: 102px;
    padding-bottom: 58px;
  }
  .sa-glow {
    filter: blur(42px);
    width: 280px;
    height: 280px;
  }
  .sa-pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(16, 21, 34, 0.92);
  }
  .sa-stage {
    height: auto;
    min-height: 0;
    margin-top: 28px;
    padding: 76px 0 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sa-tiles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }
  .sa-tile {
    --tile-size: 50px;
    position: absolute;
    display: grid !important;
    padding: 9px;
    border-radius: 15px;
    animation: saFloaty 4.2s ease-in-out infinite;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
  .sa-tile:nth-child(even) {
    animation-name: saFloatyAlt;
    animation-duration: 4.8s;
  }
  .sa-tile:nth-child(3n) {
    animation-delay: 0.45s;
  }
  /* Top floating wave (5 icons above console) */
  .sa-tile--1 { left: 4%; top: 8px; right: auto; bottom: auto; }
  .sa-tile--2 { left: 23%; top: -2px; right: auto; bottom: auto; }
  .sa-tile--3 { left: 50%; margin-left: -25px; top: 10px; right: auto; bottom: auto; }
  .sa-tile--4 { right: 23%; left: auto; top: -2px; bottom: auto; }
  .sa-tile--5 { right: 4%; left: auto; top: 8px; bottom: auto; }
  /* Bottom floating wave (5 icons below console) */
  .sa-tile--6 { left: 4%; right: auto; bottom: 8px; top: auto; }
  .sa-tile--7 { left: 23%; right: auto; bottom: -2px; top: auto; }
  .sa-tile--8 { left: 50%; margin-left: -25px; right: auto; bottom: 10px; top: auto; }
  .sa-tile--9 { right: 23%; left: auto; bottom: -2px; top: auto; }
  .sa-tile--10 { right: 4%; left: auto; bottom: 8px; top: auto; }

  .sa-portal {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 2;
    z-index: 4;
    width: 100%;
    max-width: 430px;
  }
  .sa-float-card {
    position: relative;
    inset: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(16, 21, 34, 0.94);
    border-radius: 14px;
    padding: 8px 12px;
    max-width: 230px;
    z-index: 6;
    animation: saFloaty 4.6s ease-in-out infinite;
  }
  .sa-float-card--1 {
    display: flex;
    order: 1;
    align-self: flex-end;
    margin: 0 8px -14px auto;
  }
  .sa-float-card--2 {
    display: flex;
    order: 3;
    align-self: flex-start;
    margin: -14px auto 0 8px;
    animation-name: saFloatyAlt;
    animation-duration: 5.1s;
  }
  .sa-float-card--3,
  .sa-float-card--4 {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .sa-hero {
    padding-top: 94px;
  }
  .sa-console {
    padding: 15px;
    border-radius: 22px;
  }
  .sa-c-row {
    padding: 10px 11px;
    gap: 8px;
  }
  .sa-c-ico {
    width: 30px;
    height: 30px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .sa-c-tag {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 10.5px;
    padding: 4px 8px;
  }
}

@media (max-width: 575.98px) {
  .sa-pill {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }
  .sa-pill-tag {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .sa-stage {
    padding: 70px 0 74px;
  }
  .sa-tile {
    --tile-size: 44px;
    padding: 8px;
    border-radius: 13px;
  }
  .sa-tile--3,
  .sa-tile--8 {
    margin-left: -22px;
  }
  .sa-float-card {
    max-width: 205px;
    padding: 7px 10px;
    gap: 9px;
  }
  .sa-fc-badge {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .sa-fc-title {
    font-size: 12px;
  }
  .sa-fc-sub {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   SECTION 2: DUAL-ROW 24-PLATFORM INFINITE MARQUEE
   ========================================================================== */
.sa-marquee-band {
  background: var(--sa-surface-alt);
  border-top: 1px solid var(--sa-line);
  border-bottom: 1px solid var(--sa-line);
  padding: 36px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.sa-marquee-caption {
  text-align: center;
  font-family: var(--sa-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sa-ink-soft);
  margin-bottom: 20px;
}

.sa-marquee-row {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.sa-marquee-row:last-child {
  margin-bottom: 0;
}

.sa-marquee-row::before,
.sa-marquee-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}

.sa-marquee-row::before {
  left: 0;
  background: linear-gradient(90deg, var(--sa-surface-alt), transparent);
}

.sa-marquee-row::after {
  right: 0;
  background: linear-gradient(-90deg, var(--sa-surface-alt), transparent);
}

.sa-mq-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: saMarqueeLeft 44s linear infinite;
}

.sa-mq-track--reverse {
  animation: saMarqueeRight 48s linear infinite;
}

.sa-marquee-row:hover .sa-mq-track {
  animation-play-state: paused;
}

.sa-mq-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sa-card-surface);
  border: 1px solid var(--sa-line);
  color: var(--sa-ink) !important;
  font-family: var(--sa-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sa-mq-chip:hover {
  transform: translateY(-2px);
  border-color: var(--sa-violet);
  box-shadow: 0 10px 24px -10px rgba(127, 86, 217, 0.32);
}

.sa-mq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sa-mq-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.sa-mq-tag {
  font-family: var(--sa-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127, 86, 217, 0.1);
  color: var(--sa-violet);
}

.sa-mq-tag--seo {
  background: rgba(254, 100, 1, 0.12);
  color: #ea580c;
}

[data-bs-theme="dark"] .sa-mq-tag {
  background: rgba(127, 86, 217, 0.24);
  color: #c4b5fd;
}

[data-bs-theme="dark"] .sa-mq-tag--seo {
  background: rgba(254, 100, 1, 0.24);
  color: #fdba74;
}

@media (max-width: 767.98px) {
  .sa-marquee-row::before,
  .sa-marquee-row::after {
    width: 44px;
  }
}

/* ==========================================================================
   SECTION 3: PINNED 4-STEP AUTONOMOUS PIPELINE
   ========================================================================== */
.sa-how-band {
  background: var(--sa-surface);
  padding: 96px 0;
  position: relative;
  z-index: 3;
  overflow-x: clip;
}

@media (min-width: 992px) {
  .sa-how-runway {
    position: relative;
    min-height: 215vh;
    margin-top: 44px;
    padding-bottom: 36px;
  }
  .sa-how-runway .sa-how-grid {
    position: sticky;
    top: 92px;
    margin-top: 0;
  }
  .sa-screens {
    overflow: hidden;
    border-radius: 28px;
  }
}

.sa-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 44px;
}

.sa-steps {
  display: grid;
  gap: 10px;
}

.sa-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0.56;
  cursor: pointer;
  transition: opacity 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.sa-step:hover {
  opacity: 0.85;
}

.sa-step.is-on {
  opacity: 1;
  background: var(--sa-card-surface);
  border-color: var(--sa-line);
  box-shadow: var(--sa-shadow);
}

.sa-step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--sa-line);
  font-family: var(--sa-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-ink-muted);
  display: grid;
  place-items: center;
  transition: all 0.35s ease;
}

.sa-step.is-on .sa-step-num {
  background: var(--sa-orange);
  border-color: var(--sa-orange);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(254, 100, 1, 0.7);
}

.sa-step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--sa-ink);
  margin-bottom: 5px;
}

.sa-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sa-ink-muted);
  margin-bottom: 0;
}

.sa-screens {
  position: relative;
  min-height: 470px;
  aspect-ratio: 1 / 0.94;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

.sa-screen {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  color: #f8fafc;
  box-shadow: 0 32px 72px -24px rgba(15, 23, 42, 0.45);
}

.sa-screen--1 {
  z-index: 1;
  background: radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.25), transparent 55%), #0f1526;
}

.sa-screen--2 {
  z-index: 2;
  background: radial-gradient(circle at 82% 14%, rgba(127, 86, 217, 0.3), transparent 55%), #111428;
}

.sa-screen--3 {
  z-index: 3;
  background: radial-gradient(circle at 20% 85%, rgba(254, 100, 1, 0.26), transparent 55%), #141223;
}

.sa-screen--4 {
  z-index: 4;
  background: radial-gradient(circle at 75% 82%, rgba(16, 185, 129, 0.24), transparent 55%), #0e1922;
}

.sa-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sa-screen-pill {
  font-family: var(--sa-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.sa-screen-title {
  font-family: var(--sa-display);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.sa-ui-panel {
  background: rgba(8, 11, 19, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
}

.sa-ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: #e2e8f0;
}

.sa-ui-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sa-ui-row:first-child {
  padding-top: 0;
}

.sa-ui-status {
  font-family: var(--sa-mono);
  font-size: 11px;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sa-ui-status--amber {
  color: #fdba74;
  background: rgba(254, 100, 1, 0.16);
}

.sa-ui-status--cyan {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.16);
}

@media (max-width: 991.98px) {
  .sa-how-band {
    padding: 72px 0;
  }
  .sa-how-runway {
    margin-top: 30px;
  }
  .sa-how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 0;
  }
  .sa-step {
    opacity: 0.72;
    background: var(--sa-card-surface);
    border-color: var(--sa-line);
  }
  .sa-step.is-on {
    opacity: 1;
    border-color: var(--sa-violet);
  }
  .sa-screens {
    aspect-ratio: auto;
    min-height: 0;
    max-width: 100%;
    display: grid;
    gap: 36px;
    padding-bottom: 24px;
  }
  .sa-screen {
    position: sticky;
    inset: auto;
    min-height: 270px;
    transform-origin: center top;
    box-shadow: 0 22px 46px -18px rgba(8, 12, 24, 0.58);
  }
  .sa-screen--1 { top: 82px; z-index: 1; }
  .sa-screen--2 { top: 96px; z-index: 2; }
  .sa-screen--3 { top: 110px; z-index: 3; }
  .sa-screen--4 { top: 124px; z-index: 4; }
}

/* ==========================================================================
   SECTION 4 & 5: 3D BENTO SHOWCASE + ORBITAL HUB + SAVINGS CALCULATOR
   ========================================================================== */
.sa-bento-band {
  background: var(--sa-surface-warm);
  padding: 96px 0;
  position: relative;
  z-index: 4;
}

.sa-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.sa-metric-box {
  background: var(--sa-card-surface);
  border: 1px solid var(--sa-line);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
}

.sa-metric-num {
  font-family: var(--sa-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--sa-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sa-metric-num em {
  font-style: normal;
  color: var(--sa-orange);
}

.sa-metric-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sa-ink-muted);
  margin-top: 6px;
}

.sa-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.sa-bento-card {
  position: relative;
  background: var(--sa-card-surface);
  border: 1px solid var(--sa-line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--sa-shadow);
  transition: transform 0.25s var(--sa-ease), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  overflow: hidden;
}

.sa-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 86, 217, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sa-bento-card:hover::after {
  opacity: 1;
}

.sa-bento-card:hover {
  border-color: var(--sa-violet);
}

.sa-bento-card--dark {
  background: linear-gradient(155deg, #121728 0%, #0b0e18 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.sa-bento-card--dark h3 {
  color: #ffffff !important;
}

.sa-bento-card--dark p {
  color: #cbd5e1 !important;
}

.sa-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: rgba(127, 86, 217, 0.12);
  color: var(--sa-violet);
  margin-bottom: 18px;
}

.sa-bento-card--dark .sa-bento-icon {
  background: rgba(254, 100, 1, 0.2);
  color: var(--sa-orange-soft);
}

.sa-bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sa-ink);
  margin-bottom: 10px;
}

.sa-bento-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--sa-ink-muted);
  margin-bottom: 18px;
}

.sa-mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-mini-chip {
  font-family: var(--sa-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sa-surface-alt);
  border: 1px solid var(--sa-line);
  color: var(--sa-ink);
}

.sa-bento-card--dark .sa-mini-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

@media (max-width: 991.98px) {
  .sa-bento-band {
    padding: 72px 0;
  }
  .sa-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .sa-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Rotating 24-Platform Orbital Hub ---------- */
.sa-orbit-band {
  background: var(--sa-stage-bg);
  color: #f8fafc;
  padding: 96px 0;
  overflow: hidden;
  position: relative;
  z-index: 4;
}

.sa-orbit-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.sa-orbit-stage {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  will-change: transform;
}

.sa-orbit-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.sa-orbit-ring--inner {
  inset: 27%;
  border-style: solid;
  border-color: rgba(127, 86, 217, 0.35);
}

.sa-orbit-core {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sa-orange), var(--sa-violet));
  box-shadow: 0 0 60px rgba(127, 86, 217, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 3;
}

.sa-orbit-core b {
  font-family: var(--sa-display);
  font-size: 16px;
  color: #ffffff;
  line-height: 1.1;
}

.sa-orbit-core span {
  font-family: var(--sa-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.sa-orbit-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  padding: 10px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.sa-orbit-node:hover {
  transform: scale(1.14);
  box-shadow: 0 16px 36px rgba(254, 100, 1, 0.5);
  z-index: 5;
}

.sa-orbit-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 8 Orbital ring nodes via CSS transforms */
.sa-orbit-node--1 { top: 2%; left: 50%; transform: translateX(-50%); }
.sa-orbit-node--2 { top: 15%; right: 12%; }
.sa-orbit-node--3 { top: 50%; right: 2%; transform: translateY(-50%); }
.sa-orbit-node--4 { bottom: 15%; right: 12%; }
.sa-orbit-node--5 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.sa-orbit-node--6 { bottom: 15%; left: 12%; }
.sa-orbit-node--7 { top: 50%; left: 2%; transform: translateY(-50%); }
.sa-orbit-node--8 { top: 15%; left: 12%; }

.sa-orbit-node--1:hover,
.sa-orbit-node--5:hover { transform: translateX(-50%) scale(1.14); }
.sa-orbit-node--3:hover,
.sa-orbit-node--7:hover { transform: translateY(-50%) scale(1.14); }

/* Comparison Cards Inside Orbit Band */
.sa-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.sa-compare-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px;
}

.sa-compare-box--win {
  background: linear-gradient(155deg, rgba(127, 86, 217, 0.22), rgba(16, 185, 129, 0.12));
  border-color: rgba(167, 139, 250, 0.38);
}

.sa-compare-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.sa-compare-box ul {
  display: grid;
  gap: 9px;
}

.sa-compare-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.sa-compare-box li i {
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .sa-orbit-band {
    padding: 72px 0;
  }
  .sa-orbit-wrap {
    grid-template-columns: 1fr;
  }
  .sa-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Interactive Tool-Replacement ROI Calculator ---------- */
.sa-calc-band {
  background: var(--sa-surface);
  padding: 96px 0;
  position: relative;
  z-index: 4;
}

.sa-calc-shell {
  background: var(--sa-card-surface);
  border: 1px solid var(--sa-line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--sa-shadow);
  margin-top: 40px;
}

.sa-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.sa-tool-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sa-tool-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--sa-line);
  background: var(--sa-surface-alt);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.sa-tool-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sa-tool-opt.is-checked {
  border-color: var(--sa-violet);
  background: rgba(127, 86, 217, 0.08);
}

[data-bs-theme="dark"] .sa-tool-opt.is-checked {
  background: rgba(127, 86, 217, 0.22);
}

.sa-tool-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--sa-ink);
  display: block;
}

.sa-tool-sub {
  font-size: 12px;
  color: var(--sa-ink-soft);
}

.sa-tool-cost {
  font-family: var(--sa-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--sa-ink);
  white-space: nowrap;
}

.sa-slider-wrap {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sa-surface-alt);
  border: 1px solid var(--sa-line);
}

.sa-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--sa-ink);
}

.sa-range {
  width: 100%;
  accent-color: var(--sa-orange);
  cursor: pointer;
}

.sa-calc-result {
  background: linear-gradient(155deg, #0f1526 0%, #1b1738 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 28px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sa-calc-total {
  font-family: var(--sa-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 4px;
}

.sa-calc-hrs {
  font-family: var(--sa-mono);
  font-size: 13px;
  color: #6ee7b7;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .sa-calc-band {
    padding: 72px 0;
  }
  .sa-calc-shell {
    padding: 22px;
  }
  .sa-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .sa-tool-checks {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMPATIBILITY & CONTRAST UPGRADES FOR PLANS, TESTIMONIALS, BLOGS & FAQS
   ========================================================================== */
.sa-home .pricing-plan,
.sa-home .reviews,
.sa-home .blog-section,
.sa-home .faq-section {
  position: relative;
  z-index: 4;
  padding-top: 84px;
  padding-bottom: 84px;
}

.sa-home .blog-section,
.sa-home .faq-section {
  background: var(--sa-surface-alt);
}

.sa-home .section-title-one h2 {
  font-family: var(--sa-display);
  font-weight: 800;
  color: var(--sa-ink);
}

.sa-home .section-title-one p {
  color: var(--sa-ink-muted);
}

/* Fix invisible white-on-white btn--white buttons in Light Mode */
.sa-home .i-btn.btn--white,
.blog-style-two .i-btn.btn--white {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.16);
}

.sa-home .i-btn.btn--white:hover,
.blog-style-two .i-btn.btn--white:hover {
  background-color: var(--sa-violet) !important;
  color: #ffffff !important;
  border-color: var(--sa-violet) !important;
}

[data-bs-theme="dark"] .sa-home .i-btn.btn--white,
[data-bs-theme="dark"] .blog-style-two .i-btn.btn--white {
  background-color: #1e2436 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-bs-theme="dark"] .sa-home .i-btn.btn--white:hover,
[data-bs-theme="dark"] .blog-style-two .i-btn.btn--white:hover {
  background-color: var(--sa-violet) !important;
  border-color: var(--sa-violet) !important;
}

/* 3D Tiltable Plan Cards */
.sa-home .pricing-item {
  transition: transform 0.25s var(--sa-ease), box-shadow 0.25s ease;
  will-change: transform;
}

/* FAQ Accordion Contrast & Semantic H3 Sizing */
.sa-home .faq-wrap .accordion-button {
  font-family: var(--sa-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--sa-ink);
  background: var(--sa-card-surface);
}

.sa-home .faq-wrap .accordion-item {
  background: var(--sa-card-surface);
  border: 1px solid var(--sa-line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sa-home .faq-wrap .accordion-body p {
  color: var(--sa-ink-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- GPU Keyframes ---------- */
@keyframes saPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

@keyframes saRingCycle {
  0% { stroke-dashoffset: 69.12; }
  100% { stroke-dashoffset: 0; }
}

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

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

@keyframes saMarqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes saMarqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sa-mq-track,
  .sa-tile,
  .sa-live-dot::before,
  .sa-ring-fill {
    animation: none !important;
  }
}
