:root {
  --blue-700: #086eb7;
  --blue-600: #097eba;
  --cyan-500: #09b9e9;
  --orange-600: #ba4509;
  --ink-900: #172a36;
  --ink-700: #4b6170;
  --surface: #ffffff;
  --line: #cddfeb;
  --bg: #f4fbff;
  --shadow-soft: 0 12px 28px -20px rgba(8, 78, 117, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink-900);
  line-height: 1.6;
  background: var(--bg);
}

h1,
h2,
h3,
.btn,
.section-kicker,
.eyebrow,
.nav a,
.panel-kicker {
  font-family: "Montserrat", "Open Sans", sans-serif;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #001a27;
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
}

.utility-bar {
  background: #0b0f13;
  color: #fff;
}

.utility-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
  justify-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.utility-row p {
  margin: 0;
  text-align: center;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-row {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand img {
  height: 68px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue-700);
}

.nav a:active {
  color: var(--blue-600);
}

.menu-toggle {
  display: none;
}

.nav-cta-mobile {
  display: none;
}

.nav .nav-cta-mobile {
  display: none;
}

.btn {
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 30px -14px rgba(8, 78, 117, 0.75);
  outline-color: rgba(9, 185, 233, 0.55);
}

.btn:active {
  transform: translateY(-1px) scale(1);
  filter: brightness(0.95);
  box-shadow: 0 8px 16px -12px rgba(8, 78, 117, 0.55);
}

.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 8px 16px -12px rgba(8, 78, 117, 0.48);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #0b9be0, #0c83cd);
  filter: saturate(1.16);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

.section {
  padding: 4.5rem 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(8, 110, 183, 0.93), rgba(9, 185, 233, 0.67)),
    radial-gradient(1300px 500px at 84% -16%, rgba(0, 0, 0, 0.3), transparent 70%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 380px at 50% -40%, rgba(173, 237, 255, 0.22), transparent 72%),
    radial-gradient(800px 280px at 50% 130%, rgba(5, 35, 55, 0.34), transparent 75%);
  opacity: 0.95;
  overflow: hidden;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(194, 241, 255, 0.06) 27px,
      rgba(194, 241, 255, 0.06) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 27px,
      rgba(194, 241, 255, 0.05) 27px,
      rgba(194, 241, 255, 0.05) 28px
    ),
    radial-gradient(circle at 18% 32%, rgba(194, 241, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(194, 241, 255, 0.14) 0 1px, transparent 2px);
  opacity: 0.34;
  animation: overlayTraceShift 20s linear infinite;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 10% 20%, rgba(159, 226, 255, 0.2), transparent 24%),
    radial-gradient(circle at 75% 30%, rgba(127, 208, 244, 0.16), transparent 26%),
    radial-gradient(circle at 40% 75%, rgba(108, 190, 228, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(9, 57, 87, 0.3), rgba(7, 41, 66, 0.24));
  filter: blur(16px);
  opacity: 0.52;
  animation: overlayFogFloat 16s ease-in-out infinite alternate;
}

.hero-circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

@keyframes overlayTraceShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-28px, 0, 0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy {
  color: #fff;
  text-shadow: 0 2px 16px rgba(4, 23, 37, 0.35);
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.01;
  max-width: 14ch;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.95;
}

@keyframes overlayFogFloat {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
}

.hero-note a {
  color: #fff;
  font-weight: 700;
}

.hero-note a:hover,
.hero-note a:focus-visible {
  text-decoration: none;
}

.hero-panel {
  background: rgba(7, 36, 54, 0.86);
  border: 1px solid rgba(171, 224, 255, 0.34);
  border-radius: 6px;
  color: #fff;
  padding: 1.05rem;
  align-self: start;
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.55);
}

