/* ==========================================================================
   Astra brand pattern: overlay for the live site (staging only).
   Loaded after the live CSS. Adds the slat pattern, the black-to-cobalt
   gradient and the refinements from review round 1.
   ========================================================================== */

/* ---- 1. No hairlines between sections; soft gradients instead ------------ */
.section--tint,
.trust,
.cta,
.foot { border-top: 0 !important; border-bottom: 0 !important; }

/* dark (#0a0a0a) <-> grey (#121212) hand-offs fade instead of cutting */
.section--tint {
  background: linear-gradient(180deg,
    var(--bg) 0, var(--surface) 180px,
    var(--surface) calc(100% - 180px), var(--bg) 100%) !important;
}

/* ---- 2. Nav: no bottom rule, fill follows the section beneath ------------ */
.nav,
.nav.is-scrolled,
.nav.is-open,
.nav.mm-open { border-bottom-color: transparent !important; border-color: transparent !important; }
.nav.is-scrolled { background: var(--astra-nav-bg, rgba(10,10,10,.82)) !important; transition: background .35s ease !important; }

/* nav items in Prophet; chevrons quieter than the labels */
.mm__btn, .mm__link {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mm__chev { opacity: .4; }
.mm__btn:hover .mm__chev, .mm__btn[aria-expanded=true] .mm__chev { opacity: .75; }

/* ---- 3. Hero: smaller title, slats behind a blurred product UI ----------- */
.hero .display { font-size: clamp(40px, 6.2vw, 80px); }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 34% at 50% 80%, rgba(30,130,245,.38) 0%, rgba(10,90,220,0) 72%),
    linear-gradient(180deg, #000 0%, #000 36%, #00020e 44%, #000b30 52%, #001a66 62%, #00329e 72%, #004cc6 82%, #0457cf 88%, #0a0a0a 100%);
}
.hero__arc, .hero__glow { display: none !important; }
.hero__stage { position: relative; }
.hero__stage > .astra-slats-wrap {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: clamp(-160px, -11vw, -40px);
  width: min(1360px, 100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__stage > .app {
  position: relative;
  z-index: 1;
  --glow-bg: rgba(12,14,24,.82);
  background-color: rgba(12,14,24,.82);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  box-shadow: 0 40px 120px -30px rgba(0,8,40,.9), 0 0 0 1px rgba(140,170,255,.18);
}

/* ---- 4. Solutions: the floating card is white-toned glass ---------------- */
.sols__card.glow {
  --glow-bg: rgba(16,16,18,.38);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  background:
    linear-gradient(var(--glow-bg), var(--glow-bg)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.42) 16%, rgba(255,255,255,.10) 40%, rgba(255,255,255,.06) 68%, rgba(255,255,255,.7)) border-box !important;
  box-shadow: 0 0 14px -6px rgba(255,255,255,.35), 0 20px 40px -24px rgba(0,0,0,.9), inset 0 1px rgba(255,255,255,.14) !important;
}
.sols__card.box::before, .sols__card.box::after { background: rgba(255,255,255,.9); }
.sols__card svg { color: rgba(255,255,255,.85) !important; }
.sols__card, .sols__card * { --accent: #fff; --accent-rgb: 255, 255, 255; }

/* ---- 5. MCP bento: the visual grows to fill the card --------------------- */
.ints__card:has(.mcp) { display: flex; flex-direction: column; }
.ints__card:has(.mcp) .mcp { flex: 1 1 auto; min-height: 150px; height: auto; }

/* ---- 6. Fold effect: images arrive in horizontal rows -------------------- */
.astra-fold {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  perspective: 1400px;
  pointer-events: none;
}
.astra-fold > span {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  transform: rotateX(90deg);
  transform-origin: 50% 50%;
  opacity: 0;
  backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(.16,.84,.24,1), opacity .5s ease-out, filter 1.1s ease;
  transition-delay: calc(var(--i) * 70ms);
  filter: brightness(.55);
}
.astra-fold > span > i {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--n) * 100%);
  top: calc(var(--i) * -100%);
  background-image: var(--src);
  background-size: cover;
  background-position: var(--pos, 50% 50%);
}
.astra-fold.is-in > span { transform: rotateX(0); opacity: 1; filter: brightness(1); }
.astra-fold-target { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .astra-fold { display: none; }
  .astra-fold-target { opacity: 1 !important; }
}

/* ---- 7. Story stats: a top rule in the panel's colours ------------------- */
.stats__i { position: relative; }
.stats__i::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #cdd6f6 0%, #7d9ae8 35%, #1a5cf0 70%, rgba(26,92,240,0) 100%);
}

/* ---- 8. Closing CTA: a framed card filled by the brand visual ----------- */
/* The section itself carries the dark-to-blue gradient, which runs on
   into the footer. */
.astra-cta {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0 clamp(90px, 11vw, 140px);
  background: linear-gradient(180deg,
    #0a0a0a 0%, #070912 18%, #030a26 36%, #021448 54%, #04237a 70%, #0636a8 84%, #0a4cc8 100%);
}
.astra-cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 52vw, 680px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 56px);
  background: #000;
  box-shadow: 0 0 0 1px rgba(160,190,255,.22), 0 50px 120px -40px rgba(0,6,40,.95);
}
/* the slats stretch to fill the card */
.astra-cta__card > .slats {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
/* darkening veil for contrast behind the copy */
.astra-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(0,2,14,.72) 0%, rgba(0,2,14,.45) 60%, rgba(0,2,14,.2) 100%),
    linear-gradient(180deg, rgba(0,2,14,.55) 0%, rgba(0,2,14,.25) 45%, rgba(0,2,14,.35) 100%);
}
.astra-cta__in { position: relative; display: grid; justify-items: center; gap: 24px; }
.astra-cta .display { font-size: clamp(48px, 7vw, 96px); text-shadow: none; }
.astra-cta .lede { margin: 0 auto; text-align: center; color: rgba(255,255,255,.82); }
.astra-cta__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.astra-cta .btn--ghost { background: rgba(0,4,20,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---- 9. Footer: continues the CTA gradient from cobalt back to black ----- */
.foot {
  background: linear-gradient(180deg,
    #0a4cc8 0%, #0841b4 8%, #06369c 16%, #042a80 26%, #031f64 36%, #02164a 47%, #010e32 58%, #01081e 70%, #00030c 84%, #000 100%) !important;
}
