:root {
  --brand-navy: #0c5c84;
  --brand-blue: #1e7ec2;
  --brand-cyan: #2cbbf2;
  --brand-orange: #f58e2a;
  --brand-green: #41b850;
  --ink: #0f2537;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

.font-display { font-family: 'Sora', 'Poppins', sans-serif; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(120deg, rgba(12,92,132,0.92) 0%, rgba(12,92,132,0.75) 45%, rgba(30,126,194,0.55) 100%);
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Card hover */
.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-8px); box-shadow: 0 22px 45px -20px rgba(12,92,132,.45); }

/* Nav link underline */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--brand-cyan);
  transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(12,92,132,.6); filter: brightness(1.05); }

.btn-accent {
  background: linear-gradient(90deg, var(--brand-orange), #ff7b1a);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(245,142,42,.6); }

/* Marquee for partners */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section pattern */
.dot-grid {
  background-image: radial-gradient(rgba(12,92,132,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Float animation */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Counter cards */
.stat-card { backdrop-filter: blur(6px); }

/* Mobile menu */
#mobile-menu { transition: max-height .4s ease, opacity .3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobile-menu.open { max-height: 720px; opacity: 1; overflow-y: auto; }

/* Headline ticker (auto-run) */
.ticker { position: relative; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mega menu polish */
.mega-menu { z-index: 60; }
.nav-item > a i.fa-chevron-down { pointer-events: none; }

/* Accessible focus rings */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Section chip */
.eyebrow {
  color: var(--brand-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

/* Hero auto-run slider */
#hero-slider .hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  z-index: 1;
}
#hero-slider .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
#hero-slider .hero-slide img { transform: scale(1.06); }
#hero-slider .hero-slide.is-active img {
  animation: hero-kenburns 6s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
#hero-slider .hero-slide.is-active .hero-slide-content {
  animation: hero-content-in .9s ease-out both;
}
@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Auto-run progress bar (resets each 2s cycle) */
.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: rgba(255,255,255,.15); z-index: 5;
}
.hero-progress-bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-orange));
  transform-origin: left center;
  animation: hero-progress 2s linear infinite;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .marquee-track, .float { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Keep first hero slide visible; disable auto-run animations */
  #hero-slider .hero-slide { transition: none !important; }
  #hero-slider .hero-slide.is-active img,
  #hero-slider .hero-slide.is-active .hero-slide-content { animation: none !important; }
  #hero-slider .hero-slide.is-active img { transform: scale(1) !important; }
  .hero-progress { display: none !important; }
  * { scroll-behavior: auto !important; }
}

/* Utility: line clamp fallback */
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ accordion */
.faq-item .faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }
