:root {
  --background: #f7f9fd;
  --foreground: #0b1f4b;
  --card: #ffffff;
  --muted: #eef3fb;
  --border: #d7e0f0;
  --muted-foreground: #657594;
}

.bg-background { background-color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-muted { background-color: var(--muted); }
.border-border { border-color: var(--border); }
.bg-card { background-color: var(--card); }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.dark {
  --background: #050d1f;
  --foreground: #f7f9fd;
  --card: #101a30;
  --muted: #0f1b35;
  --border: #203051;
  --muted-foreground: #93a4c6;
}

.section {
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.theme-card {
  transition: opacity 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease, color 220ms ease, filter 220ms ease;
}

.theme-flash .theme-card {
  opacity: 0.98;
}

.service-card {
  will-change: transform, opacity;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 64, 171, 0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nav-shell {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-shell.nav-scrolled {
  background: rgba(247, 249, 253, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.09);
  border-bottom-color: rgba(130, 147, 178, 0.18);
}

.dark .nav-shell.nav-scrolled {
  background: rgba(5, 13, 31, 0.88) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.nav-shell.nav-scrolled {
  background: rgba(247, 249, 253, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.09);
  border-bottom-color: rgba(130, 147, 178, 0.18);
}

.dark .nav-shell.nav-scrolled {
  background: rgba(5, 13, 31, 0.88) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.nav-hero .nav-link,
.nav-hero .nav-brand,
.nav-hero .nav-action,
.nav-hero .nav-menu {
  color: rgba(255, 255, 255, 0.95);
}

.nav-hero .nav-link:hover,
.nav-hero .nav-brand:hover,
.nav-hero .nav-menu:hover {
  color: #ffffff;
}

.nav-hero .nav-subtitle {
  color: rgba(255, 255, 255, 0.42);
}

.nav-hero .nav-toggle {
  color: rgba(255, 255, 255, 0.9);
}

.nav-hero .nav-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-hero .nav-cta {
  background: rgba(18, 64, 171, 1);
  color: #ffffff;
}

.nav-hero svg {
  color: inherit;
  stroke: currentColor;
}

@media (max-width: 1023px) {
  .nav-hero .nav-brand,
  .nav-hero .nav-link,
  .nav-hero .nav-toggle,
  .nav-hero .nav-action,
  .nav-hero .nav-menu {
    color: rgba(255, 255, 255, 0.96);
  }

  .nav-hero .nav-subtitle {
    color: rgba(255, 255, 255, 0.42);
  }

  .nav-hero #quoteBtn {
    background: #1240ab;
    color: #ffffff;
  }

  .nav-hero #menuBtn,
  .nav-hero #themeBtn {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-hero #mobileMenu {
    background: rgba(5, 13, 31, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .dark .nav-hero #mobileMenu {
    background: rgba(7, 16, 34, 0.98);
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .nav-hero #mobileMenu a {
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-hero #mobileMenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.035;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,.15) 70%, transparent);
}

.hero-copy {
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  max-width: 10.5ch;
  line-height: 1.35;
  text-align: left;
}

.hero-lead {
  text-align: left;
}

.stats-grid {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-copy {
    text-align: left;
  }

  .hero-kicker {
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }

  .stats-grid {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-kicker {
    max-width: 50ch;
    letter-spacing: 0.14em;
  }

  .hero-copy {
    max-width: 100%;
    padding-right: 0.5rem;
  }

  .hero-lead {
    text-align: left;
  }
}

.mission-card {
  background:
    linear-gradient(180deg, rgba(17, 31, 62, 0.88), rgba(9, 19, 41, 0.92)),
    #0a1530;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.vision-card {
  background:
    linear-gradient(180deg, rgba(15, 20, 30, 0.9), rgba(12, 16, 28, 0.96)),
    #0a1530;
  border: 1px solid rgba(245, 184, 0, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.value-card {
  background: rgba(13, 23, 49, 0.95);
  border: 1px solid rgba(255,255,255,.12);
}

.dark .value-card {
  background: rgba(13, 23, 49, 0.95);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.products-inner {
  display: flex;
  gap: 0;
  width: max-content;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-controls {
  align-self: flex-start;
  flex-shrink: 0;
}

.carousel-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  box-shadow: none;
}

.carousel-btn:hover {
  transform: translateY(-1px);
}

.carousel-btn--light {
  background: #ffffff;
  color: #0b1f4b;
  box-shadow: 0 4px 10px rgba(11, 31, 75, 0.06);
}

.dark .carousel-btn--light {
  background: var(--card);
  color: var(--foreground);
}

.carousel-btn--primary {
  background: #1240ab;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(18, 64, 171, 0.14);
}

.dark .carousel-btn--primary {
  background: #3b6ee8;
}

.social-btn {
  border-radius: 9999px;
  box-shadow: 0 12px 28px rgba(18, 64, 171, 0.18);
}

.social-btn:hover {
  box-shadow: 0 14px 32px rgba(18, 64, 171, 0.2);
}

::selection {
  background: rgba(18, 64, 171, 0.2);
}
