/* ============================================================
   PASS 2 REFRESH LAYER — buildwithnexgen.com
   Loaded last on every estate page. Three jobs:
   1. Sticky/parallax background treatment (desktop-safe)
   2. Lighter border tokens so the dark pages lift
   3. Alternating light sections (.section-light) + CTA bands
   ============================================================ */

/* ---------- 1. Sticky background treatment ---------- */
/* Fixed blueprint layer behind everything (complements the
   drifting glow layer in brand-system.css). Pure CSS, no JS,
   no layout cost. */
body::after{
  content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(rgba(69,221,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(69,221,255,.045) 1px,transparent 1px),
    radial-gradient(ellipse 60% 34% at 88% 0%,rgba(0,102,204,.14),transparent 70%);
  background-size:44px 44px,44px 44px,100% 100%;
}
/* Hero parallax: the hero art stays fixed while content scrolls
   over it — only where the pointer/screen make it smooth. */
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  .hero{background-attachment:fixed}
  .parallax-band{background-attachment:fixed}
}
@media (hover:none), (max-width:1023px){
  .hero,.parallax-band{background-attachment:scroll}
}
/* A reusable mid-page parallax band (used on the depth pages):
   a short visual strip whose background sticks on desktop. */
.parallax-band{
  min-height:220px;border-top:1px solid rgba(160,220,255,.42);border-bottom:1px solid rgba(160,220,255,.42);
  background-position:center;background-size:cover;position:relative;
}
.parallax-band .band-label{
  position:absolute;left:1.4rem;bottom:1.1rem;color:#dff8ff;
  font:500 .68rem 'JetBrains Mono',monospace;letter-spacing:.1em;text-transform:uppercase;
  background:rgba(3,8,20,.55);padding:.4rem .6rem;border:1px solid rgba(160,220,255,.42);
}

/* ---------- 2. Lighter borders (brighten the dark system) ---------- */
.card,.callout,.media,.audience-card{border-color:rgba(160,220,255,.42)!important}
.method-rail{border-color:rgba(160,220,255,.42)!important;background:rgba(160,220,255,.42)!important}
.method-card{border-color:rgba(160,220,255,.3)!important}
.model-card{border-color:rgba(160,220,255,.5)!important}
.nav{border-bottom-color:rgba(160,220,255,.42)!important}
.list li{border-bottom-color:rgba(234,242,255,.18)}
.faq details{border-bottom-color:rgba(234,242,255,.2)}
.footer{border-top-color:rgba(234,242,255,.22)!important}

/* ---------- 3a. Light sections ---------- */
.section-light{
  background:linear-gradient(180deg,#F7F8FA 0%,#EDF2F8 100%)!important;
  color:#0A0A0A!important;
}
.section-light h2,.section-light h3,.section-light h4{color:#0A0A0A!important}
.section-light p,.section-light li,.section-light summary{color:#2B3644}
.section-light .muted,.section-light .section-head p{color:#5B6472!important}
.section-light .eyebrow{color:#0066CC!important}
.section-light .icon,.section-light .num,.section-light .number{color:#0066CC!important}
.section-light .step:before{color:#0066CC}
.section-light .card,.section-light .callout,.section-light .media,
.section-light .audience-card,.section-light .method-card{
  background:#FFFFFF!important;border-color:#D9E3EF!important;color:#0A0A0A!important;
  box-shadow:0 10px 30px rgba(14,27,46,.07);backdrop-filter:none;
}
.section-light .card p,.section-light .audience-card p{color:#46536A!important}
.section-light .card h3,.section-light .audience-card h3{color:#0A0A0A!important}
.section-light .audience-card span,.section-light .method-card span{color:#0066CC!important}
.section-light .audience-card b{color:#0066CC}
.section-light .list li{border-bottom-color:#E5E7EB}
.section-light .list li:before{color:#0066CC}
.section-light a{color:#0066CC}
.section-light .faq details{border-bottom-color:#E5E7EB}
.section-light .btn.primary,.section-light a.btn.primary{color:#02111B!important}
.section-light .ghost,.section-light .btn.alt{
  background:rgba(255,255,255,.65)!important;border-color:#C4D4E6!important;color:#0A0A0A!important;
}
.section-light .form input,.section-light .form select,.section-light .form textarea{
  background:#FFFFFF!important;border-color:#C4D4E6!important;color:#0A0A0A!important;
}
.section-light .consent{color:#5B6472}
.section-light .model-card{background:linear-gradient(145deg,rgba(10,31,53,.92),rgba(3,8,20,.96))!important;color:#F2F2F2!important}
.section-light .model-card .model-label strong{color:#F2F2F2!important}

/* ---------- 3b. CTA band (inserted across the estate) ---------- */
.cta-band{
  background:linear-gradient(120deg,#0E1B2E 0%,#061522 55%,#0A2A4A 100%);
  border-top:1px solid rgba(160,220,255,.42);border-bottom:1px solid rgba(160,220,255,.42);
  padding:clamp(2.6rem,6vw,4.2rem) 0;text-align:left;position:relative;overflow:hidden;
}
.cta-band:before{
  content:'';position:absolute;inset:auto -10% -55% 30%;height:16rem;pointer-events:none;
  background:radial-gradient(ellipse,rgba(0,153,255,.28),transparent 70%);
}
.cta-band .cta-band-inner{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:1.4rem 2.4rem;justify-content:space-between}
.cta-band h2{font-family:Oswald,Inter,sans-serif;font-weight:600;text-transform:uppercase;letter-spacing:.01em;
  font-size:clamp(1.7rem,3.4vw,2.6rem);line-height:1.08;margin:.45rem 0 .5rem;color:#F2F2F2}
.cta-band p{color:rgba(223,248,255,.75);max-width:56ch;margin:0}
.cta-band .eyebrow{color:#45DDFF}
.cta-band .actions{display:flex;gap:.9rem;flex-wrap:wrap}
@media(max-width:700px){.cta-band .cta-band-inner{display:block}.cta-band .actions{margin-top:1.2rem}}

/* Sibling directory (depth pages): the full explore/confirm set */
.sibling-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.sibling-grid .audience-card p{min-height:0}
.sibling-grid .audience-card.is-current{border-color:#45DDFF!important;box-shadow:0 0 0 1px #45DDFF inset}
.section-light .sibling-grid .audience-card.is-current{border-color:#0066CC!important;box-shadow:0 0 0 1px #0066CC inset}
@media(max-width:900px){.sibling-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.sibling-grid{grid-template-columns:1fr}}
