/* Rebrand Splash — Biometrica → Safience
 * Full-viewport announcement. Self-contained; no Avada chrome.
 */

:root {
  --rs-navy: #012d51;
  --rs-ink: #08091b;
  --rs-blue: #0229df;
  --rs-blue-mid: #448ed7;
  --rs-white: #ffffff;
  --rs-muted: rgba(255, 255, 255, 0.72);
  --rs-faint: rgba(255, 255, 255, 0.45);
  --rs-body-font: "Mona Sans", "Plus Jakarta Sans", sans-serif;
  --rs-display-font: "Plus Jakarta Sans", "Mona Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.rebrand-splash {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--rs-white);
  font-family: var(--rs-body-font);
  background: var(--rs-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide any residual Avada chrome if parent styles leak */
body.rebrand-splash #wrapper,
body.rebrand-splash #sliders-container,
body.rebrand-splash .fusion-header-wrapper,
body.rebrand-splash .fusion-footer,
body.rebrand-splash .fusion-sliding-bar-wrapper,
body.rebrand-splash .awb-off-canvas-wrap,
body.rebrand-splash #toTop {
  display: none !important;
}

.rs-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  isolation: isolate;
}

.rs-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(130% 130% at 0% 100%, rgba(68, 142, 215, 0.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 0%, rgba(2, 41, 223, 0.45) 0%, transparent 50%),
    linear-gradient(165deg, var(--rs-navy) 0%, var(--rs-ink) 55%, #020312 100%);
  pointer-events: none;
}

.rs-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: rs-drift 18s ease-in-out infinite alternate;
}

.rs-glow--a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  right: -8%;
  background: rgba(2, 41, 223, 0.55);
}

.rs-glow--b {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: -10%;
  left: -6%;
  background: rgba(68, 142, 215, 0.4);
  animation-delay: -6s;
}

.rs-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.rs-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 42rem);
  gap: 0;
}

.rs-from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  color: var(--rs-faint);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rs-from__logo {
  display: block;
  height: clamp(1.1rem, 2.2vw, 1.4rem);
  width: auto;
  opacity: 0.85;
}

.rs-from__arrow {
  color: var(--rs-blue-mid);
  font-size: 1rem;
  line-height: 1;
}

.rs-from__label {
  color: var(--rs-muted);
}

.rs-brand {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
}

.rs-brand__logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(2, 41, 223, 0.25));
  animation: rs-brand-presence 6s ease-in-out infinite alternate;
}

.rs-headline {
  margin: 0 0 0.85rem;
  color: var(--rs-white);
  font-family: var(--rs-display-font);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rs-support {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 32rem;
  color: var(--rs-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.rs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.65rem;
  border: 0;
  border-radius: 999px;
  color: var(--rs-white);
  font-family: var(--rs-body-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: linear-gradient(135deg, #3a7bc8 0%, var(--rs-blue) 55%, #0218a8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 14px 36px rgba(2, 41, 223, 0.35);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.rs-cta:hover,
.rs-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 18px 44px rgba(2, 41, 223, 0.45);
  outline: none;
}

.rs-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.rs-cta--secondary {
  color: var(--rs-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  filter: none;
  font-weight: 500;
}

.rs-cta--secondary:hover,
.rs-cta--secondary:focus-visible {
  color: var(--rs-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  filter: none;
}

.rs-cta__arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.rs-cta:hover .rs-cta__arrow,
.rs-cta:focus-visible .rs-cta__arrow {
  transform: translateX(3px);
}

.rs-support-link {
  margin: 0;
  color: var(--rs-faint);
  font-size: 0.875rem;
  line-height: 1.4;
}

.rs-support-link a {
  color: var(--rs-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 200ms ease;
}

.rs-support-link a:hover,
.rs-support-link a:focus-visible {
  color: var(--rs-white);
  outline: none;
}

.rs-footer {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem;
  color: var(--rs-faint);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.rs-footer__mark {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  opacity: 0.9;
}

/* Entrance motion */
.rs-anim {
  opacity: 0;
  transform: translateY(14px);
  animation: rs-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--rs-delay, 0ms);
}

body.rs-ready .rs-anim {
  /* class hook if JS needs to re-trigger; CSS handles default */
}

@keyframes rs-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rs-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.06);
  }
}

@keyframes rs-brand-presence {
  from {
    filter: drop-shadow(0 12px 40px rgba(2, 41, 223, 0.2));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 18px 52px rgba(68, 142, 215, 0.35));
    transform: scale(1.015);
  }
}

@media (max-width: 575px) {
  .rs-shell {
    padding: 1.25rem 1.15rem 4.5rem;
  }

  .rs-brand__logo {
    width: min(100%, 16.5rem);
  }

  .rs-from {
    gap: 0.45rem 0.6rem;
  }

  .rs-actions {
    flex-direction: column;
    width: 100%;
  }

  .rs-cta {
    width: 100%;
    justify-content: center;
  }

  .rs-footer {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .rs-glow,
  .rs-brand__logo {
    animation: none;
  }

  .rs-cta,
  .rs-cta__arrow {
    transition: none;
  }
}
