:root {
  --bg: #05080f;
  --bg2: #071424;
  --ink: #071120;
  --text: #f5f7fb;
  --muted: #98a6ba;
  --blue: #2c8cff;
  --line: rgba(154, 198, 255, 0.18);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: #f7f9fc;
  color: var(--ink);
  overflow-x: visible;
}
.shell {
  width: min(1400px, calc(100% - 72px));
  margin: auto;
}
.nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(190, 217, 255, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}
.page-hero {
  min-height: 72vh;
  background:
    radial-gradient(
      circle at 75% 45%,
      rgba(35, 120, 236, 0.22),
      transparent 27%
    ),
    linear-gradient(120deg, #04070d, #071526);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(103, 176, 255, 0.15);
  width: 520px;
  height: 520px;
  right: -100px;
  top: 90px;
  animation: orbit 17s linear infinite;
}
.page-hero::after {
  width: 330px;
  height: 330px;
  right: 50px;
  top: 185px;
  animation-direction: reverse;
  animation-duration: 12s;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.spark-field {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background-image: radial-gradient(
    circle,
    rgba(139, 200, 255, 0.8) 0 1px,
    transparent 1.4px
  );
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 55%, #000);
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 860px;
}
.eyebrow {
  color: #69adff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.page-hero h1 {
  font-size: clamp(48px, 6.2vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 25px 0 24px;
  font-weight: 500;
}
.page-hero p {
  max-width: 700px;
  color: #a7b5c8;
  line-height: 1.8;
  font-size: 16px;
}
.page-main {
  padding: 110px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(34, 78, 130, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 52, 91, 0.07);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s;
}
.card::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(57, 145, 255, 0.12) 49%,
    transparent 59%
  );
  transform: translateX(-70%);
  transition: transform 0.8s;
}
.card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 30px 70px rgba(19, 52, 91, 0.12);
}
.card:hover::before {
  transform: translateX(70%);
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(51, 137, 239, 0.2);
  display: grid;
  place-items: center;
  color: #247ee9;
  background: linear-gradient(145deg, #fff, #eaf4ff);
  box-shadow: 0 10px 28px rgba(45, 133, 234, 0.1);
  font-size: 20px;
  margin-bottom: 28px;
}
.card h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 0 0 13px;
}
.card p {
  color: #66758a;
  line-height: 1.7;
  font-size: 14px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 12px 0;
}
.section-head p {
  color: #657488;
  line-height: 1.75;
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.cta {
  margin-top: 80px;
  padding: 46px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(45, 143, 255, 0.3),
      transparent 30%
    ),
    linear-gradient(120deg, #071426, #0b2e5d);
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: 42px;
  margin: 0 0 12px;
}
.cta p {
  color: #b1bfd0;
}
.btn {
  display: inline-flex;
  margin-top: 18px;
  padding: 13px 20px;
  border: 1px solid rgba(184, 216, 255, 0.35);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(60, 145, 244, 0.2);
  backdrop-filter: blur(12px);
}
footer {
  padding: 32px 0 50px;
  color: #718097;
  font-size: 12px;
}
@media (max-width: 900px) {
  .shell {
    width: min(100% - 38px, 1400px);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 64vh;
  }
  .page-hero h1 {
    font-size: 50px;
  }
}

/* EC-BTN-104 + EC-NAV-121: Re-assert hero / CTA text-white on buttons & links.
   Uses class~= (word match) not class*= (substring) to avoid matching hover:text-white etc. */
button[class~='text-white/90'],
a[class~='text-white/90'] {
  color: rgba(255, 255, 255, 0.9);
}
button[class~='text-white/80'],
a[class~='text-white/80'] {
  color: rgba(255, 255, 255, 0.8);
}
button[class~='text-white/70'],
a[class~='text-white/70'] {
  color: rgba(255, 255, 255, 0.7);
}
button[class~='text-white/60'],
a[class~='text-white/60'] {
  color: rgba(255, 255, 255, 0.6);
}
button[class~='text-white/50'],
a[class~='text-white/50'] {
  color: rgba(255, 255, 255, 0.5);
}
button[class~='text-white/40'],
a[class~='text-white/40'] {
  color: rgba(255, 255, 255, 0.4);
}
button[class~='text-white'],
a[class~='text-white'] {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
