/*
Theme Name: Signal Recovery Software Engine
Theme URI: https://signalrecoverysoftwareengine.com
Author: Signal Recovery Software Engine Team
Author URI: https://signalrecoverysoftwareengine.com
Description: High-performance, dark cyan bento-grid WordPress theme engineered for Signal Recovery Software Engine, Safari ITP 365-day cookie auto-healing, and AI search discovery.
Version: 1.0.5
License: GNU General Public License v2 or later
Text Domain: signal-recovery-engine
*/

:root {
    --bg-0: #05050a;
    --bg-1: #090914;
    --bg-2: #0e0e22;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #22d3ee;
    --text: #e2e8f0;
    --heading: #f8fafc;
}

body {
    background-color: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   HERO AURORA, ORBS, STARS & ORBITS BACKGROUND ENGINE
   ============================================================ */

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

/* Ambient Glow Orbs */
.hero-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 1;
    filter: blur(100px);
    will-change: transform, opacity;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: 10%;
    left: 15%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(8, 145, 178, 0.08) 50%, transparent 70%);
    animation: hero-orb-drift-1 14s ease-in-out infinite alternate;
}

.hero-orb-2 {
    width: 520px;
    height: 520px;
    bottom: 12%;
    right: 12%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 70%);
    animation: hero-orb-drift-2 18s ease-in-out infinite alternate -5s;
}

.hero-orb-3 {
    width: 380px;
    height: 380px;
    top: 48%;
    left: 52%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
    animation: hero-orb-drift-3 12s ease-in-out infinite alternate -8s;
}

@keyframes hero-orb-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-25px, 20px) scale(0.96); }
}

@keyframes hero-orb-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, 35px) scale(1.06); }
    100% { transform: translate(25px, -20px) scale(0.95); }
}

@keyframes hero-orb-drift-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 25px) scale(1.1); }
    100% { transform: translate(-30px, -15px) scale(0.92); }
}

/* Shooting Stars */
.hero-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-star {
    position: absolute;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.9) 0%, rgba(6, 182, 212, 0.4) 60%, transparent 100%);
    border-radius: 9999px;
    filter: drop-shadow(0 0 6px #22d3ee);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-star-1 {
    width: 140px;
    top: 8%;
    left: 12%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 0.3s;
}

.hero-star-2 {
    width: 110px;
    top: 18%;
    right: 28%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 5.1s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1.8s;
}

.hero-star-3 {
    width: 160px;
    top: 42%;
    left: 8%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 4.8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 3.2s;
}

.hero-star-4 {
    width: 130px;
    top: 26%;
    right: 14%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 3.9s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 2.4s;
}

.hero-star-5 {
    width: 90px;
    top: 58%;
    right: 32%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 5.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 4.1s;
}

.hero-star-6 {
    width: 150px;
    top: 68%;
    left: 22%;
    transform: rotate(45deg);
    animation: hero-star-shoot-anim 4.6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1.1s;
}

@keyframes hero-star-shoot-anim {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    45% {
        opacity: 0.7;
    }
    75% {
        transform: translate3d(380px, 380px, 0) rotate(45deg);
        opacity: 0;
    }
    100% {
        transform: translate3d(380px, 380px, 0) rotate(45deg);
        opacity: 0;
    }
}

/* Orbit Rings */
.hero-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 1100px;
    pointer-events: none;
    z-index: 1;
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 9999px;
    transform: translate(-50%, -50%);
}

.hero-orbit-1 {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.04);
    animation: orbit-rotate 40s linear infinite;
}

.hero-orbit-2 {
    width: 780px;
    height: 780px;
    border: 1px dashed rgba(6, 182, 212, 0.09);
    animation: orbit-rotate 65s linear infinite reverse;
}

.hero-orbit-3 {
    width: 1050px;
    height: 1050px;
    border: 1px solid rgba(6, 182, 212, 0.05);
    animation: orbit-rotate 90s linear infinite;
}

.hero-orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee, 0 0 24px rgba(6, 182, 212, 0.8);
}

@keyframes orbit-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================================
   STICKY 3D PIPELINE ("HOW IT WORKS") ENGINE
   ============================================================ */
