/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ── Variables (light theme — default) ── */
:root {
  --ice: #F2F4FF;
  --sky: #A9D3FF;
  --blue: #96C5F7;
  --steel: #00439c;
  --navy: #141B3D;
  --white: #ffffff;
  --warm: #F8F6FF;
  --glow: rgba(169, 211, 255, 0.12);
  --yellow: #f7f5a6;
  --gray: #c9c8d1;
  --black: #000000;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--ice);
  overflow-x: hidden;
}

h1,
h2,
.nav a,
.section-label,
.what-keyword,
.what-negation,
.impact-number {
  font-family: 'Montserrat', sans-serif;
}

/* ── Aurora background system ── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ice);
}

/* Primary aurora sweep — vibrant blues (simplified for performance) */
.aurora-bg .aurora-layer {
  position: absolute;
  inset: -10px;
  background-image:
    repeating-linear-gradient(100deg,
      rgba(235, 240, 255, 0.8) 0%,
      rgba(235, 240, 255, 0.8) 7%,
      transparent 10%,
      transparent 12%,
      rgba(235, 240, 255, 0.8) 16%),
    repeating-linear-gradient(100deg,
      rgba(100, 170, 255, 0.7) 10%,
      rgba(130, 190, 255, 0.6) 15%,
      rgba(70, 150, 245, 0.65) 20%,
      rgba(150, 200, 255, 0.55) 25%,
      rgba(100, 170, 255, 0.7) 30%);
  background-size: 300% 200%;
  background-position: 50% 50%;
  opacity: 0.85;
  animation: aurora 60s linear infinite;
}

/* Warm yellow glow — simplified for performance */
.aurora-bg .aurora-warm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 75% 15%, rgba(255, 248, 140, 0.4) 0%, rgba(255, 252, 200, 0.15) 40%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 20% 70%, rgba(255, 248, 140, 0.35) 0%, rgba(255, 252, 200, 0.12) 40%, transparent 60%);
  animation: warmDrift 25s ease-in-out infinite alternate;
}

/* White buffer between blue and yellow zones */
.aurora-bg .aurora-buffer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 25% at 55% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 25% 25% at 40% 60%, rgba(255, 255, 255, 0.5) 0%, transparent 65%);
  pointer-events: none;
}

/* Gentle vignette to frame the aurora */
.aurora-bg .aurora-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(230, 235, 255, 0.5) 75%);
}

@keyframes aurora {
  from {
    background-position: 50% 50%, 50% 50%;
  }

  to {
    background-position: 350% 50%, 350% 50%;
  }
}

@keyframes warmDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }

  33% {
    transform: translate(40px, -25px) scale(1.06);
    opacity: 1;
  }

  66% {
    transform: translate(-30px, 20px) scale(0.95);
    opacity: 0.9;
  }

  100% {
    transform: translate(15px, -10px) scale(1.03);
    opacity: 0.95;
  }
}

/* ── Soft vignette for focus ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(20, 27, 61, 0.025) 100%);
  pointer-events: none;
}

/* ── Subtle structure grid (trust pattern) ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 200, 209, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 200, 209, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Scroll reveal animations ── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-scale {
  transform: scale(0.9);
  transition-duration: 0.7s;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* ── Animated text highlight ── */
.text-highlight {
  position: relative;
  display: inline;
  padding: 2px 4px;
  background-image: linear-gradient(rgba(247, 245, 166, 0.55), rgba(247, 245, 166, 0.55));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left;
  transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.text-highlight.active {
  background-size: 100% 100%;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(242, 244, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: rgba(242, 244, 255, 0.8);
  box-shadow: 0 4px 30px rgba(20, 27, 61, 0.04);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 16px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s, letter-spacing 0.3s;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--steel));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
  letter-spacing: 0.6px;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.active {
  opacity: 1;
}

.nav a.active::after {
  transform: scaleX(1);
}

/* ── PMCenter nav link — high-contrast CTA ── */
.nav-pmcenter {
  opacity: 1 !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  padding: 8px 20px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  font-size: 12px !important;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 67, 156, 0.3), 0 1px 4px rgba(20, 27, 61, 0.15);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.35s ease !important;
  position: relative;
  overflow: hidden;
}

.nav-pmcenter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.nav-pmcenter:hover::before {
  left: 100%;
}

.nav-pmcenter::after {
  display: none !important;
}

.nav-pmcenter:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 28px rgba(0, 67, 156, 0.4), 0 2px 8px rgba(20, 27, 61, 0.2);
  background: linear-gradient(135deg, #1a2555, #0058cc);
  letter-spacing: 1.2px !important;
}

/* ── Buttons (filled, white on hover) ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid var(--navy);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  line-height: 1;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(20, 27, 61, 0.18), 0 2px 8px rgba(20, 27, 61, 0.08);
}

.btn span,
.btn-text {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.btn:hover span,
.btn:hover .btn-text {
  color: var(--navy);
}

.btn .arrow {
  font-size: 15px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
  color: var(--navy);
}

/* ── Section shared ── */
section {
  position: relative;
}

/* Skip rendering off-screen sections until needed */
section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201, 200, 209, 0.4) 25%, rgba(201, 200, 209, 0.6) 50%, rgba(201, 200, 209, 0.4) 75%, transparent 95%);
  margin: 0 48px;
}

/* ── Section label shared ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--steel));
  display: inline-block;
}

/* ── Button variants ── */
.btn-secondary {
  border-color: var(--steel);
  background: var(--steel);
  color: var(--white);
}

.btn-secondary::before {
  background: var(--white);
}

.btn-secondary:hover {
  border-color: var(--steel);
  box-shadow: 0 8px 32px rgba(0, 67, 156, 0.2), 0 2px 8px rgba(0, 67, 156, 0.08);
}

.btn-secondary:hover span,
.btn-secondary:hover .btn-text {
  color: var(--steel);
}

.btn-secondary:hover .arrow {
  color: var(--steel);
}

/* ── Footer ── */
.footer {
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201, 200, 209, 0.15) 25%, rgba(201, 200, 209, 0.3) 50%, rgba(201, 200, 209, 0.15) 75%, transparent 95%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: fit-content;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--sky);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.5);
  transition: stroke 0.3s;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-link:hover svg {
  stroke: var(--sky);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-newsletter-form {
  position: relative;
  max-width: 320px;
}

.footer-newsletter-form input {
  width: 100%;
  height: 42px;
  padding: 0 120px 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-form input:focus {
  border-color: var(--sky);
}

.footer-newsletter-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 0 8px 8px 0;
  background: var(--steel);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.footer-newsletter-form button:hover {
  background: var(--sky);
  color: var(--navy);
}

.footer-newsletter-status {
  font-size: 12px;
  min-height: 18px;
}

.footer-newsletter-status.success {
  color: #6ee7b7;
}

.footer-newsletter-status.error {
  color: #fca5a5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sky);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── Responsive shared ── */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .header {
    padding: 20px 24px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 11px;
  }

  .section-divider {
    margin: 0 24px;
  }
}

/* ── Reduced motion: disable animations for users/devices that prefer it ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .aurora-bg .aurora-layer,
  .aurora-bg .aurora-warm {
    animation: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}