:root {
  --ink: #082450;
  --ink-muted: #365376;
  --blue: #1267f5;
  --blue-deep: #0753e6;
  --blue-pale: #eef5ff;
  --line: #b9d1ff;
  --navy: #02265b;
  --navy-deep: #001b43;
  --white: #ffffff;
  --shell: min(1180px, calc(100vw - 64px));
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(185, 209, 255, 0.45);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.primary-nav > a:not(.button) {
  position: relative;
  padding-block: 8px;
}

.primary-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: 180ms ease;
}

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button):focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: linear-gradient(135deg, #1474ff, #0753e6);
  box-shadow: 0 12px 25px rgba(18, 103, 245, 0.15);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 16px 30px rgba(18, 103, 245, 0.23);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding-inline: 20px;
  font-size: 14px;
}

.button-outline {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: none;
  color: var(--blue);
}

.hero {
  display: grid;
  min-height: 690px;
  align-items: center;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  padding-block: 70px 74px;
}

.hero-copy {
  padding-bottom: 10px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 600px;
  font-size: clamp(58px, 5vw, 78px);
  line-height: 1.15;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 500px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-visual svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 35px rgba(41, 101, 201, 0.08));
}

.services {
  padding-block: 108px 116px;
}

.section-intro h2,
.about h2,
.contact h2 {
  font-size: clamp(38px, 3.2vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.section-intro p,
.about p,
.contact p {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
}

.service-list {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 76px 1fr auto;
  min-height: 112px;
  transition: background-color 180ms ease;
}

.service-row:hover,
.service-row:focus-visible {
  background: rgba(238, 245, 255, 0.68);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

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

.service-row strong {
  font-size: 23px;
  letter-spacing: -0.025em;
}

.arrow {
  color: var(--ink);
  font-size: 34px;
  font-weight: 300;
  transition: transform 180ms ease;
}

.service-row:hover .arrow,
.service-row:focus-visible .arrow {
  transform: translateX(5px);
}

.about {
  overflow: hidden;
  background: linear-gradient(90deg, #f5f9ff, #eaf3ff);
}

.about-inner {
  display: grid;
  min-height: 324px;
  align-items: center;
  grid-template-columns: 1fr 350px;
  gap: 50px;
}

.about-art {
  position: relative;
  height: 260px;
}

.outline-circle,
.outline-square,
.dot-grid,
.contact-circle,
.orbit,
.contact-line {
  position: absolute;
  display: block;
}

.outline-circle {
  top: 66px;
  left: 20px;
  width: 168px;
  height: 168px;
  border: 1px solid #72a4ff;
  border-radius: 50%;
}

.outline-square {
  border: 1px solid #72a4ff;
}

.square-one {
  top: 22px;
  left: 128px;
  width: 132px;
  height: 132px;
}

.square-two {
  top: 112px;
  left: 94px;
  width: 100px;
  height: 100px;
}

.dot-grid {
  top: 70px;
  left: 174px;
  width: 94px;
  height: 74px;
  background-image: radial-gradient(circle, #1267f5 1.7px, transparent 1.9px);
  background-size: 18px 18px;
}

.contact {
  overflow: hidden;
  background: linear-gradient(115deg, var(--navy-deep), var(--navy));
}

.contact-inner {
  display: grid;
  min-height: 370px;
  align-items: center;
  grid-template-columns: 1fr 370px;
  gap: 50px;
}

.contact h2,
.contact p {
  color: var(--white);
}

.button-light {
  margin-top: 28px;
  border-color: var(--white);
  background: var(--white);
  box-shadow: none;
  color: var(--blue);
}

.contact-art {
  position: relative;
  height: 300px;
}

.contact-circle {
  top: 20px;
  right: 8px;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 114, 255, 0.32), #0753e6);
}

.orbit {
  border: 1px solid rgba(128, 179, 255, 0.6);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
}

.orbit-one {
  top: 26px;
  left: 6px;
  width: 238px;
  height: 238px;
}

.orbit-two {
  top: 8px;
  left: -14px;
  width: 276px;
  height: 276px;
}

.contact-art svg {
  position: absolute;
  top: 90px;
  right: 48px;
  width: 154px;
  fill: rgba(0, 27, 67, 0.2);
  stroke: #d7e5ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.contact-line {
  left: 112px;
  height: 1px;
  background: rgba(128, 179, 255, 0.6);
}

.line-one {
  bottom: 42px;
  width: 142px;
}

.line-two {
  bottom: 25px;
  width: 180px;
}

.site-footer {
  display: grid;
  min-height: 78px;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 40px, 680px);
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 3px;
    background: var(--ink);
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 28px rgba(0, 27, 67, 0.08);
    gap: 10px;
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav > a {
    padding: 10px 4px;
  }

  .primary-nav .button {
    min-height: 46px;
    margin-top: 8px;
    padding: 0 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 76px 44px;
  }

  h1 {
    font-size: clamp(50px, 13vw, 68px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-visual {
    margin-top: 12px;
  }

  .services {
    padding-block: 82px 88px;
  }

  .service-row {
    grid-template-columns: 62px 1fr auto;
    min-height: 96px;
  }

  .service-row strong {
    font-size: 20px;
  }

  .about-inner,
  .contact-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 72px 28px;
  }

  .about-art {
    height: 180px;
    transform: translateX(20%);
  }

  .contact-inner {
    padding-block: 72px 0;
  }

  .contact-art {
    height: 230px;
    transform: translateX(15%);
  }
}

@media (max-width: 440px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  h1 {
    font-size: 52px;
  }

  .hero-actions .button {
    flex: 1 1 148px;
    padding-inline: 16px;
  }

  .section-intro h2,
  .about h2,
  .contact h2 {
    font-size: 36px;
  }

  .section-intro p,
  .about p,
  .contact p {
    font-size: 15px;
  }

  .about p br {
    display: none;
  }
}

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