:root {
  --ink: #172033;
  --muted: #617087;
  --line: #d9e2ec;
  --paper: #f6f8fb;
  --white: #ffffff;
  --brand: #0b2e5c;
  --brand-2: #1677b8;
  --accent: #f59e0b;
  --green: #15803d;
  --shadow: 0 18px 50px rgba(19, 35, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--white);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

picture.image-missing {
  position: relative;
  display: block;
  min-height: inherit;
  background:
    linear-gradient(135deg, rgba(11, 46, 92, 0.88), rgba(22, 119, 184, 0.5)),
    repeating-linear-gradient(45deg, #dce7f1 0 14px, #c7d7e6 14px 28px);
}

picture.image-missing img {
  opacity: 0;
}

picture.image-missing::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  content: attr(data-label);
  font-weight: 850;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 19, 36, 0.84), rgba(8, 19, 36, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  opacity: 0.76;
}

.desktop-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.desktop-nav a {
  opacity: 0.82;
}

.desktop-nav a:hover {
  opacity: 1;
}

.phone-link {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #1d1606;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 19, 36, 0.92), rgba(8, 19, 36, 0.58) 42%, rgba(8, 19, 36, 0.12)),
    linear-gradient(180deg, rgba(8, 19, 36, 0.12), rgba(8, 19, 36, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  padding: clamp(128px, 20vh, 190px) 0 72px;
  margin-left: clamp(18px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93c5fd;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #1d1606;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  font-size: 1.8rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(64px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  max-width: 760px;
}

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

.problem-grid,
.service-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.problem-grid article,
.service-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brand-2);
  font-weight: 900;
}

.problem-grid p,
.service-card p,
.gallery-item p,
.timeline span,
.split-proof p {
  color: var(--muted);
}

.service-band {
  background: var(--white);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 220px;
  box-shadow: none;
}

.image-feature,
.split-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: 640px;
}

.image-feature-media {
  min-height: 460px;
}

.image-feature-content,
.split-proof > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 84px);
  background: #eff5f9;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.tech-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 18px;
  background: #111827;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.gallery-item picture {
  display: block;
  height: 260px;
}

.gallery-item.large picture {
  height: 360px;
}

.gallery-item div {
  padding: 22px;
}

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

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

#retention-form,
.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #344154;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), #0f766e);
}

.result-panel p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.result-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1;
}

.result-panel span {
  color: rgba(255, 255, 255, 0.82);
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 24px;
  border-top: 4px solid var(--brand-2);
  border-radius: 8px;
  background: var(--paper);
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin-bottom: 8px;
}

.split-proof {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
}

.split-proof picture {
  min-height: 540px;
}

.article-cluster {
  background: #eff5f9;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand);
  font-weight: 850;
}

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

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  padding: 20px;
  font-weight: 850;
  cursor: pointer;
}

details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 28px;
  padding: clamp(64px, 10vw, 120px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #0d1b2e;
}

.contact-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-meta a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: #081324;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-content {
    margin-left: 18px;
  }

  .problem-grid,
  .service-grid,
  .tech-gallery,
  .timeline,
  .article-grid,
  .calculator,
  .contact-section,
  .image-feature,
  .split-proof {
    grid-template-columns: 1fr;
  }

  .image-feature,
  .split-proof {
    min-height: 0;
  }

  .split-proof picture {
    min-height: 360px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .phone-link {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    box-shadow: var(--shadow);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .image-feature-content,
  .split-proof > div {
    padding: 42px 18px;
  }
}
