:root {
  --dark-primary: #272566;
  --soft-primary: #038abb;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #536079;
  --border: #dce4ef;
  --shadow-soft: 0 10px 25px rgba(16, 29, 56, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(3, 138, 187, 0.05) 0, rgba(3, 138, 187, 0) 40%),
    radial-gradient(circle at 85% 75%, rgba(39, 37, 102, 0.05) 0, rgba(39, 37, 102, 0) 45%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
}

body::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 120px;
  background: radial-gradient(circle at center, rgba(3, 138, 187, 0.2) 0%, rgba(3, 138, 187, 0) 65%);
}

body::after {
  width: 420px;
  height: 420px;
  left: -170px;
  top: 58%;
  background: radial-gradient(circle at center, rgba(39, 37, 102, 0.15) 0%, rgba(39, 37, 102, 0) 70%);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 37, 102, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 37, 102, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.65), transparent 90%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(3, 138, 187, 0.35));
  opacity: 0.28;
  animation-name: floatParticle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes floatParticle {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.08);
    opacity: 0.36;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
}

.topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

main,
.footer {
  position: relative;
  z-index: 2;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark-primary);
  font-weight: 800;
}

.brand img {
  width: 172px;
  height: 52px;
  object-fit: contain;
}

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

.main-nav {
  display: flex;
  gap: 8px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark-primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.main-nav a:hover {
  background: #edf5fb;
  color: var(--soft-primary);
}

.hero {
  padding: 86px 0 62px;
  background: linear-gradient(180deg, #eef8fc 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  font-weight: 700;
  color: var(--soft-primary);
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark-primary);
  margin: 0;
}

.lead {
  margin: 18px 0 28px;
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--dark-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1f1d57;
}

.btn-outline {
  border: 1px solid var(--soft-primary);
  color: var(--soft-primary);
}

.btn-outline:hover {
  background: #e9f8fd;
}

.hero-card,
.card,
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.image-placeholder,
.wide-image-placeholder,
.service-image-placeholder {
  border: 1px solid #dbe7f3;
  background: #edf5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}

.image-placeholder {
  height: 320px;
  margin: -22px -22px 18px;
  border-radius: 14px 14px 0 0;
  border: 0;
  background: transparent;
}

.wide-image-placeholder {
  min-height: 250px;
  aspect-ratio: 16 / 9;
  margin: 14px 0 24px;
}

.service-image-placeholder {
  min-height: 180px;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.image-placeholder img,
.wide-image-placeholder img,
.service-image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h2 {
  color: var(--dark-primary);
  margin-top: 0;
  margin-bottom: 10px;
}

.hero-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #f2f7fb;
}

h2 {
  color: var(--dark-primary);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--dark-primary);
}

.section-intro {
  max-width: 900px;
  color: var(--muted);
  margin-bottom: 26px;
}

.section p {
  color: #4b5a74;
}

.card,
.feature {
  height: 100%;
}

.services-grid .card {
  display: flex;
  flex-direction: column;
}

.services-grid .card p {
  margin-top: 0;
  margin-bottom: 0;
}

.two-col,
.services-grid,
.feature-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  border-left: 4px solid rgba(3, 138, 187, 0.3);
}

.footer {
  background: var(--dark-primary);
  color: #f5f7ff;
  padding: 44px 0;
}

.footer h3,
.footer h4 {
  margin-top: 0;
  color: #fff;
}

.footer a {
  color: #b7eeff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero-grid,
  .services-grid,
  .two-col,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    flex-direction: column;
    gap: 10px;
    width: min(240px, 90vw);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 27, 45, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 9px 10px;
  }

  .section {
    padding: 56px 0;
  }

  .image-placeholder {
    height: 280px;
    margin: -22px -22px 16px;
  }

  .wide-image-placeholder,
  .service-image-placeholder {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 150px;
    height: 46px;
  }

  .hero {
    padding: 68px 0 48px;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }

  .wide-image-placeholder,
  .service-image-placeholder {
    min-height: 180px;
  }
}
