/* =========================================================
   PRACTICEGRID SOLUTIONS — INDEX.CSS
========================================================= */
/* ============================================================================================================================
   1. DESKTOP HERO SECTION
============================================================================================================================== */
.hero-system {
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}
/* BG */
.system-bg {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
inset: 0;
padding-top: 0;
padding-bottom: 0;
perspective: 1200px;
perspective-origin: 50% 50%;
transform-style: preserve-3d;
transform: translateY(60px);
background: #050a19;
will-change: transform, opacity;
z-index: 0;
}
.hero-aurora{
position:absolute;
width:900px;
height:900px;
top:-200px;
left:-200px;
background:radial-gradient(circle,
rgba(59,130,246,.35) 0%,
rgba(59,130,246,.15) 30%,
transparent 70%);
filter:blur(120px);
animation:auroraMove 18s infinite alternate ease-in-out;
pointer-events:none;
z-index:1;
}
.hero-aurora-2{
position:absolute;
width:900px;
height:900px;
top:200px;
right:-200px;
background:radial-gradient(circle,
rgba(34,197,94,.35) 0%,
rgba(34,197,94,.15) 30%,
transparent 70%);
filter:blur(120px);
animation:auroraMoveTwo 22s infinite alternate ease-in-out;
pointer-events:none;
z-index:1;
}
@keyframes auroraMove{
0%{transform:translate(0,0) scale(1);}
100%{transform:translate(120px,80px) scale(1.15);}
}
@keyframes auroraMoveTwo{
0%{transform:translate(0,0) scale(1);}
100%{transform:translate(-120px,-60px) scale(1.2);}
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  z-index: 3;
}
/* Dim all nodes when hovering */
.system-bg:hover .node {
  opacity: 0.3;
}
/* Keep hovered one bright */
.system-bg .node:hover {
  opacity: 1 !important;
  z-index: 5;
}
.system-bg:hover .node:hover {
  opacity: 1 !important;
}
/* CORE */
.core {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent);
  border: 2px solid rgba(59,130,246,0.6);
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  box-shadow:
    0 0 40px rgba(59,130,246,0.5),
    0 0 80px rgba(139,92,246,0.3);
  animation: corePulse 3s infinite ease-in-out;
  z-index: 5;
}
@keyframes corePulse {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(0.9); }
}
.core::after {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 2px solid rgba(59,130,246,0.3);
  animation: coreWave 1.5s ease-out forwards;
}
@keyframes coreWave {
  0% {transform: scale(0.5);opacity: 0.8;}
  100% {transform: scale(2.5);opacity: 0;}
}
.core.pulse::after {
  animation: coreWave 1.5s ease-out forwards;
}
.core svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  color: #93c5fd;
  filter:
    drop-shadow(0 0 6px rgba(59,130,246,0.8))
    drop-shadow(0 0 12px rgba(139,92,246,0.4));
}
.core span {
  font-size: 11px;
  line-height: 1.3;
  color: #e2e8f0;
  max-width: 110px;
  text-align: center;
}
/* NODES */
.node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  width: clamp(100px, 12vw, 160px);
  min-height: 70px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e2e8f0;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: auto;
  z-index: 4;
  overflow: visible;           /* ✅ prevent text overflow */
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.node-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0px rgba(59,130,246,0),
    0 0 0px rgba(139,92,246,0);
  transition: var(--transition-base);
}
.node::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.node:hover::before {
  opacity: 1;
}
.node:hover .node-inner {
  box-shadow:
    0 0 20px rgba(59,130,246,0.4),
    0 0 40px rgba(139,92,246,0.2);
  transform: scale(1.05);
}
.node-inner svg {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}
.node-title {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
  white-space: normal;         /* ✅ allow wrap */
  word-break: break-word;      /* ✅ prevent overflow */
}
/* ERRORS (ALWAYS VISIBLE IN CHAOS) */
.errors {
  max-height: none;          /* ✅ prevent height growth */
  max-width: 140px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow: visible;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.error-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(10px, 1vw, 12px);
  opacity: 0.9;
  color: #f87171;
  line-height: 1;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.error-label i {
  width: 10px;
  height: 10px;
}
.error-label svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transform: translateY(1px);
}
/* MONEY LEAK */
.leak {
  position: absolute;
  left: 50%;
  bottom: -12px; /* push clearly outside */
  transform: translateX(-50%);
  pointer-events: none;
}
.leak::after {
  content: "$";
  position: absolute;
  color: #f87171;
  font-size: var(--font-sm); /* bigger */
  font-weight: 600;
  text-shadow:
    0 0 6px rgba(248,113,113,0.8),
    0 0 12px rgba(248,113,113,0.4);
  animation: moneyFlow 1s linear infinite;
}
@keyframes moneyFlow {
  0% {transform: translate(-50%, 0);opacity: 1;}
  100% {transform: translate(-50%, 40px);opacity: 0;}
}
.leak::before {
  content: "$";
  position: absolute;
  color: rgba(248,113,113,0.6);
  font-size: 10px;
  animation: moneyFlow 1.2s linear infinite;
  animation-delay: 0.4s;
}
/* CONNECTION LINES */
.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* Line style */
.connection-path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.9;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1s ease;
}
/* when active */
.connection-path.active {
  stroke-dashoffset: 0;
}
.line-path {
  fill: none;
  stroke: #4ade80;
  stroke-width: 2;
  opacity: 1;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 0.6s ease;
}
/* CONTENT */
.hero-trust {
  margin-top: 10px;
  font-size: var(--font-md);
  color: rgba(255,255,255,0.6);
}
.hero-layout {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none; /* animation still interactive */
}
.hero-top {
  position: relative;
  z-index: 20;
  padding-top: calc(var(--nav-height) + var(--space-sm));
  text-align: center;
}
.hero-bottom {
  position: absolute;
  bottom: calc(var(--space-sm) * 0.5);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: calc(var(--container) * 0.6);
}
/* CONTROL PHASE (PracticeGrid) */
/* System activation */
.system-bg.controlled {
  filter: brightness(0.85);
}
/* Core appears */
.core {
  opacity: 0;
  transition: all 0.6s ease;
}
.system-bg.controlled .core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* Clean system glow */
.system-bg.controlled .node-inner {
  box-shadow:
    0 0 20px rgba(34,197,94,0.4),
    0 0 40px rgba(59,130,246,0.25) !important;
}
/* Smooth transitions */
.errors,
.leak {
  transition: opacity 0.6s ease;
}
/* RESOLVED LABELS */
.resolved {
  color: var(--success);
  font-size: clamp(10px, 1vw, 12px);
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.5s ease;
}
.resolved i {
  width: 10px;
  height: 10px;
}
.resolved svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transform: translateY(1px);
}
.node.resolved-active .resolved {
  opacity: 1;
  transform: translateY(0);
}
.node.resolved-active .leak {
  opacity: 0;
}
/* Hide errors */
.node .resolved {
  opacity: 0;
  transform: translateY(6px);
}
.node.resolved-active {
  transform: scale(1.08);
  transition: transform 0.4s ease;
}
.node.resolved-active .resolved {
  opacity: 1;
  transform: translateY(0);
}
.node.resolved-active .error-label {
  opacity: 0;
   animation: none;
}
.system-bg.controlled .errors {
  opacity: 0;
}
.node.resolved-active .leak {
  opacity: 0;
}
.node.resolved-active .errors {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
/* RESPONSIVE HERO SYSTEM */
/* NAV HEIGHT TOKEN */
:root {
  --nav-height: 80px;
}
/* LARGE DESKTOP (1200px+) */
@media (min-width: 1200px) {
  .system-bg {
    display: block;
  }
}
/* TABLET MODE (768px–1199px) */
@media (max-width: 1199px) {
  .system-bg {
    transform: scale(0.75);
    transform-origin: center;
  }
  .node {
    width: 110px;
    height: 80px;
  }
  .node-title {
    font-size: clamp(12px, 1vw, 14px);
  }
  .error-label {
    font-size: 8px;
  }
  .revenue-card {
    width: 220px;
  }
}

/* ============================================================================================================================
   2. MOBILE HERO SECTION
============================================================================================================================== */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* GRID LINES */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
  opacity: 0.5;
}
/* GLOW + NOISE */
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(34,197,94,0.15), transparent 35%),
    radial-gradient(circle at 85% 60%, rgba(59,130,246,0.15), transparent 35%),
    repeating-radial-gradient(
      circle at 0 0,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.25;
  mix-blend-mode: screen;
}
@media (max-width: 768px) {
     /* 🔥 KILL COMPLEX SYSTEM */
  .system-bg,
  .connections {
    display: none !important;
  }
  /* CLEAN MOBILE HERO */
  .hero-system.section {
    padding-top: 0 !important;   /* 🔥 remove gap */
   }
  .hero-system {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: transparent;
  }
  .mobile-system {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: auto;
    width: 100%;
    padding-top: 0;
    padding-bottom: 10px;
    z-index: 5;
  }
  .hero-top {
    margin-top: -6px;   /* small breathing space */
   }
  .hero-bottom p {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 6px;
  }
  .hero-trust {
    font-size: 9px;
    max-width: 220px;   /* 🔥 forces 2 lines */
    margin-inline: auto;
    line-height: 1.3;
  }
  .mobile-node {
    width: 90%;
    max-width: 320px;
    margin: 6px auto;
    padding: 14px;
    border-radius: 10px;
    background: transparent;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(59,130,246,0.15);
    text-align: center;
  }
.item {
  height: 20px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.item .mobile-error,
.item .mobile-resolved {
  position: absolute;
  left: 0;
  top: 0;
}
.item .mobile-resolved {
  opacity: 0;
}
  .mobile-error {
    color: #f87171;
    font-size: var(--font-md);
    margin: 6px 0;
    transition: var(--transition-base);
    animation: none;
    opacity: 0;
  }
  .mobile-error.active {
  animation: blink 1s infinite;
  }
  .mobile-resolved {
    color: #22c55e;
    font-size: var(--font-md);
    opacity: 0;
    margin: 6px 0;
    transform: translateY(5px);
    transition: var(--transition-base);
  }
  .mobile-node.mobile-resolved .mobile-error {
    opacity: 0;
  }
  .mobile-node.mobile-resolved .mobile-resolved {
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-connection {
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #f87171, #22c55e);
  position: relative;
  transition: height 0.8s ease;
  margin-top: 8px;
  opacity: 0;
   }
 .mobile-connection.active {
  height: 20px;
  opacity: 1;
   }
  .mobile-core {
  position: relative;
  width: 90%;
  max-width: 260px;
  margin: 10px auto;
  transform: none;
  text-align: center;
  display: flex;
  flex-direction: column;     /* 🔥 KEY FIX */
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: scale(0.8);
  transition: 0.5s ease;
  color: #4ade80;
  }
 .mobile-core svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  color: #93c5fd;
  filter:
    drop-shadow(0 0 6px rgba(59,130,246,0.8))
    drop-shadow(0 0 12px rgba(139,92,246,0.4));
}
  .mobile-core.active {
  text-shadow: 0 0 10px #22c55e;
  opacity: 1;
  transform: scale(1);
  animation: pulseCore 2s infinite ease-in-out;
  }
 @keyframes pulseCore {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
  .revenue-label, node-title {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 6px;
   }
  .mobile-revenue {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 10px;
    background: transparent;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(59,130,246,0.15);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
   .mobile-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  width: 100%;
  max-width: 320px;
}
.mobile-chart .bar {
  flex: 1;
  height: 5%;
  background: var(--gradient-accent);
  border-radius: 4px;
  transition: height 0.8s ease;
}
.mobile-metrics {
  display: flex;
  justify-content: space-between; /* 🔥 key fix */
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  max-width: 320px; /* 🔥 match container */
  font-size: 10px;
  opacity: 0.8;
}
.mobile-metric {
  flex: 1;                  /* 🔥 equal spacing */
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(10px);
}
.mobile-revenue.active .mobile-metric {
  opacity: 1;
  transform: translateY(0);
}
.mobile-metric.positive {
  color: #4ade80;
}
.mobile-metric.negative {
  color: #f87171;
}
.mobile-connection .line {
  width: 0;
  display: block;
  height: 2px;
  background: #22c55e;
  transition: width 0.6s ease;
}
.mobile-connection.active .line {
  width: 100%;
}
.mobile-bar {
  height: 5%;
  transition: height 0.6s ease;
}
}

/* ============================================================================================================================
  3. ABOUT / BELIEF
============================================================================================================================== */
.about-belief {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}
.about-belief .section-title {
  margin-bottom: 30px;
}
.belief-visual {
  display: flex;
  justify-content: center;
}
.belief-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.belief-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.belief-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.belief-row span {
  min-width: 24px;
  font-weight: 600;
  color: var(--primary);
}
.belief-row p {
  margin: 0;
  line-height: 1.7;
}
.belief-stack span {
  color: var(--primary);
  min-width: 28px;
}
.belief-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.belief-control {
  padding-left: 16px;
  border-left: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.belief-control strong {
  color: var(--text-primary);
  font-weight: 600;
}
.belief-control span {
  color: var(--text-muted);
}
.belief-bridge {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  line-height: 1.6;
}
/* RULES ENGINE */
.rules-engine {
  min-height: auto;
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
/* subtle glow */
.rules-engine::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  opacity: 0.05;
  filter: blur(40px);
  z-index: -1;
  display: none;
}
/* HEADER */
.rules-header {
  font-size: var(--font-md);
  color: var(--text-secondary);
  margin-bottom: 16px;
}
/* RULE LIST */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* INDIVIDUAL RULE */
.rule {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: all 0.4s ease;
}
.rule span {
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
}
/* ACTIVE RULE */
.rule.active {
  opacity: 1;
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}
/* VISUAL AREA */
.rules-visual {
  margin-top: 12px;
  position: relative;
  padding: 0 4px;
}
/* FLOW LINE */
.about-flow-line {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.about-flow-progress {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg,#6366f1,#22c55e);
  transition: width 0.6s ease;
}
/* ENGINE CORE */
.engine-core {
  margin: 14px 0;
  text-align: center;
  color: #93c5fd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.engine-core svg {
  width: 22px;
  height: 22px;
  filter: none;
}
.engine-core.pulse {
  animation: corePulseSoft 0.6s ease;
}
@keyframes corePulseSoft {
  0% {transform: scale(1);filter: drop-shadow(0 0 0px rgba(34,197,94,0));}
  50% {transform: scale(1.08);filter: drop-shadow(0 0 12px rgba(34,197,94,0.6));}
  100% {transform: scale(1);filter: drop-shadow(0 0 0px rgba(34,197,94,0));}
}
/* OUTPUT */
.rules-output {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: var(--font-md);
  text-align: center;
  color: #4ade80;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s ease;
}
.rules-output.active {
  opacity: 1;
  transform: translateY(0);
}
/* RULE INSPECT MODE */
.rules-engine.inspecting .rule {
  opacity: 0.2;
}
.rules-engine.inspecting .rule.inspect-active {
  opacity: 1;
  background: rgba(34,197,94,0.1);
  box-shadow:
    0 0 20px rgba(34,197,94,0.3);
}
/* OUTPUT becomes explanation */
.rules-output.inspect {
  color: #93c5fd;
  font-size: var(--font-sm);
  line-height: 1.6;
  max-width: 260px;
  margin: 12px auto 0;
}
/* subtle core boost */
.rules-engine.inspecting .engine-core {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(34,197,94,0.4));
}
/* CURSOR GLOW */
.cursor-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99,102,241,0.25),
    rgba(59,130,246,0.15),
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0;
  transform: translate(-50%, -50%);
   transition: opacity 0.3s ease, transform 0.1s ease;
  z-index: 0;
  display: none;
}
.rules-engine:hover .cursor-glow {
  opacity: 1;
}
/* TOOLTIP MICRO CARD */
.rule-tooltip {
  position: fixed;
  max-width: 240px;
  padding: 10px 12px;
  font-size: var(--font-sm);
  line-height: 1.5;
  color: #e2e8f0;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 20px rgba(99,102,241,0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: all 0.25s ease;
  z-index: 999;
}
.rule-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (max-width: 768px) {
  .about-belief {
    min-height: auto;
    padding-block: 40px;
  }
  .belief-layout {
    grid-template-columns: 1fr;   /* stack */
    gap: 24px;
  }
  .belief-content {
    align-items: flex-start;      /* better readability */
    text-align: left;
    justify-content: flex-start;
    gap: 20px;
  }
  .belief-bridge {
    font-size: 14px;
    padding-top: 16px;
  }
  .rules-engine {
    padding: 14px;
  }
  .rule {
    font-size: 12px;   /* FIX readability */
  }
  .rules-output {
    font-size: 13px;
  }
  .rule-tooltip {
    max-width: 90vw;   /* prevent overflow */
    left: 5vw !important;
    right: 5vw;
  }
}
@media (max-width: 480px) {
  .belief-row {
    gap: 10px;
  }
  .belief-row span {
    min-width: 20px;
  }
}
/* ============================================================================================================================
  4. METRIC
============================================================================================================================== */
.metrics-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: 0 auto;
}
.metric {
  flex: 1;
  min-width: 180px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.metric.visible {
  opacity: 1;
  transform: translateY(0);
}
.metric h3 {
  font-size: 30px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric p {
  font-size: var(--font-md);
  color: var(--text-secondary);
  margin-top: 6px;
}
@media (max-width: 768px) {
  .metrics-row {
    display: flex;              /* simpler + cleaner */
    flex-direction: column; 
    gap: 16px;
  }
  .metric {
    width: 100%;
  }
  .metric h3 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .metrics-row {
    grid-template-columns: 1fr;  /* stack */
  }
}
/* ============================================================================================================================
  5. HOW IT WORKS
============================================================================================================================== */
.how-it-works {
  overflow: hidden;
  padding-bottom: 40px;
}
.narrative {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
/* ===== LEFT SIDE ===== */
.narrative-left {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 240px;
}
.narrative-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  height: auto;
  overflow: visible;
}
/* STEP BASE */
.narrative-step {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
  display: none;
}
/* ACTIVE STEP */
.narrative-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  text-shadow: 0 0 20px rgba(99,102,241,0.15);
  display: block;
}
.narrative-step:not(.active) {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
.success-icon {
  width: 16px;
  height: 16px;
  color: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
}
/* STEP HEADER */
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-number {
  position: relative;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(99,102,241,0.4);
  font-size: var(--font-sm);
  font-weight: 600;
  color: #c7d2fe;
  box-shadow: 0 0 10px rgba(99,102,241,0.3);
}
/* TEXT STYLING */
.step-problem {
  color: var(--text-muted);
}
.step-solution {
  color: var(--text-secondary);
}
.step-impact {
  font-size: var(--font-md);
  color: #22c55e;
}
/* CTA */
.narrative-step.active .how-cta-content > * {
  opacity: 1;
  transform: translateY(0);
}
.narrative-step.active .how-cta-content > *:nth-child(1) { transition-delay: 0.1s; }
.narrative-step.active .how-cta-content > *:nth-child(2) { transition-delay: 0.2s; }
.narrative-step.active .how-cta-content > *:nth-child(3) { transition-delay: 0.3s; }
.narrative-step.active .how-cta-content > *:nth-child(4) { transition-delay: 0.4s; }
.how-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.5s ease;
}
.how-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.how-cta-eyebrow {
  font-size: 11px;
  color: #22c55e;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.how-cta-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.how-cta-sub {
  font-size: var(--font-md);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}
.how-cta-proof {
  font-size: 15px;
  margin-bottom: 10px;
}
.how-cta-btn {
  background: var(--gradient-brand);
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  margin-top: 8px;
}
.how-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.how-cta.active .cta-btn {
  animation: ctaPulse 2s infinite;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 0 0 rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 20px rgba(99,102,241,0.6); }
}
/* ===== RIGHT SIDE (VISUAL) ===== */
.hiw-visual {
  position: relative;
  top: auto;
}
/* DASHBOARD CORE */
.hiw-dashboard {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 28px;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  opacity: 1 !important;
}
/* GLOW BACKGROUND */
.hiw-dashboard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 60% 40%, rgba(99,102,241,0.25), transparent 70%);
  opacity: 0.4;
  z-index: -1;
  animation: hiwPulse 4s ease-in-out infinite;
}
@keyframes hiwPulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.hiw-dashboard.flash {
  box-shadow:
    0 0 40px rgba(34,197,94,0.25),
    0 0 80px rgba(59,130,246,0.2);
}
/* ===== METRICS ===== */
.metrics-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
/* REVENUE */
.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--success);
  background: linear-gradient(90deg,#4ade80,#22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* DENIAL */
.metric-value.red {
  background: var(--gradient-danger);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ===== GRAPH ===== */
.graph-container {
  height: 220px;
  margin: 20px 0;
  position: relative;
}
/* canvas glow */
.graph-container canvas {
  filter: none;
}
/* subtle grid effect */
.graph-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 40px;
  pointer-events: none;
  opacity: 0.2;
}
/* ===== TRANSFORM TEXT ===== */
.transforms {
  font-size: var(--font-md);
  color: #22c55e;
  opacity: 0.9;
  margin-bottom: 18px;
  min-height: 20px;
  letter-spacing: 0.02em;
}
/* ===== AI BOX ===== */
.ai-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
/* subtle animated shine */
.ai-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  animation: aiShimmer 4s infinite;
}
@keyframes aiShimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.ai-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.ai-text {
  font-size: var(--font-md);
  color: #4ade80;
  line-height: 1.5;
  transition: all 0.4s ease;
}
@media (max-width: 768px) {
  .narrative {
    display: flex;              /* 🔥 override grid */
    flex-direction: column;
    gap: 14px;
  }
  .hiw-visual {
    margin-top: 0;
    width: 100%;
  }
  .hiw-dashboard {
    margin-top: -12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center; 
  }
  .narrative-step {
    min-height: auto;
    display: none;
  }
  .narrative-step.active {
    display: block;
  }
  .narrative-step,
  .narrative-step:not(.active) {
    transform: none;
    pointer-events: auto;
  }
  .narrative-left {
    position: sticky;
    top: 80px; /* navbar height */
    z-index: 10;
    background: var(--bg-primary);
    padding-bottom: 16px;
  }
  .narrative-content {
    gap: 14px;
  }
  .step-problem {
    font-size: 12px;
  }
  .step-solution {
    font-size: 12px;
  }
  .step-impact {
    font-size: 12px;
  }
  .how-cta, .ai-box {
    display: none !important;
  }
  .metrics-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
  .metric-value {
    font-size: 18px;
  }
  .graph-container {
    height: 120px;
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
  }
  .graph-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  .transforms {
    text-align: center;
    width: 100%;
  }
}
/* ============================================================================================================================
  6. SERVICES GATEWAY
============================================================================================================================== */
.rcm-system {
  margin-top: var(--space-lg);
}
.rcm-system.complete {
  box-shadow: 0 0 60px rgba(34,197,94,0.15);
}
.rcm-system.complete .flow-node {
  opacity: 1;
}
/* FLOW CONTAINER */
.rcm-flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 8px;
}
/* NODE */
.flow-node i {
  width: 8px;
  height: 8px;
  stroke-width: 1.5;
  color: #93c5fd;
  transition: var(--transition-base);
}
.flow-node.active i {
  color: #ffffff;
  filter: drop-shadow(0 0 3px rgba(99,102,241,0.4));
}
.flow-node {
  position: relative;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.35s ease;
  overflow: hidden;
  z-index: 2;
}
.flow-node:hover {
  color: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--glow-soft);
  transform: translateY(-2px) scale(1.05);
}
.flow-node.active {
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: var(--glow-soft);
  opacity: 1;
  transform: scale(1.05);
}
.flow-node.active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg,transparent,rgba(99,102,241,0.25),transparent);
  animation: pulseWave 2.5s linear infinite;
}
@keyframes pulseWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.flow-node.active ~ .flow-node {
  opacity: 0.2;
}
.flow-node::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}
.flow-node:hover::after {
  animation: ripple 0.6s ease-out;
}
@keyframes ripple {
  0% {width: 0;height: 0;opacity: 0.6;}
  100% {width: 200px;height: 200px;opacity: 0;}
}
/* FLOW LINE */
.flow-line {
  flex: none;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  position: relative;
  background: var(--gradient-accent);
  opacity: 0.2;
  overflow: hidden;
}
.flow-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99,102,241,0.8),
    transparent
  );
  animation: flowMove 2s linear infinite;
}
@keyframes flowMove {
  from { left: -40%; }
  to { left: 100%; }
}
.flow-node.active + .flow-line::after {
  transform: scaleX(1);
}
/* CONTEXT PANEL */
.rcm-context {
  margin-top: 20px;
  text-align: center;
  font-size: var(--font-md);
  color: var(--text-muted);
  min-height: 20px;
  transition: var(--transition-base);
}
@media (max-width: 768px) {
  .rcm-flow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .flow-line {
    width: 2px;         /* vertical line */
    height: 20px;
  }
  .flow-node {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    font-size: 13px;
    padding: 10px 14px;
  }
  .flow-node i {
    width: 16px;   /* 🔥 FIX */
    height: 16px;
  }
  .rcm-system {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .rcm-context {
    margin-top: 16px;
    text-align: center;
  }

}
/* ============================================================================================================================
  7. OUTCOMES
============================================================================================================================== */
.pg-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}
.pg-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.pg-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pg-title {
  font-size: var(--font-md);
  color: var(--text-muted);
}
.pg-outcomes-pro select {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: white;
  border: 1px solid var(--border-default);
}
/* GRID */
.pg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pg-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-icon-box svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.pg-metric-wrap {
  text-align: right;
  transition: var(--transition-base);
}
.pg-metric-wrap h3 {
  margin: 0;
}
.pg-metric-wrap h4 {
  margin: 4px 0 0;
  font-size: var(--font-md);
}
.pg-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.pg-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: transparent;
  transition: var(--transition-base);
}
.pg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-soft);
}
.pg-card:hover .pg-icon-box {
  transform: scale(1.1);
  box-shadow: var(--glow-soft);
}
.pg-card:hover .pg-metric {
  transform: scale(1.15);
  color: #fff;
  animation: metricPulse 0.6s ease;
}
@keyframes metricPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pg-card:hover .pg-metric-wrap {
  transform: translateY(-2px) scale(1.05);
}
.pg-card:hover .pg-metric-wrap h3 {
  color: #fff;
  text-shadow: 0 0 12px rgba(99,102,241,0.7);
}
.pg-card:hover .pg-metric-wrap h4 {
  color: var(--text-primary);
}
.pg-card:hover svg {
  transform: rotate(6deg) scale(1.1);
}
.pg-card i {
  transition: var(--transition-base);
}
.pg-card:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.8));
}
.pg-card h4 {
  margin-top: 10px;
}
.pg-card canvas {
  height: 80px !important;
  transform: perspective(600px) rotateX(20deg);
  opacity: 0.9;
}
.pg-card .pg-metric {
  transition: 0.3s ease;
}
.pg-card:hover .pg-metric {
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(99,102,241,0.6);
}
.pg-graph-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: 10px;
}
.pg-toggle {
  background: transparent;
  border: 1px solid var(--border-default);
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
}
.toggle-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: var(--font-md);
  color: var(--text-muted);
  position: relative;
  transition: var(--transition-base);
}
.toggle-btn.active {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: var(--glow-primary);
}
.toggle-btn:not(.active):hover {
  color: var(--text-primary);
}
/* CAROUSEL */
.pg-slide {
  text-align: center;
  display: none;
}
.pg-slide.active {
  display: block;
}
/* SIMULATOR */
.pg-simulator {
  text-align: center;
}
.pg-simulator .btn-primary {
  height: 48px;
  padding: 0 22px;
  font-size: var(--font-md);
}
.sim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.sim-controls button {
  height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}
