/* ═══════════════════════════════════════════════════════════════════════════
   Hero Radar Animations — Task #1075841
   Animated SettlementRadar logo: pulsing radar ring + dots
   GPU-only (transform + opacity). No JS required.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── prefers-reduced-motion: disable everything ─── */
@media (prefers-reduced-motion: reduce) {
  .sr-hero-logo-wrap *,
  .sr-hero-logo-wrap::before,
  .sr-hero-logo-wrap::after {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ─── Hero content: flex column for new layout ─── */
.rs-hero-content.rs-hero-new-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.5) 0%, rgba(219, 234, 254, 0.3) 50%, transparent 100%);
  border-radius: 24px;
  padding: 3rem 1.5rem 2rem;
  margin: 0 auto;
  max-width: 800px;
}

/* ─── Radar logo container ─── */
.sr-hero-logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated radar canvas */
.sr-hero-radar {
  position: relative;
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  margin-bottom: 1.5rem;
}

/* Outer ring */
.sr-hero-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.25);
}

/* Middle ring */
.sr-hero-radar-ring-2 {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.2);
}

/* Inner ring */
.sr-hero-radar-ring-3 {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Center dot — static anchor */
.sr-hero-radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  z-index: 3;
}

/* Radar sweep — conic-gradient that rotates */
.sr-hero-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(37, 99, 235, 0.12) 40deg,
    rgba(37, 99, 235, 0.35) 90deg,
    transparent 130deg
  );
  animation: srRadarSweep 3s linear infinite;
  will-change: transform;
}

@keyframes srRadarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Pulsing dot — red/white/blue themed, orbits the center */
.sr-hero-radar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -5px;
  z-index: 4;
}

/* Dot path: elliptical orbit around the radar center */
.sr-hero-radar-dot-1 {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: srDotOrbit1 3s linear infinite;
}

.sr-hero-radar-dot-2 {
  background: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
  animation: srDotOrbit2 3s linear infinite;
}

.sr-hero-radar-dot-3 {
  background: #ffffff;
  border: 2px solid #2563eb;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  animation: srDotOrbit3 3s linear infinite;
}

/* Dot orbit keyframes — each dot travels a different elliptical path */
@keyframes srDotOrbit1 {
  0%   { transform: translate(0px, -60px) scale(1);    opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(55px, 25px) scale(1);     opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(0px, -60px) scale(0.7);   opacity: 0; }
}

@keyframes srDotOrbit2 {
  0%   { transform: translate(60px, 0px) scale(0.7);   opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(-55px, -25px) scale(1);   opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(60px, 0px) scale(0.7);   opacity: 0; }
}

@keyframes srDotOrbit3 {
  0%   { transform: translate(-40px, 40px) scale(0.8);  opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(40px, -40px) scale(1);    opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(-40px, 40px) scale(0.8);  opacity: 0; }
}

/* Expanding ring pulse — emanates from center */
.sr-hero-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.5);
  animation: srRingPulse 3s ease-out infinite;
  will-change: transform, opacity;
}

@keyframes srRingPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(10);   opacity: 0; }
}

/* ─── Brand name text ─── */
.sr-hero-brand-name {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #0f172a;
  line-height: 0.95;
  margin: 0 0 0.75rem;
  text-align: center;
  font-feature-settings: 'tnum';
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-hero-brand-name .sr-brand-radar {
  color: #2563eb;
  -webkit-text-fill-color: #2563eb;
  font-weight: 900;
}

/* ─── Tagline eyebrow ─── */
.sr-hero-tagline {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 2.25rem;
  text-align: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ─── Hero layout refinements for radar section ─── */
.rs-hero-new-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ─── Value prop headline override ─── */
.sr-hero-value-prop {
  font-size: clamp(2.1rem, 6.5vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #0f172a;
  line-height: 1.12;
  margin: 0 0 2rem;
  text-align: center;
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ─── Primary CTA button — dominant, high contrast ─── */
.sr-hero-cta-main {
  display: inline-block;
  text-align: center;
  padding: 1.2rem 3rem;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.sr-hero-cta-main:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.5), 0 4px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.sr-hero-cta-main:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* ─── Social proof badge ─── */
.sr-hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.sr-hero-social-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.sr-hero-social-proof strong {
  color: #1e3a8a;
  font-weight: 800;
}

/* ─── Responsive: mobile ─── */
@media (max-width: 640px) {
  .rs-hero-content.rs-hero-new-layout {
    padding: 2rem 1rem 1.5rem;
  }
  .sr-hero-radar {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  .sr-hero-brand-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .sr-hero-tagline {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .sr-hero-value-prop {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .sr-hero-cta-main {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .sr-hero-social-proof {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}