:root {
  --background: #f5f7f9;
  --foreground: #16212d;
  --navy: #071522;
  --deep: #102f42;
  --teal: #36c6d3;
  --teal-dark: #0b6f8f;
  --gold: #f0a63a;
  --line: #b8cbd6;
  --muted: #536677;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

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

main {
  background: #f5f7f9;
  color: #16212d;
}

.wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #071522;
  color: #fff;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.98) 0%, rgba(7, 21, 34, 0.9) 40%, rgba(7, 21, 34, 0.52) 74%, rgba(7, 21, 34, 0.28) 100%),
    radial-gradient(circle at 78% 28%, rgba(54, 198, 211, 0.2), transparent 32%);
}

.header {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 100%;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: block;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.25rem;
}

.brand-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: #c4e0ef;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: #d7e7ee;
}

.nav a {
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #fff;
}

.cta-outline {
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.15s ease;
}

.cta-outline:hover {
  border-color: #fff;
  background: #fff;
  color: #0b2236;
}

.hero-inner {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  min-height: 72svh;
  max-width: 80rem;
  align-content: center;
  padding: 3rem 1.25rem 3.5rem;
}

.hero-content {
  max-width: 49rem;
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0b6f8f;
}

.eyebrow {
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #65c1d3;
}

.hero h1 {
  max-width: 49rem;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.hero-lead {
  margin: 1.5rem 0 0;
  max-width: 43rem;
  font-size: 1rem;
  line-height: 2rem;
  color: #d9e6ed;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-primary {
  background: #36c6d3;
  color: #052131;
}

.btn-primary:hover {
  background: #69dce5;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.proof-section {
  position: relative;
  overflow: hidden;
  background: #e8eef3;
  padding: 0 1.25rem 3rem;
}

.proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#c8d7e0 1px, transparent 1px),
    linear-gradient(90deg, #c8d7e0 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.55;
}

.proof-grid {
  position: relative;
  z-index: 1;
  margin: -2rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.proof-card,
.plan-card,
.example-card,
.step-card {
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: #fff;
}

.proof-card {
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(16, 38, 54, 0.14);
}

.proof-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.proof-num {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.375rem;
  background: #e8f7fa;
  font-size: 0.875rem;
  font-weight: 900;
  color: #0b6f8f;
}

.proof-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0b6f8f;
}

.proof-value {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: #263746;
}

.section-pad {
  padding: 6rem 0;
}

.section-inner {
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1.25rem;
}

h2 {
  margin: 1rem 0 0;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.16;
  color: #16212d;
}

.h2-white {
  color: #fff;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 2rem;
  color: #536677;
}

.lead-light {
  color: #d9e6ed;
}

.kicker-light {
  color: #8de3ed;
}

.kicker-dark {
  color: #65c1d3;
}

.services-section {
  position: relative;
  overflow: hidden;
  background: #f7fafb;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  display: none;
  width: 42%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    #102f42;
  background-size: 32px 32px, 32px 32px, auto;
}

.services-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.services-cards {
  display: grid;
  gap: 1rem;
}

.plan-card {
  padding: 1.25rem;
  box-shadow: 0 16px 38px rgba(8, 25, 39, 0.13);
}

.plan-card::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: #f0a63a;
}

.plan-card h3,
.example-card h3,
.step-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #16212d;
}

.plan-card p,
.card-copy,
.step-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75rem;
  color: #536677;
}

.plan-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #263746;
}

.plan-list li {
  display: flex;
  gap: 0.5rem;
}

.dot {
  margin-top: 0.5rem;
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f0a63a;
}

.automation-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(54, 198, 211, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(8, 25, 39, 0.06) 0%, transparent 38%, rgba(240, 166, 58, 0.08) 100%),
    #dfe8ee;
}

.automation-head {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.examples-grid {
  position: relative;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.example-card {
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(12, 39, 56, 0.13);
}

.example-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.example-tag {
  border-radius: 0.375rem;
  background: #123b52;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dff7fb;
}

.example-bullet {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 999px;
  background: #f0a63a;
}

.flow-map {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
}

.flow-step {
  position: relative;
  min-width: 0;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: -0.25rem;
  top: 1rem;
  height: 1px;
  background: #99b7c6;
}

.flow-num {
  position: relative;
  z-index: 1;
  display: grid;
  height: 2rem;
  width: 2rem;
  place-items: center;
  border-radius: 0.375rem;
  background: #e8f7fa;
  font-size: 0.6875rem;
  font-weight: 900;
  color: #0b6f8f;
}

.flow-label {
  display: block;
  margin-top: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #536677;
}

.control-section {
  position: relative;
  overflow: hidden;
  background: #102f42;
  color: #fff;
}

.control-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 0%, transparent 48%, rgba(141, 227, 237, 0.18) 49%, transparent 50%, transparent 100%);
  background-size: 54px 54px;
  opacity: 0.35;
}

.control-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.stage-list {
  display: grid;
  gap: 0.75rem;
}

.stage-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.stage-num {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 0.375rem;
  background: #f0a63a;
  font-size: 0.875rem;
  font-weight: 900;
  color: #102636;
}

.stage-row p:first-of-type {
  margin: 0;
  font-weight: 600;
}

.stage-row p:last-of-type {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #d9e6ed;
}

.process-section {
  position: relative;
  overflow: hidden;
  background: #f7fafb;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: #e5edf2;
}

.process-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#cddbe3 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: 0.55;
}

.process-section .section-inner {
  position: relative;
  z-index: 1;
}

.section-copy {
  max-width: 50rem;
}

.steps-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.step-card {
  padding: 1.5rem;
  box-shadow: 0 16px 38px rgba(8, 25, 39, 0.11);
}

.step-num {
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 0.375rem;
  background: #102f42;
  font-size: 0.875rem;
  font-weight: 900;
  color: #8de3ed;
}

.step-card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.contact-section {
  background: #081927;
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.contact-lead {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.8rem;
  color: #d9e6ed;
}

.contact-panel {
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  padding: 1rem;
  box-shadow: none;
}

.contact-form-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field + .form-field,
.form-row + .form-field {
  margin-top: 0.65rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8de3ed;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.375rem;
  background: rgba(8, 25, 39, 0.38);
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  color: #fff;
}

.form-field textarea {
  min-height: 4.4rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #36c6d3;
  background: rgba(8, 25, 39, 0.74);
}

.form-status {
  min-height: 1.1rem;
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: #8de3ed;
}

.form-status-error {
  color: #f0a63a;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}

.contact-list div {
  display: grid;
  gap: 0.25rem;
}

.contact-list dt {
  font-weight: 700;
  color: #8de3ed;
}

.contact-list dd {
  margin: 0;
  color: #d9e6ed;
}

.contact-btn {
  margin-top: 0.75rem;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #081927;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-btn:hover {
  background: #dff7fb;
}

.contact-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

footer {
  background: #06121d;
  padding: 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: #9bb1bf;
}

.footer-inner {
  margin: 0 auto;
  display: flex;
  max-width: 80rem;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .header,
  .hero-inner,
  .proof-section,
  .section-inner,
  footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-inner {
    min-height: 76vh;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-lead {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .proof-grid,
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row .form-field + .form-field {
    margin-top: 0;
  }

  h2 {
    font-size: 2.25rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .services-grid {
    grid-template-columns: 0.82fr 1.18fr;
  }

  .services-section::before {
    display: block;
  }

  .automation-head {
    grid-template-columns: 0.78fr 1.22fr;
  }

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

  .control-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 0.8fr;
  }
}

@media (min-width: 1280px) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
