/*
 * Socially Handled — additive polish layer
 * Safe enhancements layered on top of the Framer export (no markup changes).
 */
:root {
  --sh-accent: #A855F7;
  --sh-accent-2: #D946EF;
}

/* Replacement hero carousel for the exported Framer homepage. */
.framer-Uqx6P > section[data-framer-name="Hero"] {
  display: none !important;
}

.sh-hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #030008;
  isolation: isolate;
}

.sh-hero-track,
.sh-hero-slide,
.sh-hero-slide picture,
.sh-hero-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sh-hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity .7s ease, transform 1.4s ease;
}

.sh-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.sh-hero-slide img {
  object-fit: contain;
  object-position: center;
  background: #030008;
}

.sh-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2vw, 28px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(4, 0, 12, .5);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.sh-carousel-dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  transition: width .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.sh-carousel-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.sh-carousel-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--sh-accent-2), var(--sh-accent));
  box-shadow: 0 0 22px rgba(168, 85, 247, .62);
}

.sh-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 809.98px) {
  .sh-hero-carousel {
    margin-top: 0;
  }

  .sh-carousel-dots {
    gap: 8px;
    padding: 8px 10px;
  }

  .sh-carousel-dot {
    width: 10px;
    height: 10px;
  }

  .sh-carousel-dot.is-active {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hero-slide,
  .sh-carousel-dot {
    transition: none;
  }
}

/* Brand-colored text selection */
::selection   { background: #A855F7; color: #fff; }
::-moz-selection { background: #A855F7; color: #fff; }

/* Smooth anchor scrolling, only when motion is OK */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Back-to-top button (element is created by enhance.js) */
#sh-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2147483646;
  background: linear-gradient(135deg, #D946EF, #A855F7);
  color: #fff;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(168, 85, 247, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
#sh-top.sh-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  #sh-top { transition: none; transform: none; }
}

/* Scroll progress bar (element is created by enhance.js) */
#sh-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2147483647;
  pointer-events: none;
  background: linear-gradient(90deg, var(--sh-accent-2), var(--sh-accent));
  will-change: width;
}

/* CTA button hover lift — only on real hover devices, and not when the
   user prefers reduced motion. Scoped to Framer's button/CTA elements. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-framer-name="Button"],
  [data-framer-name="Buttons"],
  [data-framer-name="CTA"] {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  [data-framer-name="Button"]:hover,
  [data-framer-name="Buttons"]:hover,
  [data-framer-name="CTA"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(168, 85, 247, .35);
  }
}
