:root {
  --blue-900: #0b2a4a;
  --blue-700: #134b7c;
  --green-500: #1f9f6a;
  --green-600: #187d54;
  --gray-50: #f4f7fa;
  --gray-200: #d7e1eb;
  --gray-600: #506273;
  --gray-900: #12212f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", "Gill Sans", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue-900);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 42, 74, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: inline-block;
  color: var(--white);
  background: transparent;
  border: 0;
  padding: 12px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus,
.nav-list > li > button:hover,
.nav-list > li > button:focus {
  background: rgba(255, 255, 255, 0.15);
}

.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 560px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  display: none;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  display: grid;
}

.mega-menu h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 0.95rem;
}

.mega-menu a {
  display: block;
  padding: 4px 0;
  color: var(--gray-600);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 70px;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, #1d5f98, #0b2a4a 60%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: rgba(31, 159, 106, 0.22);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  margin-top: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--green-600);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.15);
}

.section {
  padding: 70px 0;
}

.section h2,
.section h1 {
  margin-top: 0;
  color: var(--blue-900);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.lead {
  color: var(--gray-600);
  max-width: 75ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(11, 42, 74, 0.18);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 18px;
}

.stat {
  background: linear-gradient(135deg, #0b2a4a, #134b7c);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #d8f4e7;
  color: #146747;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.logo-grid img {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px;
  height: 64px;
  object-fit: contain;
}

.testimonial {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.testimonial-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(25px);
  transition: var(--transition);
}

.testimonial-item.active {
  opacity: 1;
  transform: translateX(0);
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 16px;
}

.faq-item.open .faq-content {
  max-height: 160px;
  padding-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #b6c6d5;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9bc4e9;
  border-color: #2f6ea6;
}

.notice {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

.notice.success {
  display: block;
  background: #daf5e8;
  color: #0d5638;
}

.notice.error {
  display: block;
  background: #f8dede;
  color: #7a1e1e;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1px solid #d4dee8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.product-card h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.product-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.tag {
  font-size: 0.78rem;
  background: #e8f0f9;
  color: #1a4d79;
  border-radius: 999px;
  padding: 4px 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.blog-card .content {
  padding: 16px;
}

footer {
  background: #081d34;
  color: #dbe8f5;
  padding: 50px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

footer a {
  color: #eaf4ff;
}

.subtle {
  color: #9eb3c7;
  font-size: 0.9rem;
}

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

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

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b2a4a;
  color: var(--white);
  z-index: 2000;
  transition: opacity 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-hero {
  background: linear-gradient(120deg, #0b2a4a, #1a568c);
  color: var(--white);
  padding: 70px 0;
}

.cta-band {
  background: linear-gradient(120deg, #1a568c, #1f9f6a);
  color: var(--white);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    right: 4%;
    background: #0b2a4a;
    width: min(410px, 92vw);
    border-radius: 12px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list > li > a,
  .nav-list > li > button {
    width: 100%;
    text-align: left;
  }

  .mega-menu {
    position: static;
    min-width: auto;
    box-shadow: none;
    display: none;
    margin-top: 8px;
  }

  .has-mega.open .mega-menu {
    display: grid;
  }

  .hero-grid,
  .feature-grid,
  .form-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
