/* ────────────────────────────────────────────────────────────
   All Service Leads — Premium FX Styles
   Particle canvas, cursor glow, scroll progress, text
   scramble, card tilt, noise texture, section dividers.
   ──────────────────────────────────────────────────────────── */

/* ═══════════════════════════════
   PARTICLE CANVAS (hero bg)
   ═══════════════════════════════ */
.fx-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ═══════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════ */
.fx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ea580c, #f97316, #ea580c);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(234,88,12,0.5), 0 0 30px rgba(234,88,12,0.2);
}

/* ═══════════════════════════════
   CURSOR GLOW (desktop)
   ═══════════════════════════════ */
.fx-cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(234,88,12,0.06) 0%, transparent 70%);
  border-radius: 50%;
  will-change: left, top;
  transition: opacity 0.4s ease;
}

/* ═══════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════ */
.fx-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════
   SECTION DIVIDER GLOW
   ═══════════════════════════════ */
.fx-section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin-bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(234,88,12,0.08) 20%,
    rgba(234,88,12,0.25) 50%,
    rgba(234,88,12,0.08) 80%,
    transparent 100%
  );
}
.fx-section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 7px;
  background: radial-gradient(ellipse, rgba(234,88,12,0.3), transparent);
  filter: blur(3px);
}

/* ═══════════════════════════════
   STEP NUMBER PULSE RING
   ═══════════════════════════════ */
.fx-step-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(234,88,12,0.3);
  animation: fx-ring-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes fx-ring-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.step-item:nth-child(2) .fx-step-ring { animation-delay: 0.3s; }
.step-item:nth-child(3) .fx-step-ring { animation-delay: 0.6s; }
.step-item:nth-child(4) .fx-step-ring { animation-delay: 0.9s; }

/* ═══════════════════════════════
   TYPING CURSOR
   ═══════════════════════════════ */
.fx-typing-cursor {
  display: inline-block;
  color: var(--accent, #ea580c);
  font-weight: 300;
  margin-left: 2px;
  animation: fx-blink 0.7s step-end infinite;
  transition: opacity 0.5s ease;
}

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

/* hero headline — no word splitting, clean text */

/* ═══════════════════════════════
   CARD TILT — preserve-3d + smooth
   ═══════════════════════════════ */
.feature-card,
.product-highlight-card,
.dash-stat-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ═══════════════════════════════
   ENHANCED CARD HOVER GLOW
   ═══════════════════════════════ */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(234,88,12,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card { position: relative; overflow: hidden; }

/* ═══════════════════════════════
   HERO PRICE CHIP SHIMMER
   ═══════════════════════════════ */
.hero-price-chip {
  position: relative;
  overflow: hidden;
}
.hero-price-chip::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  animation: fx-shimmer 4s ease-in-out infinite;
}

@keyframes fx-shimmer {
  0%   { left: -100%; }
  40%  { left: 150%; }
  100% { left: 150%; }
}

/* phone mockup — no float animation, clean */

/* ═══════════════════════════════
   DASHBOARD MOCK SUBTLE GLOW
   ═══════════════════════════════ */
.dash-frame {
  position: relative;
}
.dash-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(234,88,12,0.15),
    transparent 40%,
    transparent 60%,
    rgba(234,88,12,0.1)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.dash-frame:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════
   HERO TRUST BAR ANIMATION
   ═══════════════════════════════ */
.trust-item {
  opacity: 0;
  transform: translateY(8px);
  animation: fx-trust-in 0.6s ease forwards;
}
.trust-item:nth-child(1) { animation-delay: 1.6s; }
.trust-item:nth-child(2) { animation-delay: 1.8s; }
.trust-item:nth-child(3) { animation-delay: 2.0s; }

@keyframes fx-trust-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   ACCENT LINE DRAW
   ═══════════════════════════════ */
.accent-line.drawn {
  animation: fx-line-draw 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes fx-line-draw {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

/* ═══════════════════════════════
   STEP NUMBER ICON HOVER
   ═══════════════════════════════ */
.step-num {
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.step-item:hover .step-num {
  background: var(--accent, #ea580c);
  border-color: var(--accent, #ea580c);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(234,88,12,0.3);
}
.step-item:hover .step-num svg {
  stroke: white;
  transition: stroke 0.3s ease;
}

/* ═══════════════════════════════
   PRODUCT BADGE GLOW
   ═══════════════════════════════ */
.product-badge {
  position: relative;
  overflow: hidden;
}
.product-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: fx-shimmer 5s ease-in-out infinite 1s;
}

/* ═══════════════════════════════
   SMS BUBBLES GLOW
   ═══════════════════════════════ */
.sms-bubble {
  transition: box-shadow 0.4s ease;
}
.sms-bubble:hover {
  box-shadow: 0 4px 24px rgba(234,88,12,0.12);
}

/* ═══════════════════════════════
   HERO LOGO FLOAT (subtle orbit)
   ═══════════════════════════════ */
.hero-logo-float {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 280px;
  height: 280px;
  opacity: 0.03;
  pointer-events: none;
  animation: fx-logo-orbit 20s linear infinite;
  z-index: 0;
}

@keyframes fx-logo-orbit {
  0%   { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

/* ═══════════════════════════════
   GLOBAL SMOOTH SCROLL FEEL
   ═══════════════════════════════ */
html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════
   REDUCED MOTION — kill animations
   ═══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fx-particle-canvas,
  .fx-cursor-glow,
  .fx-noise,
  .fx-scroll-progress {
    display: none !important;
  }
}

/* ═══════════════════════════════
   REVEAL LINE WIPE
   ═══════════════════════════════ */
.fx-reveal-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ea580c, transparent);
  transform-origin: left center;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(234,88,12,0.4);
}

/* ═══════════════════════════════
   FLOATING ORBS — ambient BG
   ═══════════════════════════════ */
.fx-orbs-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.04) 0%, transparent 70%);
  filter: blur(60px);
  animation: fx-orb-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes fx-orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(80px, -60px) scale(1.15); }
  50%  { transform: translate(-40px, 100px) scale(0.9); }
  75%  { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-80px, -80px) scale(1); }
}

