/*
==============================================
EASYTENANCY — GLASS MORPHISM & EFFECTS
Version 3.0 | 2026 | Blue Kenya Theme
==============================================
Blue colour palette (replaces all previous
green / purple overrides):
  --primary  #0B54B7
  --cyan     #27B2F6
  --navy     #040E1A
==============================================
*/

/* ── DESIGN TOKENS ───────────────────────── */
:root {
  /* Glass surfaces */
  --glass-bg:          rgba(11, 25, 40, 0.75);
  --glass-bg-light:    rgba(39, 178, 246, 0.06);
  --glass-border:      rgba(39, 178, 246, 0.18);
  --glass-blur:        14px;
  --glass-saturate:    160%;

  /* Glows */
  --glow-blue:         0 0 40px rgba(11, 84, 183, 0.35);
  --glow-cyan:         0 0 40px rgba(39, 178, 246, 0.30);
  --glow-green:        0 0 30px rgba(60, 207, 145, 0.25);
  --glow-gold:         0 0 30px rgba(246, 184, 39, 0.25);

  /* Neon strokes */
  --neon-blue:         rgba(11,  84, 183, 0.7);
  --neon-cyan:         rgba(39, 178, 246, 0.7);
  --neon-green:        rgba(60, 207, 145, 0.7);

  /* Rotating Banner */
  --banner-h:          44px;
}

/* ── MAGNETIC CURSOR ─────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  opacity: 0.6;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--primary);
  opacity: 0.4;
}

.cursor-ring.click {
  width: 20px;
  height: 20px;
  opacity: 1;
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── PARTICLE CANVAS ─────────────────────── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

/* ── SCROLL PROGRESS BAR ─────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* ── AI ANNOUNCEMENT BANNER ──────────────── */
.ai-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, #0B54B7 0%, #073A84 40%, #27B2F6 100%);
  overflow: hidden;
  z-index: 900;
}

.ai-banner::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: banner-shimmer 4s linear infinite;
}

@keyframes banner-shimmer {
  to { left: 100%; }
}

.ai-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  position: relative;
  z-index: 1;
}

.ai-banner-icon {
  font-size: 16px;
  animation: spin-slow 4s linear infinite;
  color: #fff;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.ai-banner-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ai-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ai-banner-cta:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.ai-banner-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  margin-left: auto;
}

.ai-banner-close:hover { color: #fff; }

.ai-banner.hidden { display: none; }

/* ── ROTATING LIVE BANNER ────────────────── */
.rotating-banner {
  position: relative;
  width: 100%;
  height: var(--banner-h);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  z-index: 800;
}

.rotating-banner::before,
.rotating-banner::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.rotating-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 100%);
}

.rotating-banner::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy) 0%, transparent 100%);
}

.rotating-banner-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: scroll-banner 35s linear infinite;
  white-space: nowrap;
}

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

.rotating-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  border-right: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.rotating-banner-item i {
  color: var(--cyan);
  font-size: 12px;
}

@keyframes scroll-banner {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVBAR GLASS ────────────────────────── */
.navbar {
  background: rgba(4, 14, 26, 0.82) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 1px 0 rgba(39,178,246,0.07),
              0 8px 32px rgba(4,14,26,0.5) !important;
}

.navbar.scrolled {
  background: rgba(4, 14, 26, 0.96) !important;
  box-shadow: 0 1px 0 rgba(39,178,246,0.12),
              0 12px 40px rgba(4,14,26,0.7) !important;
}

/* ── GLASS DROPDOWN ──────────────────────── */
.nav-dropdown {
  background: rgba(11, 25, 40, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 20px 60px rgba(4,14,26,0.7),
              0 0 0 1px rgba(39,178,246,0.06) !important;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 12px 12px 0 0;
}

/* ── GLASS CARDS (landing page) ──────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glow-blue);
}

.glass-card:hover {
  border-color: rgba(39,178,246,0.35);
  box-shadow: var(--glow-cyan);
}

/* ── BENTO CARDS GLASS ───────────────────── */
.bento-card {
  background: rgba(11, 25, 40, 0.85) !important;
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border) !important;
}

.bento-card:hover {
  border-color: rgba(39,178,246,0.40) !important;
  box-shadow: 0 0 0 1px rgba(39,178,246,0.12),
              0 12px 40px rgba(11,84,183,0.20) !important;
}

.bento-highlight {
  background: rgba(11, 84, 183, 0.12) !important;
  border-color: rgba(39,178,246,0.35) !important;
  box-shadow: var(--glow-blue) !important;
}

/* ── HERO DASHBOARD MOCKUP ───────────────── */
.dashboard-mockup {
  background: rgba(11, 25, 40, 0.90) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glow-blue),
              0 0 0 1px rgba(39,178,246,0.05) !important;
}