#how .section-sep { position: sticky; top: 0; }
.how-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}
.how-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s;
  will-change: transform, opacity;
}
.how-bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%);
  top: 10%; left: -5%;
}
.how-bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.1), transparent 70%);
  bottom: 5%; right: -5%;
}
.how-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(6,182,212,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.6;
}
.how-mobile-header {
  display: none;
  text-align: center;
  padding: 0 24px 32px;
  position: relative;
  z-index: 2;
}
.how-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.how-step-counter {
  position: relative;
  width: 100%;
}
.how-big-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(6,182,212,0.15);
  position: relative;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.how-big-num-fill {
  position: absolute;
  inset: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-big-num-fill.visible {
  opacity: 1;
  transform: scaleX(1);
}
.how-left-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-left-label.visible { opacity: 1; transform: translateY(0); }
.how-left-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 200;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}
.how-left-title.visible { opacity: 1; transform: translateY(0); }
.how-progress {
  width: 100%;
  height: 2px;
  background: rgba(6,182,212,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.how-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 10px rgba(6,182,212,0.5);
  border-radius: 2px;
  width: 25%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-dots {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.how-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.25);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.how-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(6,182,212,0.6);
  border-color: var(--accent-light);
  transform: scale(1.3);
}
.how-right {
  position: relative;
  height: 400px;
  perspective: 900px;
}
.how-panel {
  position: absolute;
  inset: 0;
  background: rgba(9,9,20,0.9);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,182,212,0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateZ(-120px) rotateY(8deg) scale(0.92);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: transform, opacity;
  overflow: hidden;
}
.how-panel.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0deg) scale(1);
  pointer-events: auto;
  z-index: 10;
}
.how-panel.behind {
  opacity: 0.15;
  transform: translateZ(-200px) rotateY(-4deg) scale(0.85);
  filter: blur(3px);
}
@keyframes panel-shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%) skewX(-15deg); }
}
.how-panel.active .hp-shimmer {
  animation: panel-shimmer 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s 1;
}
.hp-shimmer {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.08), rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  z-index: 2;
  transform: translateX(-100%) skewX(-15deg);
}
.hp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
  border-radius: 20px;
}
.hp-corner {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 4;
  pointer-events: none;
}
.hp-corner::before, .hp-corner::after {
  content: '';
  position: absolute;
  background: rgba(6,182,212,0.4);
}
.hp-corner::before { width: 16px; height: 1px; }
.hp-corner::after { width: 1px; height: 16px; }
.hp-corner-tl { top: 10px; left: 10px; }
.hp-corner-tl::before { top: 0; left: 0; }
.hp-corner-tl::after { top: 0; left: 0; }
.hp-corner-tr { top: 10px; right: 10px; }
.hp-corner-tr::before { top: 0; right: 0; }
.hp-corner-tr::after { top: 0; right: 0; }
.hp-corner-br { bottom: 10px; right: 10px; }
.hp-corner-br::before { bottom: 0; right: 0; }
.hp-corner-br::after { bottom: 0; right: 0; }
.hp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(6,182,212,0.1);
  position: relative;
  z-index: 2;
}
.hp-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hp-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.hp-header-badge {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 999px;
  padding: 2px 8px;
}
.hp-body {
  padding: 20px 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hp-body p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}
.how-panel-widget {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(6,182,212,0.1);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.hw-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(6,182,212,0.08);
}
.hw-status-label {
  font-size: 0.6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hw-status-val {
  font-size: 0.65rem;
  color: var(--accent-light);
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}
.hw-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hw-int-pill {
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hw-int-pill .hw-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hw-int-pill .hw-status-dot.on {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hw-int-pill .hw-status-dot.off {
  background: rgba(255,255,255,0.2);
}
.hw-int-pill.glow {
  border-color: rgba(6,182,212,0.35);
  color: var(--accent-light);
  box-shadow: 0 0 12px rgba(6,182,212,0.12);
  background: rgba(6,182,212,0.1);
}
.hw-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hw-funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hw-funnel-label {
  font-size: 0.65rem;
  color: #94a3b8;
  width: 52px;
  flex-shrink: 0;
}
.hw-funnel-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(6,182,212,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.hw-funnel-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(6,182,212,0.25);
}
.hw-funnel-pct {
  font-size: 0.62rem;
  color: var(--accent-light);
  font-family: 'Outfit', sans-serif;
  width: 32px;
  text-align: right;
}
.hw-funnel-val {
  font-size: 0.62rem;
  color: var(--heading);
  font-weight: 500;
  width: 44px;
  text-align: right;
}
.hw-gauge {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hw-gauge-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.hw-gauge-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hw-gauge-ring circle {
  fill: none;
  stroke-width: 6;
}
.hw-gauge-ring .ring-bg {
  stroke: rgba(6,182,212,0.1);
}
.hw-gauge-ring .ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 24.5;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hw-gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--heading);
}
.hw-gauge-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hw-gauge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: #94a3b8;
}
.hw-gauge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hw-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hw-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.08);
  font-size: 0.62rem;
}
.hw-action-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hw-action-dot.live {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 1.5s infinite;
}
.hw-action-dot.done {
  background: #10b981;
}
.hw-action-text {
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-action-time {
  color: #94a3b8;
  font-size: 0.58rem;
}
@media (max-width: 1024px) {
  .how-sticky {
    height: auto;
    position: relative;
    padding: 48px 0;
  }
  .how-mobile-header { display: block; }
  .how-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .how-left { display: none; }
  .how-right {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .how-panel {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
