/* ═══════════════════════════════════════════════════════════
   HOME THEME — Colour, animated backgrounds, motion (loads last)
   ═══════════════════════════════════════════════════════════ */

.page-home main > section {
  position: relative;
  overflow: hidden;
}

/* ─── Animated mesh backgrounds ─── */
@keyframes mesh-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}

@keyframes border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shine-sweep {
  0% { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

@keyframes gradient-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ─── Hero colour boost ─── */
.page-home .hero-ai-grid {
  opacity: 0.5 !important;
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.page-home .hero-ai-fallback {
  background:
    radial-gradient(ellipse 70% 55% at 75% 40%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 25% 70%, rgba(61, 184, 191, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 10%, rgba(244, 114, 182, 0.1), transparent 50%),
    #050a12 !important;
}

.page-home .text-gradient {
  background: linear-gradient(135deg, #fff 0%, #3db8bf 30%, #8b5cf6 60%, #f472b6 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: gradient-text 6s ease infinite !important;
}

.page-home .hero-showcase-main {
  border-color: rgba(61, 184, 191, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(139, 92, 246, 0.15);
}

/* ─── Expertise: teal + violet mesh ─── */
.page-home .expertise-section {
  background:
    linear-gradient(135deg, rgba(61, 184, 191, 0.08) 0%, transparent 40%, rgba(139, 92, 246, 0.08) 100%),
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(61, 184, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(139, 92, 246, 0.1), transparent 50%),
    var(--bg-primary) !important;
  border-bottom: 1px solid rgba(61, 184, 191, 0.12);
}

.page-home .expertise-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  filter: blur(80px);
  animation: orb-drift 14s ease-in-out infinite;
  pointer-events: none;
}

.page-home .expertise-card {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s !important;
}

.page-home .expertise-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transition: opacity 0.35s;
  pointer-events: none;
}

.page-home .expertise-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}

.page-home .expertise-card:hover::after {
  opacity: 1;
  animation: shine-sweep 0.8s ease forwards;
}

.page-home .expertise-card--teal:hover { border-color: rgba(61, 184, 191, 0.5) !important; box-shadow: 0 16px 40px rgba(61, 184, 191, 0.15) !important; }
.page-home .expertise-card--gold:hover { border-color: rgba(201, 169, 98, 0.5) !important; box-shadow: 0 16px 40px rgba(201, 169, 98, 0.12) !important; }
.page-home .expertise-card--violet:hover { border-color: rgba(139, 92, 246, 0.5) !important; box-shadow: 0 16px 40px rgba(139, 92, 246, 0.15) !important; }
.page-home .expertise-card--green:hover { border-color: rgba(52, 211, 153, 0.5) !important; box-shadow: 0 16px 40px rgba(52, 211, 153, 0.12) !important; }
.page-home .expertise-card--coral:hover { border-color: rgba(244, 114, 182, 0.5) !important; box-shadow: 0 16px 40px rgba(244, 114, 182, 0.12) !important; }

/* ─── Stats: animated gradient band ─── */
.page-home .stats-strip {
  background: linear-gradient(
    90deg,
    rgba(61, 184, 191, 0.12) 0%,
    rgba(139, 92, 246, 0.1) 35%,
    rgba(201, 169, 98, 0.08) 65%,
    rgba(52, 211, 153, 0.1) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: mesh-shift 12s ease infinite !important;
  border-block: 1px solid rgba(61, 184, 191, 0.15) !important;
}

.page-home .stat-card--teal .stat-number { color: #5eead4 !important; }
.page-home .stat-card--gold .stat-number { color: #f0d78c !important; }
.page-home .stat-card--orange .stat-number { color: #fbbf24 !important; }
.page-home .stat-card--violet .stat-number { color: #c4b5fd !important; }

/* ─── Logos: soft coral wash ─── */
.page-home .logos-section {
  background:
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(244, 114, 182, 0.06), transparent 60%),
    var(--bg-primary) !important;
}

.page-home .logo-card:nth-child(1) { border-top: 2px solid rgba(61, 184, 191, 0.5); }
.page-home .logo-card:nth-child(2) { border-top: 2px solid rgba(244, 114, 182, 0.5); }
.page-home .logo-card:nth-child(3) { border-top: 2px solid rgba(201, 169, 98, 0.5); }
.page-home .logo-card:nth-child(4) { border-top: 2px solid rgba(139, 92, 246, 0.5); }

/* ─── AI agents: vivid violet ─── */
.page-home .ai-agents-section {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.14) 0%, transparent 30%, rgba(61, 184, 191, 0.06) 100%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(139, 92, 246, 0.15), transparent 55%),
    var(--bg-primary) !important;
  border-block: 1px solid rgba(139, 92, 246, 0.15) !important;
}

.page-home .ai-agents-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(61, 184, 191, 0.1);
  filter: blur(70px);
  animation: orb-drift 16s ease-in-out infinite reverse;
  pointer-events: none;
}

.page-home .ai-agents-hero-card {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(139, 92, 246, 0.12) !important;
}

.page-home .agent-card {
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s !important;
}

.page-home .agent-card:hover {
  transform: translateY(-5px) !important;
}

.page-home .agent-card--whatsapp:hover { box-shadow: 0 12px 32px rgba(37, 211, 102, 0.15) !important; }
.page-home .agent-card--meta:hover { box-shadow: 0 12px 32px rgba(167, 139, 250, 0.15) !important; }
.page-home .agent-card--sms:hover { box-shadow: 0 12px 32px rgba(245, 158, 66, 0.15) !important; }
.page-home .agent-card--outbound:hover { box-shadow: 0 12px 32px rgba(244, 114, 182, 0.15) !important; }
.page-home .agent-card--gmail:hover { box-shadow: 0 12px 32px rgba(96, 165, 250, 0.15) !important; }
.page-home .agent-card--chat:hover { box-shadow: 0 12px 32px rgba(52, 211, 153, 0.15) !important; }

/* ─── CTA strip: warm coral gradient ─── */
.page-home .cta-strip {
  background: transparent !important;
}

.page-home .cta-strip-inner {
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.12) 0%,
    rgba(139, 92, 246, 0.1) 50%,
    rgba(61, 184, 191, 0.1) 100%
  ) !important;
  background-size: 200% 200% !important;
  animation: mesh-shift 10s ease infinite !important;
  border: 1px solid rgba(244, 114, 182, 0.2) !important;
  border-radius: var(--radius-lg) !important;
}

/* ─── Featured work: green mesh ─── */
.page-home .featured-work {
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(52, 211, 153, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(61, 184, 191, 0.08), transparent 50%),
    var(--bg-primary) !important;
  border-block: 1px solid rgba(52, 211, 153, 0.1) !important;
}

.page-home .bento-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.page-home .bento-item:hover {
  border-color: rgba(61, 184, 191, 0.4) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(61, 184, 191, 0.1) !important;
}

.page-home .bento-result {
  color: #5eead4 !important;
}

/* ─── Testimonials: override calm flat tint ─── */
.page-home .testimonials {
  background:
    radial-gradient(ellipse 55% 50% at 100% 50%, rgba(244, 114, 182, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 80%, rgba(61, 184, 191, 0.08), transparent 50%),
    var(--bg-surface) !important;
  border-block: 1px solid rgba(244, 114, 182, 0.1) !important;
}

.page-home .testimonial-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s !important;
}

.page-home .testimonial-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(61, 184, 191, 0.3) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

.page-home .testimonial-stars {
  color: #fbbf24 !important;
}

/* ─── How we work: gold warm (override calm) ─── */
.page-home .how-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 90%, rgba(245, 158, 66, 0.08), transparent 50%),
    var(--bg-primary) !important;
  border-block: 1px solid rgba(201, 169, 98, 0.12) !important;
}