/* ── PRICING CARDS GLASS ─────────────────── */
.pricing-card {
  background: rgba(17, 30, 46, 0.85) !important;
  backdrop-filter: blur(12px) saturate(160%);
}

.pricing-card.featured {
  background: rgba(11, 84, 183, 0.15) !important;
  border-color: var(--cyan) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* ── TESTIMONIAL CARDS ───────────────────── */
.testimonial-card {
  background: rgba(11, 25, 40, 0.85) !important;
  backdrop-filter: blur(12px) saturate(160%);
}

.testimonial-card.featured {
  background: rgba(11, 84, 183, 0.12) !important;
  border-color: rgba(39,178,246,0.4) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* ── COMPLIANCE & SHIELD CARDS ───────────── */
.shield-card,
.deadlines-card {
  background: rgba(11, 25, 40, 0.85) !important;
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border) !important;
}

.shield-card:hover {
  border-color: rgba(39,178,246,0.35) !important;
  box-shadow: var(--glow-cyan) !important;
}

/* ── PAIN CARDS (problem section) ────────── */
.pain-card {
  background: rgba(240, 82, 82, 0.06) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(240,82,82,0.18) !important;
}

.solution-card {
  background: rgba(11, 84, 183, 0.08) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(39,178,246,0.20) !important;
}

/* ── AI CHAT DEMO ────────────────────────── */
.ai-chat-demo {
  background: rgba(17, 30, 46, 0.90) !important;
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glow-blue) !important;
}

/* ── FAQ CARDS ───────────────────────────── */
.faq-item {
  background: rgba(11, 25, 40, 0.80) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border) !important;
}

.faq-item:hover {
  border-color: rgba(39,178,246,0.30) !important;
}

/* ── FLOAT CARDS ─────────────────────────── */
.float-card {
  background: rgba(4, 14, 26, 0.92) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  border: 1px solid rgba(39,178,246,0.20) !important;
  box-shadow: 0 16px 48px rgba(4,14,26,0.5),
              0 0 0 1px rgba(39,178,246,0.04) !important;
}

/* ── REGULATORY BADGES ───────────────────── */
.reg-badge {
  background: rgba(11, 25, 40, 0.70) !important;
  backdrop-filter: blur(8px);
}

.reg-badge:hover {
  background: rgba(39,178,246,0.08) !important;
  box-shadow: 0 4px 16px rgba(39,178,246,0.12) !important;
}

/* ── FOOTER GLASS ────────────────────────── */
.footer {
  background: rgba(11, 25, 40, 0.95) !important;
  backdrop-filter: blur(12px);
}

/* ── CLICK RIPPLE ────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(39, 178, 246, 0.25);
  transform: scale(0);
  animation: ripple-expand 0.55s linear forwards;
  pointer-events: none;
  z-index: 999;
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── REFLECTION RINGS (click) ────────────── */
.reflect-ring {
  position: fixed;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  pointer-events: none;
  z-index: 9997;
  animation: reflect-grow 0.65s ease-out forwards;
}

@keyframes reflect-grow {
  from {
    width: 0; height: 0;
    opacity: 0.8;
    transform: translate(-50%, -50%);
  }
  to {
    width: 80px; height: 80px;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

/* ── 3D TILT CARDS ───────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.tilt-card .tilt-inner {
  transform: translateZ(20px);
}

/* ── ZOOM NAVIGATION OVERLAY ─────────────── */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 26, 0.96);
  backdrop-filter: blur(20px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zoom-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.zoom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  width: 90%;
}

.zoom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #fff;
}

.zoom-nav-item:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.zoom-nav-item i {
  font-size: 28px;
  color: var(--cyan);
}

