:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --wash: #f4f7f6;
  --line: #d9e4e3;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --blue: #244a7f;
  --coral: #d1495b;
  --gold: #c9922c;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 228, 227, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.9rem;
}

.nav-links {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--teal);
}

.header-cta,
.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta,
.primary-button {
  background: var(--teal);
  color: #ffffff;
}

.header-cta:hover,
.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero {
  min-height: calc(100vh - 74px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #0c151c;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 21, 28, 0.86) 0%, rgba(12, 21, 28, 0.54) 48%, rgba(12, 21, 28, 0.88) 100%),
    radial-gradient(circle at 72% 42%, rgba(15, 118, 110, 0.5), transparent 34%),
    linear-gradient(135deg, #10202a 0%, #122a32 42%, #1f2f46 100%);
}

.workflow-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
}

.workflow-map::before,
.workflow-map::after {
  content: "";
  position: absolute;
  inset: 18% 8% auto 42%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(201, 146, 44, 0.85), rgba(15, 118, 110, 0.1));
  transform: rotate(-12deg);
}

.workflow-map::after {
  inset: auto 10% 24% 34%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(209, 73, 91, 0.8), rgba(15, 118, 110, 0.1));
}

.node,
.pulse {
  position: absolute;
  border-radius: 8px;
}

.node {
  min-width: 112px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  text-align: center;
}

.node-lead {
  right: 24%;
  top: 18%;
}

.node-ai {
  right: 9%;
  top: 39%;
  background: rgba(15, 118, 110, 0.74);
}

.node-crm {
  right: 30%;
  bottom: 26%;
}

.node-report {
  right: 12%;
  bottom: 14%;
}

.pulse {
  width: 12px;
  height: 12px;
  background: #f8d77e;
  box-shadow: 0 0 0 10px rgba(248, 215, 126, 0.14);
}

.pulse-one {
  right: 35%;
  top: 31%;
}

.pulse-two {
  right: 21%;
  top: 52%;
}

.pulse-three {
  right: 27%;
  bottom: 18%;
}

.hero-content {
  width: min(100%, 860px);
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 76px);
  color: #ffffff;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.55;
}

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

.hero-metrics {
  max-width: 900px;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.hero-metrics strong {
  color: #ffffff;
}

.section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 32px);
}

.intro-grid,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-grid p,
.split-section p,
.contact-section p,
.solution-card p,
.package-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

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

.solution-card,
.package-card,
.lead-form,
.timeline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.solution-card,
.package-card {
  min-height: 250px;
  padding: 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #e7f2f1;
  color: var(--teal);
  font-weight: 900;
}

.split-section {
  width: 100%;
  max-width: none;
  padding-inline: max(clamp(18px, 4vw, 56px), calc((100vw - 1180px) / 2 + 32px));
  background: #ffffff;
}

.timeline {
  display: grid;
  padding: 10px;
}

.timeline div {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline strong {
  font-size: 1.05rem;
}

.timeline span {
  color: var(--muted);
}

.package-card {
  display: grid;
  align-content: space-between;
}

.package-card.featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.14);
}

.package-card strong {
  color: var(--teal);
}

.communication-section {
  width: 100%;
  max-width: none;
  padding-inline: max(clamp(18px, 4vw, 56px), calc((100vw - 1180px) / 2 + 32px));
  background: #ffffff;
}

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

.communication-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.communication-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3fb;
  color: var(--blue);
  font-weight: 900;
}

.communication-card p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  align-items: center;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.lead-form textarea {
  resize: vertical;
}

.secondary-form-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.secondary-form-button:hover {
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--teal);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .node-lead,
  .node-crm {
    right: 42%;
  }

  .node-ai,
  .node-report {
    right: 8%;
  }

  .intro-grid,
  .split-section,
  .contact-section,
  .solution-grid,
  .package-grid,
  .communication-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    position: relative;
  }

  .header-cta {
    width: 100%;
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 54px 18px 58px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.15rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .workflow-map {
    opacity: 0.34;
  }

  .node {
    display: none;
  }

  .pulse {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 7px rgba(248, 215, 126, 0.1);
  }

  .hero-metrics span,
  .hero-actions a {
    width: 100%;
  }

  .hero-metrics {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-metrics span {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    line-height: 1.25;
  }

  .intro-grid,
  .split-section,
  .contact-section,
  .solution-grid,
  .package-grid,
  .communication-grid {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .package-card,
  .communication-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
