/* Shared feature page visuals */

/* Light section surface (waves + .fp-section-light stay in sync) */
:root {
  --fp-section-light-bg: #f5f7fb;
}

@media (prefers-reduced-motion: reduce) {
  .fp-pricing-cosmos::before,
  .fp-pricing-cosmos::after {
    animation: none !important;
  }
}

/* ==========================================================================
   Dark section — secondary sections background
   ========================================================================== */

.fp-section-dark {
  background: linear-gradient(180deg, #081428 0%, #0a1830 100%);
}

.fp-section-light {
  background: var(--fp-section-light-bg);
}

/* ==========================================================================
   Small glass card (lightweight, for benefit / feature grids on dark bg)
   ========================================================================== */

.fp-card-glass-sm {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition:
    background 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.fp-card-glass-sm:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(13, 110, 253, 0.4) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   Light card variant (for use on fp-section-light backgrounds)
   ========================================================================== */

.fp-card-light {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.fp-card-light:hover {
  border-color: rgba(13, 110, 253, 0.25) !important;
  box-shadow: 0 6px 24px rgba(13, 110, 253, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   Icon circles for dark backgrounds
   ========================================================================== */

.fp-icon-circle {
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.25);
}

/* ==========================================================================
   Feature highlight visual placeholder (dark bg, for the icon display area)
   ========================================================================== */

.fp-highlight-visual {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.18);
}

/* ==========================================================================
   Spacing utilities (py-lg-6 missing from Bootstrap defaults)
   ========================================================================== */

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* ==========================================================================
   Sticky header — applies when marketing CSS is bundled (public pages only).

   NOTE: backdrop-filter intentionally omitted — it creates a new containing
   block for fixed-position children, which breaks the mobile offcanvas drawer.
   ========================================================================== */

header.header.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(8, 20, 40, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* On large screens the offcanvas becomes inline — its bg-dark child would
   otherwise show a different shade from the header background. */
@media (min-width: 992px) {
  header.header.navbar .offcanvas-body {
    background-color: transparent !important;
  }
}

/* ==========================================================================
   Pricing card variants for dark pages
   ========================================================================== */

.fp-pricing-popular {
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.45) !important;
  box-shadow:
    0 0 40px rgba(13, 110, 253, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.fp-pricing-popular:hover {
  background: rgba(13, 110, 253, 0.18) !important;
  border-color: rgba(13, 110, 253, 0.65) !important;
  box-shadow:
    0 0 52px rgba(13, 110, 253, 0.28),
    0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.fp-pricing-pro {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2416 100%);
  transition:
    box-shadow 0.2s ease-in-out,
    transform 0.2s ease-in-out,
    filter 0.2s ease-in-out;
}

.fp-pricing-pro:hover {
  box-shadow:
    0 0 48px rgba(255, 193, 7, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
  filter: brightness(1.06);
}

/* ==========================================================================
   Pricing cosmos background (dark blue + stars + subtle parallax)
   ========================================================================== */

.fp-pricing-cosmos {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1300px 420px at 50% -10%, rgba(37, 99, 235, 0.26) 0%, transparent 62%),
    radial-gradient(960px 360px at 82% 24%, rgba(13, 110, 253, 0.18) 0%, transparent 66%),
    linear-gradient(180deg, #050f26 0%, #061430 52%, #081938 100%);
}

.fp-pricing-cosmos::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.94;
  background:
    linear-gradient(28deg, transparent 28%, rgba(13, 110, 253, 0.16) 28.4%, rgba(13, 110, 253, 0.16) 28.8%, transparent 29.2%),
    linear-gradient(-14deg, transparent 60%, rgba(13, 110, 253, 0.12) 60.3%, rgba(13, 110, 253, 0.12) 60.7%, transparent 61%),
    linear-gradient(82deg, transparent 41%, rgba(13, 110, 253, 0.11) 41.2%, rgba(13, 110, 253, 0.11) 41.5%, transparent 41.8%),
    radial-gradient(circle at 4% 12%, rgba(125, 211, 252, 0.7) 0 1.7px, transparent 2px),
    radial-gradient(circle at 9% 42%, rgba(96, 165, 250, 0.68) 0 1.1px, transparent 1.4px),
    radial-gradient(circle at 8% 18%, rgba(96, 165, 250, 0.6) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 14% 58%, rgba(59, 130, 246, 0.5) 0 2.2px, transparent 2.5px),
    radial-gradient(circle at 18% 34%, rgba(96, 165, 250, 0.45) 0 0.9px, transparent 1.2px),
    radial-gradient(circle at 23% 68%, rgba(125, 211, 252, 0.65) 0 1.3px, transparent 1.7px),
    radial-gradient(circle at 27% 22%, rgba(13, 110, 253, 0.5) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 36% 52%, rgba(96, 165, 250, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 41% 74%, rgba(59, 130, 246, 0.64) 0 1.9px, transparent 2.3px),
    radial-gradient(circle at 44% 28%, rgba(59, 130, 246, 0.5) 0 1.8px, transparent 2.2px),
    radial-gradient(circle at 49% 14%, rgba(125, 211, 252, 0.62) 0 1.1px, transparent 1.4px),
    radial-gradient(circle at 56% 18%, rgba(13, 110, 253, 0.45) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 62% 46%, rgba(96, 165, 250, 0.5) 0 2.1px, transparent 2.5px),
    radial-gradient(circle at 67% 68%, rgba(96, 165, 250, 0.6) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 71% 24%, rgba(59, 130, 246, 0.45) 0 0.9px, transparent 1.2px),
    radial-gradient(circle at 76% 10%, rgba(125, 211, 252, 0.65) 0 1.6px, transparent 2px),
    radial-gradient(circle at 79% 60%, rgba(96, 165, 250, 0.5) 0 1.6px, transparent 2px),
    radial-gradient(circle at 84% 72%, rgba(59, 130, 246, 0.62) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 88% 30%, rgba(13, 110, 253, 0.48) 0 1.1px, transparent 1.4px),
    radial-gradient(circle at 93% 52%, rgba(96, 165, 250, 0.52) 0 2.4px, transparent 2.8px),
    radial-gradient(circle at 96% 26%, rgba(125, 211, 252, 0.7) 0 1.3px, transparent 1.7px);
  animation: fpCosmosDotsDrift 42s ease-in-out infinite alternate;
}

.fp-pricing-cosmos::after {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 32% 30% at 12% 18%, rgba(13, 110, 253, 0.22) 0%, transparent 72%),
    radial-gradient(ellipse 26% 24% at 86% 32%, rgba(59, 130, 246, 0.18) 0%, transparent 74%),
    radial-gradient(ellipse 36% 28% at 50% 104%, rgba(37, 99, 235, 0.2) 0%, transparent 76%);
  animation: fpCosmosGlowDrift 26s ease-in-out infinite alternate;
}

.fp-pricing-cosmos > .container {
  position: relative;
  z-index: 1;
}

@keyframes fpCosmosDotsDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  21% {
    transform: translate3d(-10px, 8px, 0) scale(1.01);
  }
  47% {
    transform: translate3d(12px, -10px, 0) scale(0.995);
  }
  73% {
    transform: translate3d(-7px, -4px, 0) scale(1.008);
  }
  100% {
    transform: translate3d(9px, 6px, 0) scale(1);
  }
}

@keyframes fpCosmosGlowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 10px, 0) scale(0.99);
    opacity: 0.92;
  }
}

/* ==========================================================================
   Orbital hero animation (home page right-column feature badges)
   ========================================================================== */

@keyframes fpFloatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes fpFloatB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes fpFloatC {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.fp-float-a {
  animation: fpFloatA 5s ease-in-out infinite;
}
.fp-float-b {
  animation: fpFloatB 6s ease-in-out infinite;
}
.fp-float-c {
  animation: fpFloatC 4.5s ease-in-out infinite;
}

/* ==========================================================================
   Hero bloom — atmospheric dark for individual feature page heroes.
   Three layered radial orbs (electric blue, cyan, deep violet) drift slowly.
   No grid — pure ambient color atmosphere.
   ========================================================================== */

.fp-hero-bloom {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #040c1c 0%,
    #060f22 35%,
    #071424 65%,
    #050d1c 100%
  );
}

.fp-hero-bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 65% 75% at 88% 18%,
      rgba(13, 110, 253, 0.32) 0%,
      rgba(13, 110, 253, 0.07) 40%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 48% 60% at 12% 78%,
      rgba(44, 196, 240, 0.2) 0%,
      rgba(44, 196, 240, 0.04) 38%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 55% 48%,
      rgba(88, 60, 220, 0.1) 0%,
      transparent 52%
    );
  animation: fpBloomShift 22s ease-in-out infinite alternate;
}