.page-home .how-step {
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s !important;
}

.page-home .how-step:hover {
  border-color: rgba(201, 169, 98, 0.35) !important;
  box-shadow: 0 12px 28px rgba(201, 169, 98, 0.1) !important;
}

.page-home .how-step:nth-child(1) .how-step-num { color: #5eead4 !important; }
.page-home .how-step:nth-child(2) .how-step-num { color: #c4b5fd !important; }
.page-home .how-step:nth-child(3) .how-step-num { color: #f0d78c !important; }
.page-home .how-step:nth-child(4) .how-step-num { color: #f9a8d4 !important; }

/* ─── FAQ: gold accent ─── */
.page-home .faq-preview-section {
  background:
    radial-gradient(ellipse 50% 45% at 20% 100%, rgba(201, 169, 98, 0.1), transparent 55%),
    var(--bg-surface) !important;
  border-block: 1px solid rgba(201, 169, 98, 0.12) !important;
}

.page-home .faq-preview-item {
  border-color: rgba(201, 169, 98, 0.15) !important;
  transition: border-color 0.3s, background 0.3s !important;
}

.page-home .faq-preview-item[open] {
  border-color: rgba(201, 169, 98, 0.35) !important;
  background: rgba(201, 169, 98, 0.04) !important;
}

/* ─── CTA banner: restore glow ─── */
.page-home .cta-banner-glow {
  display: block !important;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(61, 184, 191, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(139, 92, 246, 0.15), transparent 60%);
  animation: glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.page-home .cta-banner-inner {
  border: 1px solid rgba(61, 184, 191, 0.2) !important;
  background: linear-gradient(
    160deg,
    rgba(15, 28, 46, 0.95) 0%,
    rgba(21, 36, 56, 0.9) 100%
  ) !important;
}

.page-home .cta-banner-photo img {
  opacity: 0.28 !important;
}

/* ─── Section header accents ─── */
.page-home .section-header--center h2::after {
  background: linear-gradient(90deg, #3db8bf, #8b5cf6, #f472b6) !important;
  background-size: 200% 100% !important;
  animation: border-flow 4s linear infinite !important;
  opacity: 1 !important;
  height: 3px !important;
  width: 48px !important;
}

.page-home .eyebrow--teal {
  color: #5eead4 !important;
}

/* ─── Floating section orbs (HTML) ─── */
.section-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.section-orbs + .container,
.section-orbs ~ .container {
  position: relative;
  z-index: 1;
}

.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-drift 18s ease-in-out infinite;
}

.section-orb--teal {
  width: 280px;
  height: 280px;
  background: rgba(61, 184, 191, 0.15);
  top: 10%;
  left: -5%;
}

.section-orb--violet {
  width: 320px;
  height: 320px;
  background: rgba(139, 92, 246, 0.12);
  bottom: 5%;
  right: -8%;
  animation-delay: -6s;
}

.section-orb--coral {
  width: 240px;
  height: 240px;
  background: rgba(244, 114, 182, 0.1);
  top: 40%;
  right: 10%;
  animation-delay: -3s;
}

.section-orb--gold {
  width: 260px;
  height: 260px;
  background: rgba(201, 169, 98, 0.1);
  bottom: 20%;
  left: 15%;
  animation-delay: -9s;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .text-gradient,
  .page-home .stats-strip,
  .page-home .cta-strip-inner,
  .page-home .section-header--center h2::after,
  .page-home .hero-ai-grid,
  .page-home .cta-banner-glow,
  .section-orb,
  .page-home .expertise-section::before,
  .page-home .ai-agents-section::after {
    animation: none !important;
  }

  .page-home .expertise-card:hover::after {
    animation: none !important;
  }
}