.sim-result {
  margin-top: 12px;
  font-size: 18px;
  color: var(--secondary);
}
.sim-logic {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: var(--font-md);
  color: var(--text-muted);
}
.pg-explanation {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s;
  margin-top: 20px;
  padding-top: 10px;
}
.pg-explanation.active {
  opacity: 1;
  transform: translateY(0);
}
/* STORY CARD */
.pg-story-card {
  max-width: 700px;
  margin: auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.02);
  text-align: left;
}
.pg-grid {
  margin-top: 28px;
}
.pg-stories {
  margin-top: 28px;
}
/* BADGE */
.pg-badge {
  font-size: var(--font-sm);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 10px;
}
/* BLOCKS */
.pg-story-block {
  margin-top: 14px;
}
.pg-story-block strong {
  font-size: var(--font-sm);
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.pg-story-block p {
  font-size: var(--font-md);
  color: var(--text-secondary);
}
/* RESULT HIGHLIGHT */
.pg-story-block.result p {
  color: #22c55e;
  font-weight: 500;
}
/* CTA */
.pg-story-cta {
  margin-top: 20px;
}
@media (max-width: 768px) {
  .pg-outcomes-grid {
    grid-template-columns: 1fr;   /* 🔥 stack */
    gap: 16px;
  }
  .pg-card {
    padding: 16px;
  }
  .pg-grid {
    margin-top: 10px;
  }
  .pg-stories {
    margin-top: 10px;
  }
  .sim-controls {
    grid-template-columns: 1fr;   /* 🔥 stack */
    gap: 10px;
  }
  .sim-controls input,
  .sim-controls button {
    width: 100%;
  }
  .sim-controls button {
    margin-top: 6px;
  }
  .pg-trust-line {
    font-size: 13px;
    line-height: 1.5;
  }
  .toggle-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
  .pg-graph-label {
    font-size: 12px;
  }
  .sim-result {
    font-size: 16px;
  }
  .sim-logic {
    font-size: 13px;
  }
}
/* ============================================================================================================================
  8. EHR SECTION
============================================================================================================================== */
/* SUBTEXT */
.ehr-subtext {
  max-width: 650px;
  margin: 0 auto 50px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
/* SLIDER */
.ehr-slider {
  position: relative;
  overflow-x: scroll;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  margin-top: 20px;
  touch-action: none;
}
.ehr-slider.js-active .ehr-track {
  animation: none;
}
.ehr-slider::-webkit-scrollbar {
  display: none;
}
.ehr-slider.dragging {
  cursor: grabbing;
}
.ehr-track-wrapper {
  overflow: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ehr-track-wrapper::-webkit-scrollbar {
  display: none;
}
/* TRACK */
.ehr-track {
  display: flex;
  gap: 50px;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}
/* LOGOS */
.ehr-track img {
  height: 45px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.7;
  transition: 0.3s ease;
  pointer-events: auto;
}
.ehr-track img:hover {
  opacity: 1;
  transform: scale(1.08);
}
/* EDGE FADE */
.ehr-slider::before,
.ehr-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.ehr-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.ehr-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}
/* TRUST BAR */
.ehr-trust {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* TRUST ITEMS */
.trust-item {
  font-size: var(--font-md);
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item span {
  color: #4ade80;
  font-weight: bold;
}
@media (max-width: 768px) {
  .ehr-track {
    gap: 24px;
  }
  .ehr-track img {
    height: 36px;
    max-width: 90px;
  }
  .ehr-slider::before,
  .ehr-slider::after {
    width: 30px;
  }
  .ehr-trust {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .trust-item {
    font-size: 13px;
  }
  .ehr-subtext {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .ehr-premium .section-title {
    line-height: 1.3;
  }
}
/* ============================================================================================================================
  9. ENGAGEMENT MODEL
============================================================================================================================== */
.engagement-model {
  position: relative;
}
/* HEADER */
.eng-header {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.eng-sub {
  color: var(--text-secondary);
  margin-top: 10px;
}
/* TIMELINE */
.eng-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: var(--space-lg);
}
/* vertical line */
.eng-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(99,102,241,0.3),
    rgba(59,130,246,0.2),
    transparent
  );
}
/* STEP */
.eng-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}
/* NUMBER */
.eng-step-number {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-md);
  z-index: 1;
  backdrop-filter: blur(6px);
}
/* CONTENT */
.eng-step-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  flex: 1;
  transition: var(--transition-base);
}
.eng-step-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.eng-step-content p {
  color: var(--text-secondary);
  font-size: var(--font-md);
}
/* TAG */
.eng-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: #93c5fd;
  background: rgba(59,130,246,0.08);
  padding: 4px 8px;
  border-radius: 6px;
}
/* hover */
.eng-step:hover .eng-step-content {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
/* PROOF CARDS */
.eng-proof {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.eng-proof-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255,255,255,0.02);
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}
.eng-proof-card h4 {
  font-size: var(--font-md);
  margin-bottom: 6px;
}
.eng-proof-card p {
  font-size: var(--font-md);
  color: var(--text-secondary);
}
.eng-proof-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
/* TENSION + BRIDGE */
.eng-tension {
  margin-top: var(--space-lg);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
}
.eng-bridge {
  margin-top: 10px;
  max-width: 600px;
  margin-inline: auto;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
}
@media (max-width: 768px) {
  /* HEADER */
  .eng-header {
    margin-bottom: var(--space-md);
  }
  .eng-sub {
    font-size: 13px;
    line-height: 1.6;
  }
  /* TIMELINE */
  .eng-timeline {
    gap: 20px;
  }
  /* FIX vertical line alignment */
  .eng-timeline::before {
    left: 14px;   /* 🔥 tighter alignment */
  }
  /* STEP LAYOUT */
  .eng-step {
    gap: 14px;
    align-items: flex-start;
  }
  /* NUMBER */
  .eng-step-number {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
  /* CONTENT */
  .eng-step-content {
    padding: 14px;
  }
  .eng-step-content h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .eng-step-content p {
    font-size: 13px;
    line-height: 1.6;
  }
  .eng-tag {
    font-size: 10px;
  }
  /* 🔥 MOST IMPORTANT FIX */
  /* PROOF CARDS STACK */
  .eng-proof {
    grid-template-columns: 1fr;   /* ✅ stack */
    gap: 12px;
  }
  .eng-proof-card {
    padding: 14px;
  }
  .eng-proof-card h4 {
    font-size: 14px;
  }
  .eng-proof-card p {
    font-size: 13px;
    line-height: 1.6;
  }
  /* TENSION + BRIDGE */
  .eng-tension {
    font-size: 14px;
    margin-top: var(--space-md);
  }
  .eng-bridge {
    font-size: 13px;
    line-height: 1.6;
  }
}
@media (max-width: 480px) {
  .eng-step {
    gap: 10px;
  }
  .eng-step-number {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .eng-step-content {
    padding: 12px;
  }
  .eng-proof-card {
    padding: 12px;
  }
}
/* ============================================================================================================================
  11. FINAL CTA
============================================================================================================================== */
/* ================= FINAL CTA (ACTIVATION MODE) ================= */

.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;

  /* override global section animation */
  opacity: 1 !important;
  transform: none !important;
}

/* anchor */
.final-cta-wrap {
  position: relative;
}

/* GRID BACKGROUND */
.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.final-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.6;
}
.final-cta-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 62%,
    rgba(99,102,241,0.15),
    transparent 50%
  );
}
/* 🔥 ACTIVATION GLOW (MAIN VISUAL) */
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 62%,
    rgba(99,102,241,0.28) 0%,
    rgba(99,102,241,0.12) 25%,
    transparent 55%
  );
  opacity: 0.8;
  animation: ctaPulse 4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* CONTENT */
.final-cta-content {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* BUTTON (FOCUS ELEMENT) */
.final-cta-btn {
  margin-top: 32px;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 18px rgba(99,102,241,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.final-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(99,102,241,0.8);
}

/* TEXT */
.final-cta-sub { color: var(--text-secondary); }
.final-cta-urgency { color: #94a3b8; opacity: 0.8; }

/* LIVE STATUS */
.final-cta-live {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.final-cta-live .dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(0);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* TRUST */
.final-cta-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #94a3b8;
}
/* ============================================================================================================================
   12. SCROLLBAR
============================================================================================================================== */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius:10px;
}