.fp-hero-bloom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
}

@keyframes fpBloomShift {
  from {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  to {
    opacity: 0.88;
    transform: scale(1.06) translate(-1%, 1.2%);
  }
}

/* ==========================================================================
   Home hero — real photo with directional dark overlay.
   background-image set via inline style in template (requires asset_path helper).
   ========================================================================== */

.fp-hero-photo {
  background-color: #060f22; /* fallback while image loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fp-hero-position-bottom {
  background-position: bottom !important;
}

/* SEO hero: full-width media with top-focused crop + separate overlay */
.fp-hero-seo-photo {
  background-color: #060f22;
}

.fp-hero-seo-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.fp-hero-seo-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(4, 10, 26, 0.85) 0%,
    rgba(5, 13, 30, 0.55) 45%,
    rgba(5, 12, 28, 0.55) 65%,
    rgba(4, 10, 26, 0.7) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Aurora CTA — animated aurora orbs with subtle shimmer lines at top and bottom.
   ========================================================================== */

.fp-cta-aurora {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #050d1e 0%, #071630 50%, #060f22 100%);
}

.fp-cta-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 75% 65% at 15% 55%,
      rgba(13, 110, 253, 0.26) 0%,
      rgba(13, 110, 253, 0.05) 45%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 75% at 82% 45%,
      rgba(44, 196, 240, 0.18) 0%,
      rgba(44, 196, 240, 0.03) 42%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 42% 38% at 50% 5%,
      rgba(97, 231, 191, 0.12) 0%,
      transparent 52%
    );
  animation: fpAuroraShift 18s ease-in-out infinite alternate;
}

