:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --ink: #101828;
  --muted: #5f6b7a;
  --line: #d8e0ea;
  --brand: #0b65c2;
  --brand-dark: #073f78;
  --accent: #17a589;
  --shadow: 0 18px 50px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(216, 224, 234, .75);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

.brand img {
  width: 178px;
  height: auto;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #253244;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--brand);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.header-cta,
.button-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(11, 101, 194, .24);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .38);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, .22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(20px, 5vw, 72px) 70px;
  color: #ffffff;
  overflow: hidden;
}

.hero-media,
.hero-motion,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../images/hero-tech-ai.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroDrift 24s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

.hero-motion {
  opacity: .8;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(0, 217, 255, .95) 0 3px, rgba(0, 217, 255, .18) 4px 14px, transparent 15px),
    radial-gradient(circle at 58% 34%, rgba(0, 217, 255, 1) 0 4px, rgba(0, 217, 255, .22) 5px 18px, transparent 19px),
    radial-gradient(circle at 72% 58%, rgba(24, 184, 255, 1) 0 5px, rgba(24, 184, 255, .2) 6px 20px, transparent 21px),
    radial-gradient(circle at 86% 48%, rgba(0, 217, 255, 1) 0 6px, rgba(0, 217, 255, .24) 7px 24px, transparent 25px),
    radial-gradient(circle at 62% 76%, rgba(0, 183, 216, .95) 0 5px, rgba(0, 183, 216, .2) 6px 20px, transparent 21px),
    linear-gradient(118deg, transparent 0 42%, rgba(0, 217, 255, .34) 43%, transparent 44% 100%),
    linear-gradient(26deg, transparent 0 54%, rgba(22, 155, 213, .3) 55%, transparent 56% 100%),
    linear-gradient(153deg, transparent 0 61%, rgba(0, 183, 216, .28) 62%, transparent 63% 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 580px 580px, 680px 680px, 760px 760px;
  animation: networkPulse 4.8s ease-in-out infinite alternate, networkSlide 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 16, 31, .96) 0%, rgba(5, 20, 38, .78) 42%, rgba(5, 20, 38, .25) 100%),
    linear-gradient(180deg, rgba(3, 10, 22, .08), rgba(3, 10, 22, .5));
}

@keyframes heroDrift {
  from {
    background-position: center center;
    transform: scale(1.05) translate3d(0, 0, 0);
  }

  to {
    background-position: 58% 48%;
    transform: scale(1.09) translate3d(-1.4%, .8%, 0);
  }
}

@keyframes networkPulse {
  from {
    opacity: .5;
  }

  to {
    opacity: .95;
  }
}

@keyframes networkSlide {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 160px -130px, -180px 140px, 190px 160px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-band h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2vw, 22px);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 48px 0 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

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

.section h2,
.contact-band h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(16, 24, 40, .02);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--brand);
  background: #e9f3ff;
  font-size: 26px;
}

.service-card h3,
.process-list h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p,
.process-list p,
.split-copy p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
  background: var(--surface);
}

.split-copy p {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 17px;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.process-list span {
  grid-row: span 2;
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.process-list p {
  margin: 0;
}

.tech-section {
  background: var(--surface-soft);
}

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

.tech-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(216, 224, 234, .9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(16, 24, 40, .08);
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 28px;
}

.tech-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.tech-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.tech-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-card li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #d9e8f7;
  border-radius: 8px;
  color: #16456f;
  background: #eef7ff;
  font-size: 13px;
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  padding: 92px clamp(20px, 5vw, 72px);
  background: #07182d;
  color: #ffffff;
}

.contact-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
}

.whatsapp-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.contact-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  color: #263447;
  font-size: 14px;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(11, 101, 194, .16);
  border-color: var(--brand);
  background: #ffffff;
}

.form-validation {
  color: #b42318;
  font-size: 13px;
}

.snackbars {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%) translateY(30px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #101828;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.snackbars.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 178px;
  height: auto;
}

.site-footer p {
  margin: 12px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 800;
}

.site-footer nav a:hover {
  color: var(--brand);
}

.rights {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    justify-items: start;
    gap: 0;
    padding: 18px 22px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 36px rgba(16, 24, 40, .14);
  }

  .site-nav.is-open a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-metrics,
  .split,
  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand img {
    width: 150px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section,
  .contact-band {
    padding: 70px 18px;
  }

  .service-card,
  .contact-form,
  .process-list article {
    padding: 22px;
  }

  .process-list article {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-motion {
    animation: none;
  }
}