.panel-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel article {
  margin-top: 0.75rem;
  border: 1px solid rgba(171, 224, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.85rem;
}

.hero-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.hero-panel p {
  margin: 0.35rem 0 0;
  color: #eaf6ff;
}

.section-kicker {
  margin: 0 0 0.45rem;
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 53, 10, 0.26);
  background: rgba(186, 69, 9, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e350a;
  font-size: 0.72rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
}

#problem {
  background: linear-gradient(180deg, #f3f9fd, #eaf3fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#solution {
  background: #ffffff;
}

#brands {
  background:
    radial-gradient(800px 320px at 100% 0%, rgba(9, 185, 233, 0.16), transparent 70%),
    linear-gradient(180deg, #eef8ff, #e6f3fc);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#proof {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

#process {
  background:
    radial-gradient(1200px 500px at 80% -30%, rgba(9, 185, 233, 0.22), transparent 65%),
    linear-gradient(180deg, #10334b, #184c6d);
  border-top: 1px solid rgba(171, 224, 255, 0.2);
  border-bottom: 1px solid rgba(171, 224, 255, 0.2);
}

#process .section-kicker {
  color: #ffeade;
  background: rgba(255, 217, 200, 0.14);
  border-color: rgba(255, 217, 200, 0.32);
}

#process h2 {
  color: #ffffff;
}

.problem-grid,
.services-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.card,
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.card h3,
.service-card h3 {
  margin: 0;
  color: #123f5d;
  font-size: 1.02rem;
}

.card p,
.service-card p {
  margin: 0.55rem 0 0;
  color: var(--ink-700);
  font-size: 0.97rem;
}

.brands-note {
  margin: 0.55rem 0 1rem;
  color: var(--ink-700);
}

.brand-carousel {
  margin-top: 0.35rem;
}

.brand-viewport {
  overflow: hidden;
  scrollbar-width: none;
  cursor: default;
  position: relative;
}

.brand-viewport::-webkit-scrollbar {
  display: none;
}

.brand-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.7rem;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.brand-item {
  flex: 0 0 180px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.8rem;
  text-align: center;
  min-height: 130px;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  align-content: center;
}

.brand-mark {
  width: 100%;
  min-height: 58px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  max-height: 52px;
  max-width: 138px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d76b0, #0ea6d7);
  font: 700 0.86rem/1 "Montserrat", sans-serif;
}

.brand-item p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #123f5d;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  color: #123f5d;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.carousel-btn:active {
  transform: scale(0.97);
}

.proof-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

blockquote {
  margin: 0;
  border-left: 4px solid var(--blue-700);
  background: #fff;
  padding: 1.1rem 1.1rem 1.1rem 1.2rem;
  color: var(--ink-700);
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
}

cite {
  margin-top: 0.65rem;
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #123f5d;
}

.stats-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats-grid article {
  border-top: 3px solid var(--blue-700);
  background: #fff;
  padding: 0.8rem;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font: 800 1.28rem/1 "Montserrat", sans-serif;
  color: var(--blue-700);
}

.stats-grid span {
  font-size: 0.82rem;
  color: var(--ink-700);
}

.timeline {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.timeline li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.92rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  box-shadow: var(--shadow-soft);
}

.timeline span {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 0.78rem/1 "Montserrat", sans-serif;
}

.timeline p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.96rem;
}

#process .timeline li {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(171, 224, 255, 0.45);
}

.cta {
  background: linear-gradient(135deg, #085f99, #0b7db9);
  color: #fff;
}

.cta p {
  color: #dbeff9;
}

.cta .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  color: var(--ink-900);
  padding: 1rem;
  border-radius: 4px;
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #13405e;
}

.contact-form input,
.contact-form select {
  width: 100%;
  border: 1px solid #b7d3e5;
  border-radius: 4px;
  padding: 0.72rem;
  font: 500 0.92rem/1.25 "Open Sans", sans-serif;
}

.contact-form textarea {
  width: 100%;
  border: 1px solid #b7d3e5;
  border-radius: 4px;
  padding: 0.72rem;
  font: 500 0.92rem/1.4 "Open Sans", sans-serif;
  min-height: 132px;
  resize: vertical;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, #ffffff, #f4faff);
  padding-right: 2.4rem;
  cursor: pointer;
}

