/* Supplemental CSS (hero polish, marquee, layout helpers). Tailwind CDN supplies utilities. */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.section_component {
  position: relative;
}

.padding-global {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-large {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary, #2e6ff2);
  color: var(--primary-foreground, #fff);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--ring, #2e6ff2);
  outline-offset: 2px;
}

/* Homepage hero — reference: electric blue glow + readable photo overlay */
.hero_home {
  position: relative;
  isolation: isolate;
}

.hero_home__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero_home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero_home__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(2, 6, 13, 0.92) 0%, rgba(2, 6, 13, 0.55) 45%, rgba(2, 6, 13, 0.88) 100%),
    linear-gradient(180deg, rgba(2, 6, 13, 0.3) 0%, rgba(2, 6, 13, 0.95) 100%);
}

.hero_home__glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: blur(0px);
}

.hero_home__glow--tl {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  left: -18%;
  top: -25%;
  background: radial-gradient(circle at 30% 30%, rgba(46, 111, 242, 0.45) 0%, transparent 62%);
}

.hero_home__glow--bl {
  width: min(480px, 85vw);
  height: min(480px, 85vw);
  left: -12%;
  bottom: -28%;
  background: radial-gradient(circle at 40% 60%, rgba(46, 111, 242, 0.38) 0%, transparent 65%);
}

.hero_home__content {
  position: relative;
  z-index: 10;
}

.hero_home__lead {
  font-size: 1.25rem;
  line-height: 1.75;
  max-width: 42rem;
  margin-bottom: 2.5rem;
  color: rgba(248, 250, 252, 0.95);
}

/* Headline: white → soft gray (matches design comp) */
.text-gradient-hero {
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(226, 232, 240, 0.42) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Primary CTA glow */
.btn-primary-glow {
  box-shadow: 0 12px 42px rgba(46, 111, 242, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn-primary-glow:hover {
  box-shadow: 0 14px 48px rgba(46, 111, 242, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Marquee */
@keyframes fc-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee_component {
  overflow: hidden;
}

.marquee_track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  animation: fc-marquee 40s linear infinite;
}

.marquee_track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee_track {
    animation: none;
  }
}

/* Scroll-triggered section reveals (class added by js/app.js) */
.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.motion-reveal--subtle {
  transform: translate3d(0, 0.6rem, 0);
  transition-duration: 0.55s;
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
