:root {
  --bg: #f7f9fc;
  --paper: #ffffff;
  --paper-soft: #f1f5f9;
  --ink: #17202f;
  --muted: #607086;
  --line: #dce4ee;
  --line-strong: #c9d5e5;
  --accent: #1f7aff;
  --accent-deep: #2153d6;
  --accent-2: #11b7d7;
  --success: #19a974;
  --shadow: 0 24px 70px rgba(20, 35, 60, 0.13);
  --shadow-soft: 0 12px 34px rgba(20, 35, 60, 0.08);
  --radius: 8px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 238, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(31, 122, 255, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: rgba(31, 122, 255, 0.42);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 255, 0.42);
  box-shadow: 0 16px 34px rgba(31, 122, 255, 0.13);
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(31, 122, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1.05fr);
  align-items: center;
  min-height: calc(100vh - 72px);
  gap: 56px;
  padding: 72px 0 54px;
}

.hero .section-inner {
  width: min(1280px, calc(100% - 40px));
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(46px, 5.1vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.section-lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero p,
.page-hero p {
  margin-top: 24px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.media-frame {
  overflow: hidden;
  border: 1px solid rgba(220, 228, 238, 0.92);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-frame.tight img {
  aspect-ratio: 4 / 3;
}

.section {
  padding: 92px 0;
}

.section.white {
  background: var(--paper);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(20, 35, 60, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.card:hover,
.card.interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 122, 255, 0.38);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.card p {
  color: var(--muted);
}

.card small {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.workflow {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.workflow-step h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.workflow-step p {
  color: var(--muted);
}

.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(31, 122, 255, 0.09);
  font-weight: 800;
}

.page-hero {
  padding: 96px 0 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 56px;
  align-items: center;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.compact-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-grid h1 {
  max-width: 580px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.field,
.field-full {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font: 500 15px/1.4 var(--font);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 122, 255, 0.16);
  border-color: rgba(31, 122, 255, 0.64);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  color: var(--success);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111827;
  color: #e5edf7;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 44px 0;
}

.footer-inner p {
  margin-top: 8px;
  color: #aab8ca;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: #b7c4d5;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .nav-wrap > .button.primary {
    padding-inline: 14px;
  }
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: 68px;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-wrap > .button.primary {
    display: none;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

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

  .nav-links a {
    padding: 12px 0;
  }

  .hero-grid,
  .page-hero-grid,
  .split,
  .section-header,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 54px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .section {
    padding: 72px 0;
  }

  .service-grid,
  .module-grid,
  .module-grid.three,
  .proof-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .section-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero p,
  .page-hero p,
  .section-lede {
    font-size: 16px;
  }

  .card,
  .form-card {
    padding: 20px;
  }
}

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