.fp-cta-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      90deg,
      transparent,
      rgba(148, 192, 255, 0.45) 35%,
      rgba(97, 231, 191, 0.35) 65%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent,
      rgba(148, 192, 255, 0.45) 35%,
      rgba(97, 231, 191, 0.35) 65%,
      transparent
    );
  background-size: 84% 1px, 84% 1px;
  background-position: center top, center bottom;
  background-repeat: no-repeat, no-repeat;
}

@keyframes fpAuroraShift {
  from {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  to {
    opacity: 0.82;
    transform: scale(1.07) translateX(1.5%);
  }
}

/* Inner content container for CTA aurora sections */
.fp-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

/* ==========================================================================
   Light icon circle — tonal primary surface for use on white backgrounds
   ========================================================================== */

.fp-icon-circle-light {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.12);
}

/* ==========================================================================
   Marketing page utilities (typography, hero shells, icon sizes)
   ========================================================================== */

.fp-icon-circle-lg {
  width: 80px;
  height: 80px;
}

.fp-icon-circle-md {
  width: 52px;
  height: 52px;
}

.fp-text-heading {
  color: #0d1117;
}

.fp-text-subtle {
  color: #6c757d;
}

.fp-tracking-wide {
  letter-spacing: 0.1em;
}

.fp-tracking-label {
  letter-spacing: 0.08em;
}

.fp-text-hero-lead {
  opacity: 0.75;
}

.fp-text-cta-muted {
  opacity: 0.65;
}

.fp-text-cosmos-line {
  opacity: 0.85;
}

.fp-text-pricing-muted {
  opacity: 0.55;
}

.fp-text-pro-label {
  letter-spacing: 0.08em;
  color: rgba(255, 215, 0, 0.6);
}

.fp-hero-inner {
  position: relative;
  z-index: 1;
}

.fp-hero-section-h-460 {
  min-height: 460px;
}

.fp-hero-section-h-520 {
  min-height: 520px;
}

.fp-hero-section-h-620 {
  min-height: 620px;
}

.fp-hero-row {
  min-height: 460px;
}

.fp-hero-row-tall {
  min-height: 560px;
}

.fp-hero-orbit-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.fp-hero-icon-bi {
  font-size: 2.25rem;
}

.fp-highlight-visual-min {
  min-height: 380px;
}

.fp-highlight-icon-ring {
  width: 160px;
  height: 160px;
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.3);
}

.fp-icon-dim {
  opacity: 0.6;
}

.fp-hero-glow-orb {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.fp-hero-center-badge {
  width: 130px;
  height: 130px;
  background: rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.35);
  backdrop-filter: blur(10px);
}

.fp-hero-orbit-wrap {
  width: 420px;
  height: 420px;
}

.fp-subhead-hero {
  opacity: 0.7;
  max-width: 480px;
}

.fp-section-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.fp-section-lead-wide {
  max-width: 700px;
}

/* ==========================================================================
   Hero wave — bottom curve from hero into the first light section only.
   Mid-page transitions are flat. Path fill uses --fp-wave-to (light surface).
   ========================================================================== */

.fp-wave {
  --fp-wave-from: transparent;
  --fp-wave-to: var(--fp-section-light-bg);
  display: block;
  line-height: 0;
  overflow: hidden;
  margin-top: -1px; /* prevent hairline sub-pixel gap */
  background: var(--fp-wave-from);
}

.fp-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.fp-wave path {
  fill: var(--fp-wave-to);
}

/* Attach a wave directly to a hero so it inherits the hero bg naturally. */
.fp-wave-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  margin-top: 0;
  background: transparent;
  pointer-events: none;
}

.fp-wave-overlay svg {
  height: 72px;
}

@media (max-width: 767.98px) {
  .fp-wave svg {
    height: 28px;
  }

  .fp-wave-overlay svg {
    height: 34px;
  }
}

/* ==========================================================================
   Light-section social proof logo strip
   ========================================================================== */

.fp-logo-strip-light .fp-card-glass-sm {
  background: #f4f7ff !important;
  border: 1px solid rgba(13, 110, 253, 0.08) !important;
}

.fp-logo-strip-light .fp-card-glass-sm:hover {
  border-color: rgba(13, 110, 253, 0.2) !important;
  background: #edf2ff !important;
}

/* Dark card: strip uses !important light styles — raise specificity so Bootstrap bg-dark applies */
.fp-logo-strip-light .fp-card-glass-sm.bg-dark {
  background-color: var(--bs-dark) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.fp-logo-strip-light .fp-card-glass-sm.bg-dark:hover {
  background-color: var(--bs-gray-900) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
