:root {
  --ink: #071a33;
  --ink-soft: #26425f;
  --muted: #667589;
  --line: #d9e2ec;
  --surface: #ffffff;
  --surface-blue: #f3f8fc;
  --navy: #00294f;
  --navy-deep: #001a33;
  --tech: #06131f;
  --blue: #005fa8;
  --cyan: #006cae;
  --cyan-light: #62d2ff;
  --gold: #f5a623;
  --shadow: 0 18px 48px rgba(7, 26, 51, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--container));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
}

.brand span {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.brand small {
  display: block;
  color: #75511f;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.8vw, 42px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding-block: 30px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-action:hover,
.nav-action:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../images/dia%2016-09-2015%20-%20parte%2003mp400_29_53_25quadro001.jpg") center / cover no-repeat;
  transform: scale(1.02);
  z-index: -4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 22, 0.96) 0%, rgba(0, 34, 67, 0.88) 34%, rgba(0, 34, 67, 0.34) 68%, rgba(0, 20, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 30, 58, 0.34));
  z-index: -3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 210, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 210, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 28% 44%, rgba(98, 210, 255, 0.28), transparent 34%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(98, 210, 255, 0.12) 19px, transparent 20px);
  background-size: 76px 76px, 76px 76px, 100% 100%, 100% 100%;
  opacity: 0.62;
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 76%);
  z-index: -2;
}

.hero-content {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 420px);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding-block: 82px;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(20px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: 24px;
  background: var(--cyan);
}

