* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Manrope', sans-serif;
  color: #0d1b3e;
  background: #fff;
  overflow-x: hidden
}

/* ─── Typography ─── */
.font-display {
  font-family: 'Fraunces', serif
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1878c8
}

.section-label-light {
  color: #93c5fd
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease
}

.reveal.show {
  opacity: 1;
  transform: translateY(0)
}

.reveal-l {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .8s ease, transform .8s ease
}

.reveal-l.show {
  opacity: 1;
  transform: translateX(0)
}

.reveal-r {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .8s ease, transform .8s ease
}

.reveal-r.show {
  opacity: 1;
  transform: translateX(0)
}

/* ─── Navbar ─── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100
}

#navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .3s
}

#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(13, 27, 62, .1)
}

.nav-link {
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: all .25s
}

.nav-link:hover {
  color: #1878c8;
  border-bottom-color: #1878c8
}

.nav-link.active {
  color: #1878c8;
  border-bottom-color: #1878c8
}

/* ─── Dropdown ─── */
.has-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(13, 27, 62, .12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  transition: all .2s
}

.dropdown-item:hover {
  background: #eff6ff;
  color: #1878c8
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 13px 28px;
  border-radius: 6px;
  transition: all .3s;
  border: 2px solid #dc2626
}

.btn-primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, .3)
}

.btn-primary svg {
  transition: transform .3s
}

.btn-primary:hover svg {
  transform: translate(3px, -3px)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, .5);
  transition: all .3s
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  transform: translateY(-2px)
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d1b3e;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid #0d1b3e;
  transition: all .3s
}

.btn-navy:hover {
  background: #162447;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 27, 62, .3)
}

.btn-navy svg {
  transition: transform .3s
}

.btn-navy:hover svg {
  transform: translate(3px, -3px)
}

.arrow-icon {
  width: 18px;
  height: 18px
}

/* ─── Hero ─── */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #050d1f 0%, #0d1b3e 40%, #162447 65%, #1e1240 85%, #2d0f3f 100%);
  display: flex;
  align-items: center
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 60px 60px
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .4
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 120, 200, .35) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, .2) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
  pointer-events: none
}

.stat-chip {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center
}

/* ─── Diagonal dividers ─── */
.clip-diag-down {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%)
}

.clip-diag-up {
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px
}

/* ─── Service cards ─── */
.svc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px 32px;
  transition: all .45s;
  position: relative;
  overflow: hidden
}

.svc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1878c8, #dc2626);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0);
  transition: transform .4s;
  transform-origin: bottom
}

.svc-card:hover::before {
  transform: scaleY(1)
}

.svc-card:hover {
  box-shadow: 0 20px 50px rgba(13, 27, 62, .12);
  transform: translateY(-6px);
  border-color: #bfdbfe
}

.svc-num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #f0f4ff;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 20px;
  transition: all .4s
}

.svc-card:hover .svc-num {
  color: #dbeafe;
  transform: scale(1.1)
}

.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all .4s
}

.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, #1878c8, #2d8fe0);
  transform: rotate(-5deg) scale(1.1)
}

/* ─── Process steps ─── */
.step-line {
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1878c8, transparent)
}

/* ─── Testimonial ─── */
.testi-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(13, 27, 62, .07);
  border: 1px solid #f0f4ff;
  transition: all .4s
}

.testi-card:hover {
  box-shadow: 0 16px 40px rgba(13, 27, 62, .12);
  transform: translateY(-4px)
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px
}

/* ─── Anchor offset for fixed navbar ─── */
section[id] {
  scroll-margin-top: 96px
}

/* ─── Forms ─── */
.form-field {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  color: #0d1b3e;
  outline: none;
  background: #fff;
  transition: all .3s
}

.form-field:focus {
  border-color: #1878c8;
  box-shadow: 0 0 0 4px rgba(24, 120, 200, .12)
}

.form-field::placeholder {
  color: #9ca3af
}

/* ─── Client logos ─── */
.client-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #6b7280;
  letter-spacing: .05em;
  transition: all .3s
}

.client-card:hover {
  border-color: #bfdbfe;
  color: #1878c8;
  background: #eff6ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 120, 200, .1)
}

/* ─── Hamburger ─── */
.ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0d1b3e;
  margin: 5px 0;
  transition: .3s;
  border-radius: 2px
}

.ham.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.ham.open span:nth-child(2) {
  opacity: 0
}

.ham.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ─── Career card ─── */
.job-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 32px;
  transition: all .4s
}

.job-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 32px rgba(13, 27, 62, .1);
  transform: translateY(-4px)
}

.job-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1878c8
}

/* ─── Utility ─── */
.text-navy {
  color: #0d1b3e
}

.bg-light {
  background: #f8faff
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1878c8, #dc2626);
  border-radius: 4px;
  margin: 16px 0
}

.divider-center {
  margin: 16px auto
}

/* ─── Logo ─── */
.site-logo {
  width: 250px;
  height: auto;
  display: block
}

.footer-logo {
  width: 240px;
  height: auto
}

@media(max-width:768px) {
  #hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px
  }

  .hero-title {
    font-size: 2.6rem !important
  }

  .site-logo {
    width: 130px
  }

  .footer-logo {
    width: 110px
  }
}