/* ── GLOW BUTTONS ────────────────────────── */
.btn-hero-primary,
.btn-nav-primary,
.btn-final-cta-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-hero-primary::after,
.btn-nav-primary::after,
.btn-final-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-hero-primary:hover {
  box-shadow: 0 8px 32px rgba(11,84,183,0.5),
              0 0 0 1px rgba(39,178,246,0.3) !important;
}

/* ── SECTION DIVIDERS (gradient line) ───── */
section + section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(39,178,246,0.18) 30%,
    rgba(11,84,183,0.18) 70%,
    transparent 100%);
  margin: 0 auto;
  max-width: 800px;
}

/* ── LIVE DOT PULSE ──────────────────────── */
.live-dot {
  width: 8px;
  height: 8px;
  background: #3CCF91;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 2s ease infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60,207,145,0.7); }
  50%       { box-shadow: 0 0 0 6px rgba(60,207,145,0); }
}

/* ── STAT CARD GLOW (hero mockup) ────────── */
.stat-card-highlight {
  box-shadow: 0 0 20px rgba(60,207,145,0.15) !important;
}

/* ── COMPARISON TABLE ROW HOVER ──────────── */
.comparison-table tbody tr:hover td {
  background: rgba(39,178,246,0.04);
}

.comparison-table tbody tr:hover .feature-name {
  color: var(--cyan);
}

/* ── SMOOTH SCROLL HINT ──────────────────── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  animation: bounce-hint 2s ease infinite;
}

.scroll-hint i { font-size: 20px; }

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(8px); opacity: 0.8; }
}

/* ── TIMELINE CONNECTOR GLOW ─────────────── */
.timeline-item::after {
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ── COUNTER SECTION GLOW ────────────────── */
.stats-counter {
  position: relative;
}

.stats-counter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(11,84,183,0.10), transparent 70%);
  pointer-events: none;
}

/* ── MOBILE MENU (full-screen overlay) ───── */
@media (max-width: 1024px) {
  .nav-main.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(4, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    z-index: 9000;
    padding: 80px 32px 32px;
    overflow-y: auto;
    gap: 8px;
    animation: slide-in-left 0.3s ease;
  }

  @keyframes slide-in-left {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
  }

  .nav-main.mobile-active .nav-link {
    font-size: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
  }

  .nav-main.mobile-active .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(255,255,255,0.03) !important;
    margin: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-main.mobile-active .nav-item-wrap.open .nav-dropdown {
    max-height: 600px;
  }

  .nav-main.mobile-active .mega-dropdown {
    min-width: unset !important;
  }

  .nav-main.mobile-active .dropdown-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── MOBILE MENU TOGGLE ANIMATION ────────── */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── BACK-TO-TOP GLOW ────────────────────── */
.back-to-top:hover {
  box-shadow: var(--glow-cyan) !important;
}

/* ── AI CHAT WIDGET PULSE ────────────────── */
.ai-chat-button {
  animation: pulse-chat 3s ease infinite !important;
}

@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 8px 24px rgba(11,84,183,0.35); }
  50%       { box-shadow: 0 8px 32px rgba(11,84,183,0.55),
                          0 0 0 14px rgba(11,84,183,0.08); }
}

/* ── PAGE LOAD STAGGER ───────────────────── */
.hero-left .kenya-badge-hero { animation: fadeInUp 0.7s ease 0.1s both; }
.hero-left .hero-title         { animation: fadeInUp 0.7s ease 0.2s both; }
.hero-left .hero-subtitle      { animation: fadeInUp 0.7s ease 0.3s both; }
.hero-left .social-proof       { animation: fadeInUp 0.7s ease 0.4s both; }
.hero-left .hero-ctas          { animation: fadeInUp 0.7s ease 0.5s both; }
.hero-left .trust-strip        { animation: fadeInUp 0.7s ease 0.6s both; }
.hero-right                    { animation: slideInRight 0.8s ease 0.5s both; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.float-card-1 { animation-delay: 0.8s; }
.float-card-2 { animation-delay: 1.1s; }

/* ── REDUCED MOTION FALLBACK ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .rotating-banner-track,
  .orb,
  .float-card,
  .scroll-hint,
  .ai-banner::before,
  .live-dot,
  .ai-chat-button {
    animation: none !important;
  }
}
