/* ================================================================
   hero-particles.css — QuietRise: Particle Hero
   Award-level: code characters coalesce into three hero messages.
   Dark hero, full-viewport canvas, magnetic CTAs, custom cursor.
   ================================================================ */

/* ── Hero container ──────────────────────────────────────────────── */
.hero--particles {
  background: #0d2035 !important; /* dark navy — 20% lighter, matches BG in JS */
  padding: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  position: relative;
  overflow: hidden;
}

/* ── Canvas ──────────────────────────────────────────────────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* mouse tracked on section; buttons above are clickable */
}

/* ── Overlay (CTA layer) ─────────────────────────────────────────── */
.hero__particle-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 10vh;
  pointer-events: none; /* CTA inside gets pointer-events: auto via .visible */
}

/* ── Hero CTA (hidden until final phase) ─────────────────────────── */
.hero__cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero__cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Hero tagline h2 (SEO-visible subtitle) ──────────────────── */
.hero__tagline {
  margin: 1.25rem 0 0;
  font-family: var(--font-family-heading, 'Jost', sans-serif);
  font-size: clamp(0.7rem, 1.1vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(152, 193, 217, 0.65);
  text-align: center;
  pointer-events: none;
}

/* ── CTA button: primary (white) ─────────────────────────────────── */
.btn--hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  background: #ffffff;
  color: #0a0f1a;
  border: none;
  border-radius: 50px;
  font-family: var(--font-family-heading, 'Jost', sans-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow 0.35s ease,
    background 0.25s ease;
}

.btn--hero-primary:hover {
  background: #dceef8;
  box-shadow: 0 10px 40px rgba(152, 193, 217, 0.4);
}

/* ── CTA button: outline ─────────────────────────────────────────── */
.btn--hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  font-family: var(--font-family-heading, 'Jost', sans-serif);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn--hero-outline:hover {
  color: #ffffff;
  border-color: rgba(152, 193, 217, 0.65);
}

/* ── Scroll indicator ────────────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: hpScrollFadeIn 1.2s ease 2s forwards;
  z-index: 10;
  pointer-events: none;
}

.hero__scroll-text {
  font-family: var(--font-family-heading, 'Jost', sans-serif);
  font-size: 0.5625rem;
  letter-spacing: 3.5px;
  color: rgba(152, 193, 217, 0.45);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(152, 193, 217, 0.6), transparent);
  transform-origin: top;
  animation: hpScrollPulse 2.2s ease-in-out infinite;
}

@keyframes hpScrollFadeIn {
  to { opacity: 1; }
}

@keyframes hpScrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); }
  50%       { opacity: 1;    transform: scaleY(1);    }
}

/* ── Noscript fallback ───────────────────────────────────────────── */
.hero__noscript {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  background: #0a0f1a;
}

.hero__noscript h1 {
  color: #ffffff;
  font-family: var(--font-family-heading, 'Jost', sans-serif);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.25;
}

/* ── Nav — dark mode (controlled by .dark-hero on <html>) ───────── */

/* Transparent nav on dark hero */
.dark-hero .header:not(.nav--scrolled) {
  background-color: transparent;
  border-bottom: none !important;
  box-shadow: none;
}

/* Nav links → white on dark bg */
.dark-hero .header:not(.nav--scrolled) .nav__link,
.dark-hero .header:not(.nav--scrolled) .nav__logo-text {
  color: rgba(255, 255, 255, 0.88);
}

.dark-hero .header:not(.nav--scrolled) .nav__link:hover,
.dark-hero .header:not(.nav--scrolled) .nav__logo-text:hover {
  color: #ffffff;
}

/* CTA link pill on dark nav */
.dark-hero .header:not(.nav--scrolled) .nav__link--cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  text-decoration: none;
}

.dark-hero .header:not(.nav--scrolled) .nav__link--cta:hover {
  background: var(--color-primary, #1e3a5f) !important;
  border-color: var(--color-primary, #1e3a5f) !important;
  color: #ffffff !important;
  padding: 0.4rem 1.1rem !important; /* lock size — no growth */
}

/* Hamburger icon */
.dark-hero .header:not(.nav--scrolled) .nav__toggle,
.dark-hero .header:not(.nav--scrolled) .nav__toggle i {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Slight logo brightness boost on dark */
.dark-hero .header:not(.nav--scrolled) .nav__logo-img {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

/* Scrolled state: restore light header */
.dark-hero .header.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--color-border) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dark-hero .header.nav--scrolled .nav__link,
.dark-hero .header.nav--scrolled .nav__logo-text {
  color: var(--color-primary) !important;
}

.dark-hero .header.nav--scrolled .nav__toggle {
  color: var(--color-text) !important;
}

.dark-hero .header.nav--scrolled .nav__logo-img {
  filter: none;
}



/* ── Mobile: hide some elements ──────────────────────────────────── */
@media (max-width: 767px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .btn--hero-primary,
  .btn--hero-outline {
    width: 220px;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
  }

  .hero__scroll {
    display: none; /* avoid cluttering small screens */
  }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll {
    animation: none;
    opacity: 0.6;
  }

  .hero__scroll-line {
    animation: none;
  }
}
