/* ==========================================================================
   Sayl CRM — Enterprise Landing Upgrade
   ========================================================================== */

body { font-family: 'Plus Jakarta Sans', sans-serif; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── Scroll Reveal System ─── */
.sr {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.sr.sr-up    { transform: translateY(32px); }
.sr.sr-left  { transform: translateX(-28px); }
.sr.sr-right { transform: translateX(28px); }
.sr.sr-scale { transform: scale(0.93); }

.sr.is-visible {
  opacity: 1;
  transform: none !important;
}

.sr-d1  { transition-delay: 0.07s; }
.sr-d2  { transition-delay: 0.14s; }
.sr-d3  { transition-delay: 0.21s; }
.sr-d4  { transition-delay: 0.28s; }
.sr-d5  { transition-delay: 0.35s; }
.sr-d6  { transition-delay: 0.42s; }
.sr-d7  { transition-delay: 0.49s; }
.sr-d8  { transition-delay: 0.56s; }

/* ─── Hero Decorative Orbs ─── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation: orb-drift-a 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  bottom: -60px; left: -80px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.3), transparent 70%);
  animation: orb-drift-b 18s ease-in-out 2s infinite;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
  animation: orb-drift-c 20s ease-in-out 4s infinite;
}
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 25px) scale(1.06); }
  66%       { transform: translate(15px, -18px) scale(0.96); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(25px, -20px) scale(1.1); }
}
@keyframes orb-drift-c {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-20px, 15px); }
  66%       { transform: translate(20px, -10px); }
}

/* ─── Hero Content Layer ─── */
.hero-content-wrap { position: relative; z-index: 1; }

/* ─── Hero Dashboard Preview ─── */
.hero-dashboard-outer {
  perspective: 1200px;
}
.hero-dashboard-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.45),
    0 8px 30px -8px rgba(13, 148, 136, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: dashboard-float 7s ease-in-out infinite;
  transform: rotateX(2deg) rotateY(-2deg);
  transition: transform 0.4s ease;
}
.hero-dashboard-card:hover {
  transform: rotateX(0deg) rotateY(0deg);
}
@keyframes dashboard-float {
  0%, 100% { transform: rotateX(2deg) rotateY(-2deg) translateY(0); }
  50%       { transform: rotateX(1deg) rotateY(-1deg) translateY(-10px); }
}

.dash-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 10px;
}
.dash-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.dash-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease;
}
.dash-conv-item:hover { background: rgba(255, 255, 255, 0.14); }
.dash-conv-item.active { background: rgba(13, 148, 136, 0.2); border: 1px solid rgba(20, 184, 166, 0.3); }

.dash-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dash-conv-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); }
.dash-conv-preview { font-size: 10px; color: rgba(255,255,255,0.55); }
.dash-conv-time { font-size: 9px; color: rgba(255,255,255,0.45); margin-inline-start: auto; white-space: nowrap; }
.dash-unread {
  background: #4df5c8;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 9999px;
  padding: 1px 5px;
  margin-inline-start: auto;
}