.hero p {
  margin: 24px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.hero-tech-panel {
  width: min(100%, 420px);
  justify-self: end;
  padding: 12px;
  border: 1px solid rgba(24, 167, 231, 0.34);
  border-radius: var(--radius);
  background: rgba(2, 15, 28, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.hero-tech-panel div {
  position: relative;
  padding: 18px 18px 18px 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-tech-panel div:last-child {
  border-bottom: 0;
}

.hero-tech-panel div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan-light);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(24, 167, 231, 0.72);
}

.hero-tech-panel span {
  display: block;
  color: var(--cyan-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-tech-panel strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 16px 34px rgba(24, 167, 231, 0.28);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
}

.section {
  padding-block: clamp(74px, 9vw, 118px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.section-number {
  width: max-content;
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.section-number::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 8px;
  background: currentColor;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-copy p:not(.section-number),
.section-heading p:not(.section-number),
.about-panel p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.about-panel {
  padding: clamp(26px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(232, 246, 255, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, transparent 23px, rgba(0, 111, 201, 0.08) 24px),
    linear-gradient(0deg, transparent 23px, rgba(0, 111, 201, 0.08) 24px);
  background-size: auto, 24px 24px, 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.experience-grid article {
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(7, 26, 51, 0.97), rgba(0, 41, 79, 0.94)),
    var(--navy-deep);
  border: 1px solid rgba(24, 167, 231, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(7, 26, 51, 0.12);
}

.experience-grid span {
  display: block;
  color: var(--cyan-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.experience-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.experience-grid p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.services {
  background:
    radial-gradient(circle at 92% 0%, rgba(24, 167, 231, 0.14), transparent 26%),
    linear-gradient(180deg, #eef8ff, #fff 42%),
    linear-gradient(90deg, transparent 31px, rgba(0, 111, 201, 0.08) 32px),
    linear-gradient(0deg, transparent 31px, rgba(0, 111, 201, 0.08) 32px);
  background-size: auto, 32px 32px, 32px 32px;
}

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

.section-heading.compact {
  margin-bottom: 24px;
}

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

.service-card {
  min-height: 356px;
  display: grid;
  grid-template-rows: 160px 1fr;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(7, 26, 51, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 167, 231, 0.55);
  box-shadow: var(--shadow);
}

.service-card-modern {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96)),
    #fff;
}

.service-card-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 23px, rgba(24, 167, 231, 0.08) 24px),
    linear-gradient(0deg, transparent 23px, rgba(24, 167, 231, 0.07) 24px);
  background-size: 24px 24px;
  opacity: 0.42;
  mask-image: linear-gradient(180deg, transparent 0%, #000 46%, #000 100%);
}

.service-card-modern::after {
  content: "";
  position: absolute;
  top: 160px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(245, 166, 35, 0.9), transparent 72%);
}

.service-card > picture,
.service-card > img,
.software-visual {
  display: block;
  width: 100%;
  height: 160px;
  background: var(--navy);
}

.service-card > picture img,
.service-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card-modern > picture img,
.service-card-modern > img {
  filter: saturate(1.08) contrast(1.04);
  transition: transform 260ms ease, filter 260ms ease;
}

.service-card-modern:hover > picture img,
.service-card-modern:hover > img {
  transform: scale(1.05);
  filter: saturate(1.16) contrast(1.08);
}

.service-card > div:last-child {
  position: relative;
  padding: 22px;
  z-index: 1;
}

.service-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--blue);
  border: 1px solid rgba(0, 111, 201, 0.22);
  border-radius: 6px;
  background: #fff;
}

.service-card-modern .service-icon {
  position: absolute;
  top: -25px;
  right: 22px;
  margin-bottom: 0;
  background: var(--navy);
  color: #fff;
  border-color: rgba(24, 167, 231, 0.62);
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.22);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}

.service-card-modern h3 {
  max-width: 230px;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card-dark {
  background:
    linear-gradient(135deg, rgba(24, 167, 231, 0.16), rgba(245, 166, 35, 0.07)),
    var(--tech);
}

.service-card-dark h3,
.service-card-dark p {
  color: #fff;
}

.service-card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.software-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 167, 231, 0.18), rgba(245, 166, 35, 0.08)),
    var(--navy-deep);
}

.software-visual::before {
  content: "</>";
  position: absolute;
  left: 22px;
  top: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 42px;
  font-weight: 800;
}

.software-visual span {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  background: rgba(24, 167, 231, 0.62);
}

.software-visual span:nth-child(1) {
  top: 92px;
}

.software-visual span:nth-child(2) {
  top: 112px;
  right: 64px;
}

.software-visual span:nth-child(3) {
  top: 132px;
  right: 126px;
  background: rgba(245, 166, 35, 0.68);
}

.clients {
  padding-top: 0;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(24, 167, 231, 0.18);
  border-radius: var(--radius);
  background: rgba(24, 167, 231, 0.18);
  box-shadow: 0 18px 48px rgba(7, 26, 51, 0.08);
}

.client-logos img {
  width: 100%;
  height: 116px;
  object-fit: contain;
  padding: 24px;
  background: #fff;
  filter: none;
  opacity: 0.94;
  transition: opacity 180ms ease, transform 180ms ease;
}

.client-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(24, 167, 231, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 167, 231, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 167, 231, 0.1) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.38;
}

.footer-grid,
.footer-bottom {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.85fr;
  gap: clamp(32px, 6vw, 84px);
  padding-block: 58px 38px;
}

.footer-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-signature {
  margin-top: 16px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.footer-brand p,
address,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-style: normal;
}

.footer-brand p {
  max-width: 340px;
  margin: 18px 0 0;
}

.site-footer strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--cyan-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom small,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@media (max-width: 960px) {
  .nav-shell {
    min-height: auto;
    padding-block: 14px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    padding-block: 10px;
    white-space: nowrap;
  }

  .nav-links a::after {
    bottom: 4px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    max-width: 620px;
  }

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

  .hero-tech-panel {
    justify-self: start;
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand span {
    font-size: 19px;
  }

  .brand small {
    font-size: 11px;
    white-space: normal;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    align-items: end;
    padding-block: 72px 58px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 64px;
  }

  .services-grid,
  .experience-grid,
  .client-logos {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .client-logos img {
    height: 96px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
