/* ==========================================================================
   REVERSE plus (reverseplus.com) - Right-Column Elementor Hero Graphic Styles
   Exact 510x510px Square Rotating Photorealistic Frame
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.rp-hero-root {
  --rp-teal-400: #38bdf8;
  --rp-emerald-400: #34d399;
  --rp-duration: 5500ms;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  color: #f8fafc;
  position: relative;
  width: 510px;
  max-width: 100%;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

.rp-hero-root *,
.rp-hero-root *::before,
.rp-hero-root *::after {
  box-sizing: border-box;
}

.rp-hero-showcase {
  position: relative;
  width: 510px;
  max-width: 100%;
  margin: 0 auto;
}

/* Subtle Ambient Glow behind the 510x510 frame */
.rp-hero-showcase-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(65% 65% at 50% 50%, rgba(14, 165, 233, 0.22) 0%, rgba(16, 185, 129, 0.12) 48%, transparent 76%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.rp-hero-root[data-rp-glow="false"] .rp-hero-showcase-glow {
  display: none;
}

.rp-hero-stage-frame {
  position: relative;
  z-index: 1;
  width: 510px;
  height: 510px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #071120;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    0 24px 48px -12px rgba(6, 16, 30, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  overflow: hidden;
}

/* Main 510x510 Square Viewport for Rotating Photorealistic Slides */
.rp-hero-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #071120;
  overflow: hidden;
}

.rp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s;
  z-index: 1;
}

.rp-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.rp-hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.055);
  transition: transform 6.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.rp-hero-slide.is-active .rp-hero-slide-img {
  transform: scale(1);
}

/* Focal-point tuning for 510x510 square crop */
.rp-slide-pos-1 { object-position: 56% center; }
.rp-slide-pos-2 { object-position: 36% center; }
.rp-slide-pos-3 { object-position: 50% center; }
.rp-slide-pos-4 { object-position: 48% center; }

/* Subtle Bottom Vignette Only */
.rp-hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 56%, rgba(6, 16, 30, 0.84) 100%);
  pointer-events: none;
}

/* Bottom Floating Glassmorphic Card */
.rp-float-bottom-card {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 13px;
  background: rgba(8, 20, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 12px 28px rgba(2, 8, 20, 0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.rp-hero-slide.is-active .rp-float-bottom-card {
  transform: translateY(0);
  opacity: 1;
}

.rp-root-hide-overlays .rp-float-bottom-card {
  display: none !important;
}

.rp-card-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1;
}

.rp-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.rp-card-text {
  min-width: 0;
  flex: 1;
}

.rp-hero-root .rp-card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rp-hero-root .rp-card-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.73rem !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  color: #cbd5e1 !important;
  margin: 0.14rem 0 0 0 !important;
  padding: 0 !important;
}

.rp-card-metrics {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.rp-metric-box {
  text-align: right;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.rp-hero-root .rp-metric-val {
  display: block;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #FCB94D !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rp-hero-root .rp-metric-lbl {
  display: block;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Subtle 3px Bottom Edge Auto-Rotation Progress Line */
.rp-bottom-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 5;
}

.rp-bottom-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
}

@media (max-width: 540px) {
  .rp-hero-stage-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .rp-metric-box:nth-child(2) {
    display: none;
  }
}
