:root {
  --bg: #f4f6f9;
  --bg-soft: #eef2f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(22, 41, 77, 0.12);
  --line-strong: rgba(22, 41, 77, 0.2);
  --text: #122033;
  --muted: #607086;
  --blue: #0d4abf;
  --blue-deep: #092e7c;
  --blue-soft: rgba(13, 74, 191, 0.08);
  --shadow: 0 18px 48px rgba(11, 24, 48, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13,74,191,0.08), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  min-height: 100vh;
}

.site-header {
  max-width: calc(var(--content) + 40px);
  margin: 0 auto;
  padding: 24px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px 10px 0;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(244,246,249,0.72);
  border-radius: 20px;
  z-index: -1;
  box-shadow: 0 8px 24px rgba(8, 18, 36, 0.05);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img,
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand span,
.footer-brand span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue-deep); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: white;
  box-shadow: 0 14px 30px rgba(13, 74, 191, 0.22);
}

.button-secondary {
  background: rgba(255,255,255,0.65);
  border-color: var(--line);
  color: var(--text);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.section {
  max-width: calc(var(--content) + 40px);
  margin: 0 auto;
  padding: 42px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.92fr);
  align-items: stretch;
  gap: 42px;
  padding-top: 34px;
  padding-bottom: 60px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 18px 0 16px;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  max-width: 11ch;
}

.hero-text,
.hero-subtext,
.section-heading p,
.info-card p,
.side-point p,
.maturity-step p,
.contact-card p,
.hero-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}
.hero-text { max-width: 58ch; font-size: 1.1rem; }
.hero-subtext { max-width: 66ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-metrics > div,
.hero-card,
.info-card,
.wheel-card,
.side-point,
.integration-card,
.contact-card,
.maturity-step {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-metrics > div {
  padding: 18px;
  border-radius: var(--radius-sm);
}
.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-card {
  border-radius: 30px;
  padding: 20px;
}
.hero-card p { margin: 16px 0 4px; }

.hero-card-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
}

#flockCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13,74,191,0.12) 0%, rgba(13,74,191,0.03) 100%);
  border: 1px solid rgba(13,74,191,0.08);
}

.section-alt {
  background: linear-gradient(180deg, rgba(13,74,191,0.03), rgba(13,74,191,0.06));
  border-top: 1px solid rgba(13,74,191,0.05);
  border-bottom: 1px solid rgba(13,74,191,0.05);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-heading.centered,
.narrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-heading h2,
.contact-card h2 { font-size: clamp(2rem, 4vw, 3.35rem); }

.two-line-heading {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.two-line-heading .heading-line {
  display: block;
  white-space: nowrap;
}

.change-section-heading {
  max-width: 1200px;
}

.single-line-heading {
  font-size: clamp(1.8rem, 3.2vw, 3.1rem) !important;
  line-height: 1.04;
  white-space: nowrap;
}

.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  border-radius: 24px;
  padding: 24px;
}
.info-card h3,
.side-point h3,
.maturity-step h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}
.info-card.accent {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(13,74,191,0.05));
}

.model-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.wheel-card { border-radius: 30px; padding: 28px; min-height: 520px; display: grid; place-items: center; }
.wheel {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(13,74,191,0.14);
  background: radial-gradient(circle at center, rgba(13,74,191,0.08), rgba(13,74,191,0.02) 58%, transparent 58%);
}
.wheel::before,
.wheel::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(13,74,191,0.18);
}
.wheel::after {
  inset: 33%;
  border-style: solid;
  border-color: rgba(13,74,191,0.15);
}
.wheel-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: white;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(13,74,191,0.25);
}
.wheel-center span { display: block; font-weight: 700; font-size: 1.15rem; }
.wheel-center small { display: block; opacity: 0.9; line-height: 1.45; margin-top: 6px; }
.wheel-node {
  position: absolute;
  width: 132px;
  min-height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13,74,191,0.14);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(8,18,36,0.07);
}
.node-top { left: 50%; top: -2%; transform: translate(-50%, 0); }
.node-top-right { right: -3%; top: 23%; }
.node-bottom-right { right: -4%; bottom: 21%; }
.node-bottom { left: 50%; bottom: -2%; transform: translate(-50%, 0); }
.node-bottom-left { left: -6%; bottom: 21%; }
.node-top-left { left: -5%; top: 23%; }

.side-points {
  display: grid;
  gap: 18px;
}
.side-point {
  border-radius: 24px;
  padding: 24px;
}

.change-strip {
  margin: 30px 0 28px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.change-item {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(13,74,191,0.12);
  background: linear-gradient(180deg, #ffffff, rgba(13,74,191,0.04));
  font-weight: 600;
  color: var(--blue-deep);
}
.change-arrow { color: var(--muted); font-weight: 700; }

.maturity-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.maturity-step {
  border-radius: 26px;
  padding: 26px;
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
  margin-bottom: 18px;
}
.maturity-divider {
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 1.4rem;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.integration-card {
  border-radius: 22px;
  padding: 22px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.integration-card span {
  color: var(--muted);
  font-size: 0.95rem;
}
.integration-card strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.contact-section {
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: calc(var(--content) + 40px);
}
.contact-card {
  border-radius: 34px;
  padding: 34px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.contact-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-brand img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
.contact-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.site-footer {
  max-width: calc(var(--content) + 40px);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero,
  .model-layout {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 420px;
  }
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .maturity-row {
    grid-template-columns: 1fr;
  }
  .maturity-divider { display: none; }
}

@media (max-width: 900px) {
  .single-line-heading {
    white-space: normal;
  }
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-metrics,
  .card-grid.three {
    grid-template-columns: 1fr;
  }
  .wheel-node {
    width: 114px;
    min-height: 50px;
    font-size: 0.92rem;
  }
}

@media (max-width: 620px) {
  .hero { padding-top: 20px; }
  .two-line-heading {
    font-size: clamp(1.9rem, 9vw, 2.7rem) !important;
  }
  .two-line-heading {
    max-width: 10ch;
  }
  .hero-visual { min-height: 320px; }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .brand img, .footer-brand img { width: 38px; height: 38px; }
  .brand span, .footer-brand span { font-size: 1.08rem; }
  .wheel-card { min-height: 420px; padding: 20px; }
  .wheel-node {
    width: 94px;
    min-height: 42px;
    font-size: 0.8rem;
  }
  .wheel-center span { font-size: 1rem; }
  .wheel-center small { font-size: 0.78rem; }
  .integration-grid { grid-template-columns: 1fr; }
  .site-footer,
  .contact-brand { flex-direction: column; align-items: flex-start; }
}