.select-wrap .select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #0f577f;
  pointer-events: none;
  transition: transform 180ms ease, color 180ms ease;
}

.select-wrap:hover .select-chevron {
  color: var(--blue-700);
}

.select-wrap:focus-within .select-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: var(--blue-700);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #94bedb;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(9, 126, 186, 0.22);
}

.contact-form input:active,
.contact-form select:active,
.contact-form textarea:active {
  border-color: var(--blue-700);
}

.turnstile-wrap {
  margin-top: 0.2rem;
}

.contact-form button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.form-status {
  margin: 0.05rem 0 0;
  min-height: 1.25rem;
  font-size: 0.84rem;
  color: #24506c;
}

.form-status.success {
  color: #0a7f53;
}

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

.form-status.pending {
  color: #0d6090;
}

.footer {
  background: #0b0f13;
  color: #d4e6f2;
}

.footer-grid {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.86rem;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d4e6f2;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer p {
  margin: 0;
}

.testimonial-carousel {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
  animation: testimonialFade 460ms ease both;
}

.testimonial-slide blockquote {
  margin: 0;
}

.testimonial-dots {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #bdd6e7;
  cursor: pointer;
  padding: 0;
}

.testimonial-dot.is-active {
  background: var(--blue-700);
}

.testimonial-dot:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

@keyframes testimonialFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-row,
  .cta-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-row {
    min-height: 94px;
  }

  .brand img {
    height: 56px;
  }

  .utility-row,
  .problem-grid,
  .services-grid,
  .stats-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .brand-item {
    flex-basis: 170px;
  }
}

@media (max-width: 760px) {
  header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
  }

  .utility-bar {
    display: none;
  }

  .topbar {
    border-bottom-color: rgba(159, 187, 208, 0.54);
  }

  .nav-row {
    min-height: 0;
    padding: 0.35rem 0 0.42rem;
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap: 0.45rem;
    align-items: center;
    position: relative;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .menu-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid rgba(8, 126, 186, 0.44);
    border-radius: 0.24rem;
    background: linear-gradient(135deg, rgba(235, 247, 255, 0.98), rgba(226, 242, 254, 0.98));
    color: #0f4f74;
    box-shadow: 0 10px 16px -14px rgba(8, 78, 117, 0.48);
    font: 700 0.56rem/1 "Montserrat", "Open Sans", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.62rem;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .menu-caret {
    display: inline-block;
    margin-left: 0.2rem;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-caret {
    transform: rotate(180deg);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: rgba(9, 126, 186, 0.76);
    box-shadow: 0 12px 20px -14px rgba(8, 78, 117, 0.62);
  }

  .menu-toggle:active {
    transform: translateY(1px);
  }

  .nav-row > .btn {
    display: none;
  }

  .nav {
    grid-area: nav;
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    right: 0;
    z-index: 45;
    display: none;
    flex-direction: column;
    gap: 0.36rem;
    padding: 0.48rem;
    border: 1px solid rgba(166, 200, 223, 0.7);
    background: linear-gradient(180deg, rgba(244, 251, 255, 0.99), rgba(235, 246, 254, 0.98));
    box-shadow: 0 16px 30px -24px rgba(8, 78, 117, 0.5);
  }

  #siteHeader.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    border: 1px solid rgba(164, 198, 220, 0.78);
    border-radius: 0.24rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.46rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 0.18rem;
    width: 100%;
    padding: 0.58rem 0.8rem;
    font-size: 0.6rem;
  }

  .utility-row,
  .problem-grid,
  .services-grid,
  .proof-grid,
  .stats-grid,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    height: 42px;
  }

  .brand-track {
    gap: 0.55rem;
  }

  .brand-item {
    flex-basis: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-overlay::before {
    animation: none;
  }

  .hero-overlay::after {
    animation: none;
  }

  .hero-circuit-canvas {
    display: none;
  }
}
