/* =============================================================
   partners-polish.css
   Marketing-polish layer on top of partners.css. Loaded AFTER
   partners.css so these rules win where they overlap.

   Scope — touches chrome only:
     - typography (fonts + hero headline shimmer)
     - ambient background (orbs, cursor spotlight, noise)
     - buttons (softer gradient + glow)
     - trust-strip, faq, mode cards, footer wordmark
     - scroll-reveal helpers

   Explicitly DOES NOT touch:
     - anything under .maplibregl-*, .map-*, .dir-* (map + directory)
     - anything under .wiz-*, .apply-*, .form-*, .contact-modal*
     - anything under .legal-* (already styled separately)
   ============================================================= */

/* -------- fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --y-glow: rgba(255,213,0,0.35);
  --ease-m: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* single scroll container — prevents any double-scrollbar
   combinations from third-party CSS */
html { overflow-x: hidden; }
body { position: relative; }

/* No noise texture — leave the canvas clean for orbs to glow through. */

/* -------- ambient gradient orbs -------- */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.bg-orbs .orb-1 {
  width: 820px; height: 820px;
  left: -280px; top: -220px;
  background: radial-gradient(circle, rgba(255,213,0,0.55), transparent 65%);
}
.bg-orbs .orb-2 {
  width: 680px; height: 680px;
  right: -220px; top: 420px;
  background: radial-gradient(circle, rgba(255,154,0,0.4), transparent 70%);
  animation-delay: -5s;
}
.bg-orbs .orb-3 {
  width: 900px; height: 900px;
  left: 18%; top: 1600px;
  background: radial-gradient(circle, rgba(99,165,252,0.3), transparent 70%);
  animation-delay: -9s;
  opacity: 0.4;
}
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(120px,-60px) scale(1.1); }
}

/* -------- cursor spotlight (desktop only) -------- */
.cursor-spot {
  position: fixed;
  top: 0; left: 0;
  width: 440px; height: 440px;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,213,0,0.07), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-spot { opacity: 1; }
}

/* Let orbs glow through the page. Crucial: the existing .hero has a
   solid-dark background gradient in partners.css that was blocking the
   orbs — override it to transparent so they shine through evenly. */
.hero {
  background: transparent !important;
  position: relative;
  overflow: hidden;
  /* Size based on content + generous padding. No min-height — the hero
     title + subtitle are short, so a forced viewport-percentage height
     creates empty space above/below. The particle network fills
     whatever size the hero is, so this still gives a full-width mesh. */
  padding: 6rem 0 5rem !important;
}
/* Hero content above the particle canvas */
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (max-width: 700px) {
  .hero { padding: 4rem 0 3rem !important; }
}

/* Full-viewport ambient particle mesh. Sits behind all content; pointer-
   events off so it never blocks clicks. Visible on every page of
   partners.wppbx.com. Opaque sections (map, forms, cards) cover it
   naturally via their own stacking contexts. */
.bg-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Back-to-home link in the nav */
.site-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s var(--ease-m);
}
.site-nav-home:hover {
  border-color: rgba(255,213,0,0.4);
  color: var(--yellow);
  background: rgba(255,213,0,0.05);
  text-decoration: none;
}
.site-nav-home i { font-size: 0.9rem; }

/* Page content above ambient layers. The site-header keeps its own 0.85
   alpha which is fine — orbs still peek through at the very top. */
main, .site-footer { position: relative; z-index: 2; }

/* -------- NAV -------- */
.site-header {
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(13,17,23,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.site-nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease-m), background 0.2s var(--ease-m);
}
.site-nav a:hover { background: rgba(255,255,255,0.04); text-decoration: none; }

/* -------- HERO typography + shimmer -------- */
/* No ::before radial here — the orbs are doing that job now. Adding a
   second radial would just create the "double layering" artefact. */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 920px;
  margin: 0.3rem auto 1.1rem;
}
.hero h1 .shimmer,
.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #ffd500 0%, #fff8a8 50%, #ffd500 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerRun 8s linear infinite;
}
@keyframes shimmerRun { 0% {background-position: 0%;} 100% {background-position: 200%;} }
.hero-sub {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* small pill above the H1 — matches wppbx.com kicker */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.65rem;
  border: 1px solid rgba(255,213,0,0.25);
  border-radius: 999px;
  background: rgba(255,213,0,0.05);
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,213,0,0.2);
  animation: kpulse 2.6s ease-in-out infinite;
}
@keyframes kpulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,213,0,0.2); }
  50%     { box-shadow: 0 0 0 7px rgba(255,213,0,0.06); }
}

/* -------- BUTTONS — softer gradient + glow -------- */
.btn {
  transition: transform 0.24s var(--ease-m),
              background 0.24s var(--ease-m),
              box-shadow 0.24s var(--ease-m),
              border-color 0.24s var(--ease-m);
}
.btn-primary {
  background: linear-gradient(135deg, #ffd500 0%, #ffb800 55%, #ff9a00 100%);
  border: 1px solid transparent;
  color: #1a1e24;
  box-shadow: 0 4px 16px rgba(255,213,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffe033 0%, #ffc926 55%, #ffa929 100%);
  box-shadow: 0 8px 28px rgba(255,213,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  border-color: transparent;
  color: #0d1117;
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,213,0,0.4);
  color: var(--text-strong);
}

/* -------- MODE CARDS (find/become) -------- */
.modes .mode-card,
.mode-card {
  transition: border-color 0.24s var(--ease-m),
              transform 0.24s var(--ease-m),
              box-shadow 0.24s var(--ease-m);
}
.mode-card:hover {
  border-color: rgba(255,213,0,0.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -18px rgba(255,213,0,0.35);
}

/* -------- TRUST STRIP polish -------- */
.trust-strip {
  position: relative;
  padding: 4rem 0 3.5rem;
}
.trust-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,213,0,0.08), transparent 65%);
  pointer-events: none;
}
.trust-grid > * { position: relative; }
.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* -------- SECTION HEADINGS anywhere -------- */
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* -------- FAQ polish -------- */
.faq details {
  transition: border-color 0.24s var(--ease-m), background 0.24s var(--ease-m);
}
.faq details[open] {
  border-color: rgba(255,213,0,0.35);
  background: rgba(255,255,255,0.02);
}
.faq details summary {
  transition: color 0.2s var(--ease-m);
}
.faq details[open] summary { color: var(--yellow); }

/* -------- FOOTER wordmark watermark -------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: "WPPBX";
  position: absolute;
  left: 0; right: 0;
  bottom: -3.5rem;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 17vw, 13rem);
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,213,0,0.1), transparent 80%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.55;
  user-select: none;
}
.footer-brand, .footer-col { position: relative; z-index: 1; }

/* -------- SCROLL REVEALS -------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-m), transform 0.8s var(--ease-m);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* -------- reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.05s !important;
  }
  .bg-orbs .orb { animation: none !important; }
}