.dash-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}
.dash-input-text { font-size: 10px; color: rgba(255,255,255,0.5); flex: 1; }
.dash-send-btn {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0e9f87, #0a7a67);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Hero Stat Badges (floating) ─── */
.hero-stat-float {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  display: none;
}
@media (min-width: 1024px) {
  .hero-stat-float { display: block; }
}
.hero-stat-float-inner {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.25), 0 4px 12px -4px rgba(13, 148, 136, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.dark .hero-stat-float-inner {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero-stat-float-num {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0e9f87, #0a7a67);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-stat-float-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}
.dark .hero-stat-float-lbl { color: #94a3b8; }
.hero-stat-float-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hero-stat-a {
  bottom: 48px;
  left: -12px;
  animation: badge-float-a 5.5s ease-in-out infinite;
}
.hero-stat-b {
  top: 30px;
  right: -16px;
  animation: badge-float-b 7s ease-in-out 1.5s infinite;
}
@keyframes badge-float-a {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes badge-float-b {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-8px) rotate(2deg); }
}

/* ─── Stats Counter Section ─── */
.stats-counter-section {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.dark .stats-counter-section {
  background: #030712;
  border-color: rgba(255, 255, 255, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.dark .stat-item {
  border-color: rgba(255, 255, 255, 0.04);
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #0e9f87, #6366f1);
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: inherit;
}
.stat-item.is-visible::after { transform: translateX(-50%) scaleX(1); }

.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #0e9f87 0%, #0a7a67 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.dark .stat-label { color: #e2e8f0; }
.stat-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ─── Section Headers Enterprise Style ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.18);
  color: #0a7a67;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dark .section-eyebrow {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(99, 102, 241, 0.14));
  border-color: rgba(45, 212, 191, 0.28);
  color: #5eead4;
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4df5c8;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  animation: eyebrow-pulse 2.2s infinite;
}
@keyframes eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.section-heading-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #0e9f87 55%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer-h 9s ease-in-out infinite;
}
.dark .section-heading-gradient {
  background: linear-gradient(135deg, #f1f5f9 0%, #2dd4bf 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}
@keyframes shimmer-h {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ─── Feature Cards Enterprise ─── */
.fc-enterprise {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.dark .fc-enterprise {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
}
.fc-enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fc-enterprise:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px -18px rgba(13, 148, 136, 0.22),
    0 8px 16px -8px rgba(15, 23, 42, 0.06);
  border-color: rgba(13, 148, 136, 0.28);
}
.dark .fc-enterprise:hover {
  box-shadow:
    0 24px 48px -18px rgba(45, 212, 191, 0.18),
    0 8px 16px -8px rgba(0, 0, 0, 0.5);
  border-color: rgba(45, 212, 191, 0.3);
}
.fc-enterprise:hover::before { opacity: 1; }

.fc-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.fc-enterprise:hover .fc-icon-wrap { transform: scale(1.1) rotate(-6deg); }

.fc-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.dark .fc-title { color: #f1f5f9; }
.fc-desc { font-size: 0.8125rem; color: #64748b; line-height: 1.6; }
.dark .fc-desc { color: #94a3b8; }

/* Feature number badge */
.fc-num {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(13, 148, 136, 0.06);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}
.dark .fc-num { color: rgba(45, 212, 191, 0.06); }
.fc-enterprise:hover .fc-num { color: rgba(13, 148, 136, 0.1); }
.dark .fc-enterprise:hover .fc-num { color: rgba(45, 212, 191, 0.1); }

/* ─── How It Works Timeline ─── */
.hiw-grid-enterprise {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .hiw-grid-enterprise {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

/* Animated connecting line */
.hiw-connector {
  display: none;
  position: absolute;
  top: 40px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(13, 148, 136, 0.12);
}
@media (min-width: 768px) { .hiw-connector { display: block; } }
.dark .hiw-connector { background: rgba(45, 212, 191, 0.1); }

.hiw-connector-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0e9f87, #6366f1, #0e9f87);
  background-size: 200%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  animation: line-glow 3s linear infinite;
}
@keyframes line-glow {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}
.hiw-grid-enterprise.is-visible .hiw-connector-fill { width: 100%; }

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.hiw-num-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e9f87, #0a7a67);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow:
    0 8px 24px -8px rgba(13, 148, 136, 0.55),
    0 0 0 0 rgba(13, 148, 136, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.hiw-step:hover .hiw-num-circle {
  transform: scale(1.1) translateY(-4px);
  box-shadow:
    0 16px 40px -10px rgba(13, 148, 136, 0.6),
    0 0 0 8px rgba(13, 148, 136, 0.1);
}

.hiw-step-content-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}
.dark .hiw-step-content-card {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}
.hiw-step:hover .hiw-step-content-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px -12px rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.2);
}

.hiw-step-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.dark .hiw-step-title { color: #f1f5f9; }
.hiw-step-desc { font-size: 0.8125rem; color: #64748b; line-height: 1.6; }
.dark .hiw-step-desc { color: #94a3b8; }

/* ─── Trust Logos Bar ─── */
.trust-section {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.dark .trust-section {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.04);
}
.trust-scroll-wrap {
  overflow: hidden;
  position: relative;
}
.trust-scroll-wrap::before, .trust-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trust-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc, transparent);
}
.trust-scroll-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #f8fafc, transparent);
}
.dark .trust-scroll-wrap::before { background: linear-gradient(90deg, #0f172a, transparent); }
.dark .trust-scroll-wrap::after  { background: linear-gradient(-90deg, #0f172a, transparent); }

.trust-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: trust-scroll-anim 28s linear infinite;
}
@keyframes trust-scroll-anim {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-track:hover { animation-play-state: paused; }

.trust-logo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #475569;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.trust-logo-chip:hover { color: #0e9f87; }
.dark .trust-logo-chip {
  border-color: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}
.dark .trust-logo-chip:hover { color: #2dd4bf; }

/* ─── CTA Section Enterprise ─── */
.cta-enterprise-section {
  position: relative;
  overflow: hidden;
}
.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.cta-mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 70%),
    radial-gradient(50% 70% at 80% 30%, rgba(13, 148, 136, 0.2) 0%, transparent 70%),
    radial-gradient(40% 60% at 50% 100%, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cta-content { position: relative; z-index: 1; }

/* ─── Pricing Cards Enterprise ─── */
.pricing-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.dark .pricing-glass {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}
.pricing-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
}

.pricing-popular-enterprise {
  background: linear-gradient(135deg, #0e9f87 0%, #0a7a67 100%);
  border-radius: 20px;
  position: relative;
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.25),
    0 24px 60px -20px rgba(13, 148, 136, 0.55),
    0 8px 24px -8px rgba(15, 23, 42, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.pricing-popular-enterprise:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 2px rgba(13, 148, 136, 0.35),
    0 36px 80px -20px rgba(13, 148, 136, 0.65),
    0 8px 24px -8px rgba(15, 23, 42, 0.25);
}
.pricing-popular-enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Footer Enterprise ─── */
.footer-enterprise {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-enterprise .footer-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4df5c8;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  animation: eyebrow-pulse 2.2s infinite;
  display: inline-block;
}
.footer-enterprise a {
  transition: color 0.2s ease;
}
.footer-enterprise a:hover { color: #2dd4bf !important; }
.footer-enterprise .footer-heading {
  color: rgba(255,255,255,0.5);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-enterprise .footer-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  display: block;
  padding: 3px 0;
}
.footer-enterprise .footer-link:hover { color: #2dd4bf !important; }

/* ─── Responsive Tweaks ─── */
@media (max-width: 640px) {
  .hero-stat-float { display: none !important; }
  .stat-num { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1 !important; transform: none !important; }
  .hero-orb, .hero-dashboard-card, .hero-stat-float { animation: none !important; }
  .hiw-connector-fill { transition: none; width: 100% !important; }
  .trust-track { animation: none !important; }
  .stat-item::after { transition: none; transform: translateX(-50%) scaleX(1); }
  .wf-canvas-wrap * { animation: none !important; transition: none !important; }
  .wf-link-path { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .wf-link::after { opacity: 0.9 !important; }
}

/* ═══════════════════════ WORKFLOW BUILDER CANVAS ═══════════════════════ */
.wf-canvas-wrap {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  overflow: hidden;
  padding: 28px 28px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 80px -20px rgba(0,0,0,0.4);
}
.dark .wf-canvas-wrap {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border-color: rgba(255,255,255,0.06);
}

.wf-canvas-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(45,212,191,0.10) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Column headers */
.wf-col-headers {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}
.wf-col-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.wf-col-label:nth-of-type(1) { justify-self: start; padding-left: 6px; }
.wf-col-label:nth-of-type(2) { grid-column: 3; justify-self: center; }
.wf-col-label:nth-of-type(3) { grid-column: 5; justify-self: end; padding-right: 6px; }
.wf-col-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px 1px currentColor;
}
.wf-col-label--trigger   { color: #5eead4; }
.wf-col-label--action    { color: #a5b4fc; }
.wf-col-label--condition { color: #fcd34d; }

/* Rows of [node][link][node][link][node] */
.wf-flow {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wf-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: center;
}

/* Connector segments — animated gradient stroke */
.wf-link {
  width: 100%; height: 24px;
  position: relative;
  pointer-events: none;
}
.wf-link svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wf-link-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}
.wf-canvas-wrap.in-view .wf-link-path {
  stroke-dashoffset: 0;
  opacity: 1;
}
/* Stagger draw per row & segment */
.wf-canvas-wrap.in-view .wf-row:nth-child(1) .wf-link--ta .wf-link-path { transition-delay: 0.15s; }
.wf-canvas-wrap.in-view .wf-row:nth-child(1) .wf-link--ac .wf-link-path { transition-delay: 0.35s; }
.wf-canvas-wrap.in-view .wf-row:nth-child(2) .wf-link--ta .wf-link-path { transition-delay: 0.30s; }
.wf-canvas-wrap.in-view .wf-row:nth-child(2) .wf-link--ac .wf-link-path { transition-delay: 0.50s; }
.wf-canvas-wrap.in-view .wf-row:nth-child(3) .wf-link--ta .wf-link-path { transition-delay: 0.45s; }
.wf-canvas-wrap.in-view .wf-row:nth-child(3) .wf-link--ac .wf-link-path { transition-delay: 0.65s; }

/* Arrow head at the end of each link */
.wf-link::after {
  content: '';
  position: absolute;
  top: 50%; right: -2px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--wf-arrow, #6366f1);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wf-link--ta::after { --wf-arrow: #6366f1; }
.wf-link--ac::after { --wf-arrow: #f59e0b; }
.wf-canvas-wrap.in-view .wf-link::after { opacity: 0.9; }

/* Node card */
.wf-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  min-height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1.5px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.wf-node::before {
  /* Left accent bar */
  content: '';
  position: absolute;
  top: 10px; bottom: 10px; left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--wf-color, #14b8a6);
  box-shadow: 0 0 12px var(--wf-color, #14b8a6);
}
.wf-node:hover {
  transform: translateY(-2px);
  border-color: var(--wf-color, #14b8a6);
  box-shadow: 0 0 0 1px var(--wf-color, #14b8a6),
              0 12px 32px -10px var(--wf-color, #14b8a6);
}
/* Right-side connector dot (where the line attaches) */
.wf-trigger::after,
.wf-action::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--wf-color, #14b8a6);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.18),
              0 0 12px var(--wf-color, #14b8a6);
  transform: translateY(-50%);
  z-index: 3;
}
.wf-action::after { box-shadow: 0 0 0 4px rgba(99,102,241,0.18), 0 0 12px #6366f1; }

/* Use distinct visual for the condition card (dashed) */
.wf-condition {
  border-style: dashed;
  border-color: rgba(245,158,11,0.45);
  background: linear-gradient(180deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
}
.wf-condition::before { background: #f59e0b; box-shadow: 0 0 12px #f59e0b; }
.wf-condition:hover { border-color: #f59e0b; }

.wf-node-kind {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--wf-color, #14b8a6);
  text-transform: uppercase;
  opacity: 0.9;
}
.wf-node-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
}

/* Subtle pulse on trigger left bar */
.wf-trigger::before {
  animation: wf-bar-pulse 2.4s ease-in-out infinite;
}
@keyframes wf-bar-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Mobile: stack vertically, connectors become vertical lines */
@media (max-width: 768px) {
  .wf-canvas-wrap { padding: 22px 14px 26px; }
  .wf-col-headers { display: none; }
  .wf-flow { gap: 14px; }
  .wf-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .wf-link {
    height: 22px;
    width: 2px;
    margin: 0 auto;
    justify-self: center;
  }
  .wf-link svg {
    transform: rotate(90deg);
    transform-origin: center;
    width: 22px; height: 22px;
  }
  .wf-link::after {
    top: auto; right: 50%;
    bottom: -4px;
    transform: translateX(50%) rotate(90deg);
  }
  .wf-trigger::after,
  .wf-action::after {
    top: auto; right: 50%;
    bottom: -6px;
    transform: translateX(50%);
  }
}

/* RTL: flip connectors and arrows */
[dir="rtl"] .wf-row { direction: rtl; }
[dir="rtl"] .wf-link svg { transform: scaleX(-1); }
[dir="rtl"] .wf-link::after {
  right: auto; left: -2px;
  border-width: 5px 7px 5px 0;
  border-color: transparent var(--wf-arrow, #6366f1) transparent transparent;
}
[dir="rtl"] .wf-trigger::after,
[dir="rtl"] .wf-action::after { right: auto; left: -6px; }
[dir="rtl"] .wf-node::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }

/* ═══════════════════════ CRM INTEGRATIONS ═══════════════════════ */
.crm-card .fc-icon-wrap.hubspot  { background: linear-gradient(135deg, rgba(255,90,30,0.12), rgba(255,125,50,0.08)); }
.crm-card .fc-icon-wrap.salesforce { background: linear-gradient(135deg, rgba(0,161,224,0.12), rgba(0,130,200,0.08)); }
.crm-card .fc-icon-wrap.pipedrive { background: linear-gradient(135deg, rgba(54,179,94,0.12), rgba(40,140,70,0.08)); }
.crm-card .fc-icon-wrap.zoho     { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(200,40,40,0.08)); }

/* ═══════════════════════ AI CAPABILITIES ═══════════════════════ */
.ai-card .fc-icon-wrap {
  border: 1px solid rgba(139,92,246,0.18);
}
.ai-card:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 24px 48px -18px rgba(139,92,246,0.18),
              0 8px 16px -8px rgba(99,102,241,0.08);
}
.dark .ai-card:hover {
  border-color: rgba(167,139,250,0.30);
  box-shadow: 0 24px 48px -18px rgba(139,92,246,0.22),
              0 8px 16px -8px rgba(0,0,0,0.5);
}

/* ═══════════════════════ ENTERPRISE SECURITY ═══════════════════════ */
.ent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ent-grid { grid-template-columns: repeat(3, 1fr); } }

.ent-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dark .ent-item {
  background: rgba(15,23,42,0.50);
  border-color: rgba(255,255,255,0.06);
}
.ent-item:hover {
  transform: translateY(-3px);
  border-color: rgba(13,148,136,0.28);
  box-shadow: 0 12px 32px -12px rgba(13,148,136,0.18);
}
.ent-icon {
  width: 42px; height: 42px;
  border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -4px rgba(15,23,42,0.20);
}
.ent-label {
  font-size: 0.875rem; font-weight: 700;
  color: #0f172a; margin-bottom: 2px;
}
.dark .ent-label { color: #f1f5f9; }
.ent-sub  {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.5;
}
.ent-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; padding: 2px 8px;
  border-radius: 9999px; font-size: 10px; font-weight: 700;
  background: linear-gradient(135deg, rgba(13,148,136,0.10), rgba(99,102,241,0.08));
  border: 1px solid rgba(13,148,136,0.20);
  color: #0f766e;
}
.dark .ent-badge {
  background: linear-gradient(135deg, rgba(45,212,191,0.14), rgba(129,140,248,0.10));
  border-color: rgba(45,212,191,0.25); color: #5eead4;
}
.ent-badge::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 9999px; background: currentColor; opacity: 0.7;
}

/* ═══════════════════════ 3D TILT + LIGHTWEIGHT ANIMATIONS ═══════════════════════ */

/* ─── 3D Tilt Container ─── */
.tilt-3d {
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.tilt-3d:hover {
  transition: transform 0.08s ease-out;
}
.tilt-3d-content {
  transform-style: preserve-3d;
  pointer-events: none;
}
.tilt-3d-content > * { pointer-events: auto; }

.tilt-3d-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
    rgba(255, 255, 255, 0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tilt-3d:hover .tilt-3d-shine { opacity: 1; }

/* 3D tilting feature cards */
.fc-enterprise.tilt-3d { transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; }
.fc-enterprise.tilt-3d:hover { transition: transform 0.08s ease-out; }

/* ─── Floating / Bobbing Keyframes ─── */
@keyframes float-bob-subtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes float-bob-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes float-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.float-bob  { animation: float-bob-subtle 4s ease-in-out infinite; }
.float-bob-slow { animation: float-bob-slow 6s ease-in-out infinite; }
.float-bob-d1 { animation-delay: 0s; }
.float-bob-d2 { animation-delay: 1.2s; }
.float-bob-d3 { animation-delay: 2.4s; }
.float-bob-d4 { animation-delay: 3.6s; }

/* ─── Pulse / Breathe Animation ─── */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(13, 148, 136, 0); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}
.breathe { animation: breathe 4s ease-in-out infinite; }

.pulse-soft { animation: pulse-soft 2.5s ease-in-out infinite; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}
.pulse-ring { animation: pulse-ring 2.2s ease-in-out infinite; }

/* ─── 3D Scroll Reveal Variants ─── */
.sr.sr-3d-flip {
  transform: perspective(800px) rotateX(12deg) rotateY(-8deg) translateY(24px);
}
.sr.sr-3d-flip.is-visible {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(0) !important;
}
.sr.sr-3d-rise {
  transform: perspective(600px) translateZ(-40px) translateY(32px);
}
.sr.sr-3d-rise.is-visible {
  transform: perspective(600px) translateZ(0) translateY(0) !important;
}

/* ─── Animated Gradient Border (glow-border) ─── */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    #0e9f87, #6366f1, #ec4899, #f59e0b, #0e9f87
  );
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: glowShimmer 4s linear infinite;
  pointer-events: none;
}
.glow-border:hover::after { opacity: 1; }

@keyframes glowShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ─── Animated Gradient Background ─── */
.bg-animate-mesh {
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.08) 0%,
    rgba(99, 102, 241, 0.06) 25%,
    rgba(236, 72, 153, 0.04) 50%,
    rgba(99, 102, 241, 0.06) 75%,
    rgba(13, 148, 136, 0.08) 100%
  );
  background-size: 400% 400%;
  animation: meshShift 12s ease-in-out infinite;
}
@keyframes meshShift {
  0%, 100% { background-position: 0% 50%; }
  25%       { background-position: 100% 0%; }
  50%       { background-position: 100% 100%; }
  75%       { background-position: 0% 100%; }
}

/* ─── Parallax Depth Layers ─── */
.parallax-layer {
  will-change: transform;
  transition: transform 0.05s linear;
}
.parallax-layer-deep  { --parallax-speed: 0.3; }
.parallax-layer-mid   { --parallax-speed: 0.6; }
.parallax-layer-near  { --parallax-speed: 0.9; }

/* ─── Ripple Effect ─── */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-burst 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-burst {
  to { transform: scale(4); opacity: 0; }
}

/* ─── Section Orbs (reusable decorative blur orbs) ─── */
.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.section-orb-teal   { background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 70%); }
.section-orb-indigo { background: radial-gradient(circle, rgba(99, 102, 241, 0.30), transparent 70%); }
.section-orb-pink   { background: radial-gradient(circle, rgba(236, 72, 153, 0.20), transparent 70%); }

@keyframes orb-float-d {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-20px, 30px) scale(1.08); }
  66%       { transform: translate(25px, -15px) scale(0.94); }
}
@keyframes orb-float-e {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -25px) scale(1.12); }
}
.orb-anim-d { animation: orb-float-d 16s ease-in-out infinite; }
.orb-anim-e { animation: orb-float-e 14s ease-in-out 3s infinite; }

/* ─── 3D Buttons ─── */
.btn-3d {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -6px rgba(13, 148, 136, 0.4);
}
.btn-3d:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -4px rgba(13, 148, 136, 0.3);
}

/* ─── Animated Count Badge ─── */
@keyframes badge-pop-in {
  0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.badge-pop { animation: badge-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ─── Shimmer Text ─── */
@keyframes text-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.text-shimmer {
  background: linear-gradient(
    90deg,
    #0e9f87 0%,
    #6366f1 25%,
    #0e9f87 50%,
    #6366f1 75%,
    #0e9f87 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 4s linear infinite;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .tilt-3d { transform: none !important; }
  .tilt-3d-shine { display: none !important; }
  .float-bob, .float-bob-slow { animation: none !important; }
  .breathe { animation: none !important; }
  .pulse-soft, .pulse-ring { animation: none !important; }
  .sr-3d-flip, .sr-3d-rise { transform: none !important; }
  .glow-border::after { animation: none !important; opacity: 0 !important; }
  .bg-animate-mesh { animation: none !important; }
  .ripple-effect { display: none !important; }
  .parallax-layer { transform: none !important; }
  .text-shimmer { animation: none !important; }
  .section-orb { animation: none !important; }
  .btn-3d:hover { transform: none !important; }
  .badge-pop { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─── Responsive Mobile Nav ─── */
.mobile-nav-link {
  position: relative;
}
.mobile-nav-link:active {
  transform: scale(0.98);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Backdrop fade-in */
[data-mobile-menu-backdrop] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-mobile-menu-backdrop].mobile-backdrop-visible {
  opacity: 1;
}

/* LTR: menu slides in from the right */
#mobile-menu {
  right: -100%;
  left: auto;
}
#mobile-menu.mobile-menu-open {
  right: 0 !important;
}

/* RTL: menu slides in from the left */
[dir="rtl"] #mobile-menu {
  left: -100%;
  right: auto !important;
}
[dir="rtl"] #mobile-menu.mobile-menu-open {
  left: 0;
}

/* Compact nav bar CTA on tiny screens */
@media (max-width: 359px) {
  nav .btn-primary {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
    gap: 4px;
  }
  nav .btn-primary svg {
    width: 12px;
    height: 12px;
  }
}
