:root {
  --bg: #edf3f8;
  --surface: #ffffff;
  --surface-alt: #e5edf5;
  --ink: #0f1a26;
  --ink-soft: #49607a;
  --primary: #0096e5;
  --primary-deep: #07579a;
  --accent: #00c4e8;
  --signal: #c0392b;
  --ok: #27ae60;
  --shadow: 0 28px 70px rgba(7, 23, 40, 0.18);
  --radius-xl: 2.2rem;
  --radius-lg: 1.4rem;
  --speed: 280ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 150, 229, 0.18), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(0, 196, 232, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fcff 0%, var(--bg) 100%);
  line-height: 1.55;
}

.noise-svg {
  position: absolute;
  width: 0;
  height: 0;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: #fff;
  filter: url(#noiseFilter);
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

main {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, calc(100% - 2rem));
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 30;
  color: #e9f5ff;
  background: linear-gradient(120deg, rgba(3, 22, 38, 0.74), rgba(9, 39, 63, 0.58));
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(180, 220, 247, 0.28);
  box-shadow:
    0 18px 42px rgba(1, 12, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    background var(--speed),
    border-color var(--speed),
    box-shadow var(--speed),
    color var(--speed);
}

.floating-nav.scrolled {
  color: var(--ink);
  background: rgba(246, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-color: rgba(7, 87, 154, 0.2);
  box-shadow:
    0 14px 45px rgba(11, 37, 63, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 0.28rem;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(1, 8, 18, 0.25);
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-1px);
}

.floating-nav.scrolled .nav-links a {
  opacity: 0.88;
  text-shadow: none;
}

.floating-nav.scrolled .nav-links a:hover {
  color: var(--ink);
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  overflow: hidden;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform var(--speed) cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow var(--speed),
    color var(--speed);
}

.btn:hover {
  transform: translateY(-1px) scale(1.03);
}

.btn-slide {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  transition: transform 360ms ease;
  z-index: -1;
}

.btn:hover .btn-slide {
  transform: translateX(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 30px rgba(0, 110, 185, 0.34);
}

.btn-primary .btn-slide {
  background: linear-gradient(120deg, var(--primary-deep), #003f74);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(7, 87, 154, 0.25);
}

.btn-ghost .btn-slide {
  background: rgba(255, 255, 255, 0.65);
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  background: #031120;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #031120;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 26, 46, 0.2) 0%, rgba(8, 24, 42, 0.92) 85%),
    linear-gradient(65deg, rgba(0, 150, 229, 0.35), transparent 55%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7.8rem 1.4rem 2rem;
}

.hero-copy {
  width: min(980px, 100%);
  color: #f4fbff;
  text-align: center;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
}

.hero-brand {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f5fbff;
  text-shadow: 0 10px 35px rgba(1, 10, 21, 0.45);
  opacity: 0;
  transform: translateY(22px);
}

.hero-brand.is-visible {
  animation: heroBrandIn 820ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-slogan {
  margin: 0;
  max-width: 32ch;
  font-family: "Sora", sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: rgba(234, 246, 255, 0.94);
  text-shadow: 0 6px 20px rgba(1, 10, 21, 0.24);
}

.hero-word {
  display: inline-block;
  margin-right: 0.2em;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  animation: heroWordIn 620ms ease forwards;
  animation-delay: var(--word-delay, 0ms);
}

section {
  margin-top: 4.2rem;
}

section.hero {
  margin-top: 0;
}

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

.metric-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(7, 87, 154, 0.14);
  box-shadow: var(--shadow);
}

.metric-number {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
}

.metric-card p:last-child {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.clients {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.35rem 0 1.55rem;
  background: #ffffff;
  border-top: 1px solid rgba(7, 87, 154, 0.08);
  border-bottom: 1px solid rgba(7, 87, 154, 0.08);
  overflow: hidden;
}

.clients-head {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto 0.9rem;
  padding: 0 0.3rem;
  text-align: center;
}

.clients-head .section-kicker {
  display: inline-block;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-kicker {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  font-size: 0.74rem;
}

.clients-marquee {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clientsMarquee 30s linear infinite;
}

.clients-group {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-right: 1.8rem;
}

.clients-group img {
  width: 220px;
  height: 84px;
  min-width: 220px;
  flex: 0 0 220px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.86;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.clients-group img.logo-mercedes {
  width: 250px;
  min-width: 250px;
  flex-basis: 250px;
  height: 96px;
}

.clients-group img.logo-porto {
  width: 285px;
  min-width: 285px;
  flex-basis: 285px;
  height: 108px;
}

.clients-group img.logo-fast {
  width: 280px;
  min-width: 280px;
  flex-basis: 280px;
  height: 108px;
}

.clients-group img:hover {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.03) brightness(1);
  opacity: 1;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3.3vw, 3rem);
  max-width: 19ch;
}

.features {
  padding: 2rem 0;
}

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

.feature-card,
.service-card,
.protocol-item,
.final-cta {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(7, 87, 154, 0.15);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.25rem;
  min-height: 350px;
}

.feature-card header p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.feature-card-clean {
  min-height: 350px;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.feature-card-clean h3 {
  letter-spacing: -0.01em;
}

.feature-points {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-points li {
  line-height: 1.45;
}

.feature-metric {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(7, 87, 154, 0.16);
  display: grid;
  gap: 0.25rem;
}

.feature-metric strong {
  font-size: 1.08rem;
  color: var(--primary-deep);
}

.feature-metric span {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.services {
  padding: 1.3rem 0;
}

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

.service-card {
  padding: 1.2rem;
}

.service-card h3 {
  font-size: 1.02rem;
}

.service-card p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.philosophy {
  position: relative;
  overflow: hidden;
  border-radius: 2.8rem;
  background: #05192c;
  min-height: 420px;
}

.philosophy img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transform: scale(1.04);
}

.philosophy-copy {
  position: relative;
  z-index: 1;
  color: #edf8ff;
  padding: 2.4rem;
}

.philosophy-copy p {
  margin: 0;
  color: rgba(226, 243, 255, 0.82);
}

.philosophy-copy h2 {
  margin-top: 0.8rem;
  max-width: 17ch;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.philosophy-copy em {
  color: var(--accent);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

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

.protocol-item {
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
  min-height: 0;
}

.step-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.step-head span {
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
}

.step-head h3 {
  font-size: 1.3rem;
}

.protocol-item p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
}

.final-cta {
  margin-top: 4.6rem;
  padding: 2.2rem;
  background: linear-gradient(145deg, #f5fbff 0%, #e6f3ff 100%);
}

.final-cta h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  max-width: 18ch;
}

.site-footer {
  position: relative;
  margin-top: 4.6rem;
  border-radius: 0;
  background: #071526;
  color: #d6e2ef;
  padding: 2.4rem min(6vw, 3rem) 1.8rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(122, 151, 181, 0.35);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 150, 229, 0.45) 50%, transparent 100%);
}

.footer-logo {
  width: 72px;
  height: auto;
}

.site-footer p {
  margin: 0.8rem 0 0;
  color: rgba(210, 225, 241, 0.82);
  max-width: 46ch;
  line-height: 1.6;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(186, 206, 227, 0.9);
}

.site-footer a {
  display: block;
  margin-bottom: 0.6rem;
  color: #d3e1ef;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 170ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.whatsapp-float {
  position: fixed;
  right: calc(1.1rem + env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: #25d366;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(12, 42, 22, 0.33);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-float svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  flex: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #20c45a;
  box-shadow: 0 18px 32px rgba(12, 42, 22, 0.38);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes clientsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 196, 232, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 196, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 196, 232, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes heroBrandIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 1080px) {
  .clients-head {
    width: calc(100% - 1.4rem);
  }

  .clients-group img {
    width: 180px;
    min-width: 180px;
    flex-basis: 180px;
    height: 68px;
  }

  .clients-group img.logo-mercedes {
    width: 205px;
    min-width: 205px;
    flex-basis: 205px;
    height: 78px;
  }

  .clients-group img.logo-porto {
    width: 235px;
    min-width: 235px;
    flex-basis: 235px;
    height: 88px;
  }

  .clients-group img.logo-fast {
    width: 230px;
    min-width: 230px;
    flex-basis: 230px;
    height: 88px;
  }

  .nav-links {
    display: none;
  }

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

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

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

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

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

@media (max-width: 720px) {
  main {
    width: calc(100% - 1.2rem);
  }

  .floating-nav {
    width: calc(100% - 1rem);
    padding: 0.55rem 0.7rem;
    gap: 0.6rem;
  }

  .brand-name {
    display: none;
  }

  .floating-nav .btn {
    padding: 0.62rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-grid {
    padding: 5.8rem 1rem 1.8rem;
  }

  .clients-head {
    width: calc(100% - 1rem);
    margin-bottom: 0.65rem;
  }

  .clients-group {
    gap: 1rem;
    padding-right: 1rem;
  }

  .clients-group img {
    width: 140px;
    min-width: 140px;
    flex-basis: 140px;
    height: 52px;
  }

  .clients-group img.logo-mercedes {
    width: 160px;
    min-width: 160px;
    flex-basis: 160px;
    height: 60px;
  }

  .clients-group img.logo-porto {
    width: 185px;
    min-width: 185px;
    flex-basis: 185px;
    height: 70px;
  }

  .clients-group img.logo-fast {
    width: 180px;
    min-width: 180px;
    flex-basis: 180px;
    height: 68px;
  }

  .clients-track {
    animation-duration: 24s;
  }

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

  .philosophy-copy {
    padding: 1.6rem;
  }

  .protocol-item {
    padding: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    border-radius: 0;
    gap: 1.4rem;
  }

  .whatsapp-float {
    width: 3.2rem;
    height: 3.2rem;
  }
}
