:root {
  --blue: #0866f5;
  --blue-dark: #0050d5;
  --ink: #101828;
  --muted: #516078;
  --line: #e6edf6;
  --light: #f7fbff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 95px; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,230,242,.7);
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  max-width: 112px;
  max-height: 65px;
  object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 49px;
  padding: 13px 26px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1396ff, #0057f4);
  box-shadow: 0 6px 20px rgba(0,94,240,.19);
}

.btn-primary:hover { box-shadow: 0 9px 25px rgba(0,94,240,.26); }

.btn-outline {
  color: #0656d0;
  background: #fff;
  border: 1.5px solid var(--blue);
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 475px;
  background:
    radial-gradient(ellipse at 80% 65%, #e6f2ff 0, transparent 53%),
    linear-gradient(145deg, #fff 35%, #f3f9ff);
}

.wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 760px;
  height: 430px;
  border-radius: 50%;
  transform: rotate(-21deg);
}

.wave-one {
  background: rgba(145,199,255,.14);
  right: -180px;
  bottom: -190px;
}

.wave-two {
  background: rgba(190,222,255,.21);
  right: -330px;
  bottom: -115px;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 95px;
}

.hero-content { max-width: 800px; }

.eyebrow, .section-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .23em;
  color: #536c91;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 20px 0;
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 750;
  line-height: 1.11;
  letter-spacing: -.055em;
}

h1 span, .about h2 span { color: var(--blue); }

.hero-description {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 29px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-aside {
  min-width: 125px;
  border-left: 2px solid #87baff;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  letter-spacing: .24em;
  color: #516c9d;
}

.services { padding-top: 75px; padding-bottom: 50px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
}

.section-header h2, .about h2, .contact h2 {
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -.045em;
  line-height: 1.18;
  margin-bottom: 0;
}

.section-header > p {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 28px 23px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(22,67,110,.04);
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(22,67,110,.10);
}

.service-icon {
  height: 56px;
  width: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  background: #edf6ff;
}

.service-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 19px;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.about { padding-top: 35px; padding-bottom: 35px; }

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 55px;
  background: linear-gradient(130deg, #f2f8ff, #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 12px;
}

.contact { padding-top: 35px; padding-bottom: 85px; }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 48px 55px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 95% 110%, #ddecff, transparent 55%),
    #f9fcff;
}

.contact-panel h2 { margin-bottom: 10px; }
.contact-panel p:last-child { color: var(--muted); margin: 0; line-height: 1.6; }
.contact-panel .btn { flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; }
.footer-inner strong { font-size: 18px; }
.footer-inner p { margin: 8px 0 0; letter-spacing: .1em; }
.footer-inner p, .footer-right { color: #77839a; font-size: 12px; }
.footer-right { display: flex; flex-direction: column; gap: 8px; text-align: right; }

@media (max-width: 900px) {
  .hero-aside { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header { align-items: start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, 480px); }

  .nav { height: 72px; }
  .brand img { max-width: 87px; max-height: 55px; }
  .nav-cta { display: none; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 2px;
    width: 100%;
    background: #172a4a;
    border-radius: 5px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 20px;
    box-shadow: 0 20px 30px rgba(17,35,65,.08);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 15px; text-align: center; }

  .hero { min-height: 0; }
  .hero-inner { padding-top: 70px; padding-bottom: 68px; }
  .eyebrow { font-size: 10px; letter-spacing: .17em; }

  h1 {
    font-size: clamp(34px, 8.8vw, 44px);
    letter-spacing: -.045em;
    line-height: 1.14;
  }

  .hero-description { font-size: 16px; line-height: 1.65; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .wave { right: -480px; opacity: .5; }

  .services { padding-top: 50px; padding-bottom: 28px; }
  .section-header { display: block; }
  .section-header > p { margin-top: 15px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }

  .service-card {
    min-height: 0;
    padding: 21px;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }

  .service-icon { width: 48px; height: 48px; grid-row: span 2; margin: 0; }
  .service-icon svg { width: 25px; height: 25px; }
  .service-card h3 { font-size: 17px; margin: 1px 0 5px; }
  .service-card p { font-size: 13px; }

  .about { padding-top: 22px; }
  .about-panel { grid-template-columns: 1fr; padding: 30px 25px; gap: 20px; }
  .about-copy p { font-size: 15px; }

  .contact { padding-top: 20px; padding-bottom: 50px; }
  .contact-panel { flex-direction: column; align-items: stretch; padding: 30px 24px; }
  .contact-panel .btn { width: 100%; }

  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