/* ═══════════════════════════════
   GLITCH PULSE on price chip
   ═══════════════════════════════ */
.fx-glitch-active {
  animation: fx-glitch 0.15s ease;
}

@keyframes fx-glitch {
  0%   { transform: translate(0); filter: none; }
  20%  { transform: translate(-2px, 1px); filter: hue-rotate(10deg); }
  40%  { transform: translate(2px, -1px); filter: hue-rotate(-10deg); }
  60%  { transform: translate(-1px, -1px); }
  80%  { transform: translate(1px, 1px); filter: hue-rotate(5deg); }
  100% { transform: translate(0); filter: none; }
}

/* ═══════════════════════════════
   HERO GRADIENT PULSE
   ═══════════════════════════════ */
.fx-hero-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: fx-hero-breathe 5s ease-in-out infinite;
}

@keyframes fx-hero-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ═══════════════════════════════
   STEP CONNECTOR LINE DRAW
   ═══════════════════════════════ */
.fx-step-draw-line {
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, #ea580c, #f97316);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(234,88,12,0.3);
}

/* ═══════════════════════════════
   SCROLL INDICATOR ARROW
   ═══════════════════════════════ */
.fx-scroll-arrow {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  animation: fx-arrow-bounce 1.5s ease-in-out infinite, fx-arrow-fadein 0.8s 2s ease forwards;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes fx-arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes fx-arrow-fadein {
  to { opacity: 0.5; }
}

/* ═══════════════════════════════
   SCROLL VELOCITY TILT
   ═══════════════════════════════ */
.how-it-works,
.product-highlight,
.features,
.dash-preview {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ═══════════════════════════════
   FAQ SMOOTH ACCORDION
   ═══════════════════════════════ */
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open .faq-a {
  max-height: 500px;
}
.faq-item.open .faq-q::after {
  transform: rotate(180deg);
}
.faq-q::after {
  transition: transform 0.3s ease;
}

/* ═══════════════════════════════
   SECTION HEADINGS — safe scramble
   ═══════════════════════════════ */
.section-heading,
.section-heading-plain {
  position: relative;
}

/* ═══════════════════════════════
   GLOBAL TEXT ANTI-CLIP
   Tight letter-spacing + overflow:hidden
   clips descenders, ascenders, and last chars.
   ═══════════════════════════════ */
h1, h2, h3,
.section-heading,
.section-heading-plain,
.hero-price-chip,
.product-highlight-card h3,
.feature-card h3,
.step-item h3,
.product-main h1,
.dark-cta-content h2 {
  padding-right: 0.04em;
  padding-bottom: 0.06em;
}

/* ═══════════════════════════════
   MOBILE — disable heavy effects
   ═══════════════════════════════ */
@media (max-width: 767px) {
  .fx-cursor-glow { display: none; }
  .fx-particle-canvas { opacity: 0.4; }
  .hero-logo-float { display: none; }
  .phone-frame { animation: none; }
  .fx-orbs-container { display: none; }
  .fx-scroll-arrow { display: none; }
  .fx-hero-pulse { width: 300px; height: 300px; }
}
