:root {
  --navy: #001d46;
  --blue: #0769f7;
  --cyan: #17bde6;
  --green: #69d929;
  --green-dark: #07965b;
  --ink: #102033;
  --muted: #5b6b7d;
  --line: #d9e4ef;
  --soft: #f4f9fd;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(0, 29, 70, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 210px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; color: var(--navy); }
.button, button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(7,105,247,.22);
}
.button.secondary { color: var(--navy); background: var(--white); border: 1px solid var(--line); box-shadow: none; }
.button.green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.menu-toggle { display: none; background: var(--navy); box-shadow: none; width: 46px; padding: 0; }
.hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 82% 18%, rgba(23,189,230,.18), transparent 32%),
    linear-gradient(180deg, #f8fcff 0%, #fff 74%);
}
.home-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 70px 0 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 42%, rgba(231,247,255,.62) 62%, rgba(102,190,255,.46) 100%),
    radial-gradient(circle at 78% 22%, rgba(23,189,230,.34), transparent 34%),
    radial-gradient(circle at 72% 82%, rgba(105,217,41,.18), transparent 28%),
    linear-gradient(180deg, #f7fcff 0%, #fff 100%);
}
.home-hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(490px, .82fr) 1.18fr; gap: 28px; align-items: center; }
.hero-copy { position: relative; z-index: 3; max-width: 710px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 900; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 72px); }
.home-hero h1 { max-width: 710px; font-size: clamp(38px, 3.9vw, 60px); letter-spacing: 0; }
.home-hero h1 span { color: var(--blue); display: block; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 18px; color: var(--muted); }
.lead { font-size: 20px; color: #33465d; }
.home-hero .lead { max-width: 660px; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.4; color: #50627d; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-hero .hero-actions { gap: 24px; margin-top: 26px; }
.home-hero .button { min-height: 54px; min-width: 230px; border-radius: 12px; font-size: 16px; background: var(--blue); }
.home-hero .button.secondary { min-width: 158px; color: var(--blue); background: rgba(255,255,255,.74); border: 2px solid var(--blue); }
.trust-line { margin-top: 22px; font-weight: 700; color: var(--navy); }
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 0;
  max-width: 710px;
  margin-top: 38px;
}
.hero-benefits div {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--navy);
  border-right: 1px solid rgba(0,29,70,.14);
}
.hero-benefits div:last-child { border-right: 0; }
.hero-benefits strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.hero-benefits svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-benefits span { font-size: 15px; line-height: 1.2; }
.hero-visual {
  position: absolute;
  inset: 0 0 0 32%;
  z-index: 1;
  min-height: 0;
  pointer-events: none;
}
.hero-image {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(68vw, 1180px);
  height: auto;
  max-width: none;
  transform: translateY(-50%);
  filter: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%, #000 100%);
}
section { padding: 72px 0; }
.band { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}
.card h3 { margin-bottom: 10px; }
.card a { color: var(--blue); font-weight: 800; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 68px; }
.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}
.cta-band {
  background: linear-gradient(135deg, var(--navy), #053b7d);
  color: var(--white);
}
.cta-band h2, .cta-band p { color: var(--white); }
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 800; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
textarea { min-height: 128px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); }
.checkbox input { width: 18px; min-height: 18px; margin-top: 4px; }
.form-message { grid-column: 1 / -1; font-weight: 800; color: var(--green-dark); }
.page-hero { padding: 64px 0 36px; background: var(--soft); }
.page-hero .container { max-width: 920px; }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 29, 70, 0.08);
}
.post-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-body { padding: 22px; }
.post-body h2 { font-size: 24px; }
.post-date { color: var(--blue); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.post-link { color: var(--blue); font-weight: 900; }
.footer { padding: 44px 0; background: var(--navy); color: var(--white); }
.footer p, .footer a { color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer img {
  width: 180px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--white);
}
.footer-links { display: grid; gap: 8px; }

@media (max-width: 840px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 76px 0 auto 0;
    display: none;
    padding: 18px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .grid.two, .grid.three, .grid.four, .blog-list, .footer-grid { grid-template-columns: 1fr; }
  .home-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
  }
  .home-hero .hero-copy {
    display: contents;
    max-width: 100%;
    padding-right: 0;
  }
  .home-hero h1,
  .home-hero .lead,
  .home-hero .hero-actions {
    grid-column: 1;
  }
  .hero { padding-top: 42px; }
  .home-hero { min-height: 0; padding: 34px 0 46px; }
  .home-hero h1 { font-size: clamp(34px, 9vw, 50px); }
  .home-hero .lead { font-size: 17px; }
  .home-hero .button { width: 100%; min-width: 0; min-height: 52px; font-size: 16px; }
  .home-hero .button.secondary { min-width: 0; }
  .hero-benefits {
    position: relative;
    z-index: 3;
    grid-row: 4;
    grid-column: 1;
    grid-template-columns: 1fr;
    width: clamp(112px, 32vw, 156px);
    margin-top: 44px;
    border-top: 1px solid rgba(0,29,70,.12);
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,29,70,.08);
  }
  .hero-benefits div {
    min-height: 62px;
    padding: 10px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(0,29,70,.12);
  }
  .hero-benefits div:nth-child(odd) { border-right: 0; }
  .hero-benefits div:last-child { border-bottom: 0; }
  .hero-benefits strong { width: 25px; height: 25px; }
  .hero-benefits svg { width: 24px; height: 24px; }
  .hero-benefits span { font-size: 12px; }
  .hero-visual {
    grid-row: 4;
    grid-column: 1;
    position: relative;
    inset: auto;
    z-index: 1;
    min-height: 360px;
    margin-top: 30px;
    pointer-events: auto;
  }
  .hero-image {
    position: absolute;
    top: 56%;
    right: 0;
    left: auto;
    width: min(850px, 142vw);
    max-width: none;
    height: auto;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
  }
  .brand img { width: 172px; }
  section { padding: 52px 0; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-benefits {
    width: clamp(96px, 29vw, 128px);
    margin-top: 52px;
  }
  .hero-benefits div { min-height: 56px; padding: 9px 6px; }
  .hero-benefits span { font-size: 11px; }
  .hero-visual {
    min-height: 390px;
    margin-top: 38px;
  }
  .hero-image {
    top: 58%;
    width: min(760px, 156vw);
  }
}
