:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-soft: #eef2ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

p { margin: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

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

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #c9d1dd; background: var(--bg-soft); }

.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(29, 78, 216, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.035em;
}

.hero p.lead {
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}

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

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* Architecture card */

.layer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.layer-card .layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.layer-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, .12);
}
.layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.layer + .layer { margin-top: 10px; }
.layer .num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--blue);
  flex: 0 0 auto;
}
.layer strong { display: block; font-size: 15px; }
.layer span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3.2vw, 36px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #cfd8e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .card-link { margin-top: auto; font-size: 14.5px; font-weight: 600; }

.icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.icon svg { width: 22px; height: 22px; }

/* Steps */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
}
.step h3 { margin-top: 10px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* Feature list */

.checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* Split */

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

/* CTA */

.cta {
  padding: 56px;
  border-radius: 20px;
  background: linear-gradient(135deg, #14204a 0%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { font-size: clamp(24px, 2.6vw, 32px); color: #fff; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.cta .btn-primary { background: #fff; color: var(--blue-dark); }
.cta .btn-primary:hover { background: #eef2ff; }

/* Page hero */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero p { margin-top: 16px; color: var(--muted); font-size: 19px; max-width: 720px; }

.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

/* Content prose */

.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h3 { font-size: 20px; margin-top: 32px; }
.prose p { margin-top: 14px; color: var(--ink-soft); }
.prose ul { margin: 14px 0 0; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-top: 8px; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-card h3 { font-size: 19px; }
.contact-card p { margin-top: 10px; color: var(--muted); }
.contact-card .big { font-size: 20px; font-weight: 600; margin-top: 16px; }
.contact-card .big a { color: var(--ink); }
.contact-card .big a:hover { color: var(--blue); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}

/* Utility */

.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 24, 40, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
