:root {
  --night: #1f2228;
  --slate: #353a44;
  --steel: #4a6072;
  --mist: #7b9bb8;
  --ice: #e8edf3;
  --white: #ffffff;
  --ink: #15191f;
  --muted: #b7c3cf;
  --line: rgba(232, 237, 243, 0.16);
  --shadow: 0 24px 70px rgba(9, 14, 20, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.7rem 1rem;
  clip: auto;
  color: var(--night);
  background: var(--ice);
  border-radius: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(1.2rem, calc((100vw - var(--max)) / 2));
  color: var(--ice);
  background: rgba(31, 34, 40, 0.64);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  background: rgba(31, 34, 40, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 1px solid rgba(232, 237, 243, 0.7);
  border-radius: 8px;
  background: var(--ice);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 0.62rem 0.78rem;
  color: rgba(232, 237, 243, 0.82);
  border-radius: 8px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  background: rgba(232, 237, 243, 0.1);
}

.site-nav .nav-cta {
  color: var(--night);
  background: var(--ice);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  color: var(--night);
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(232, 237, 243, 0.08);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ice);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 9rem max(1.2rem, calc((100vw - var(--max)) / 2)) 4.5rem;
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(31, 34, 40, 0.96), rgba(31, 34, 40, 0.66) 46%, rgba(31, 34, 40, 0.35)),
    linear-gradient(0deg, rgba(31, 34, 40, 0.96), rgba(31, 34, 40, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 4.7rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 2.75rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.55rem;
  color: inherit;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 1.7rem;
  color: rgba(232, 237, 243, 0.88);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  color: var(--night);
  background: var(--ice);
}

.button-primary:hover {
  background: var(--mist);
}

.button-ghost {
  color: var(--ice);
  background: rgba(232, 237, 243, 0.09);
  border-color: rgba(232, 237, 243, 0.24);
}

.button-ghost:hover {
  border-color: var(--mist);
  background: rgba(123, 155, 184, 0.18);
}

.button-ghost-light {
  color: var(--ice);
  border-color: rgba(232, 237, 243, 0.28);
  background: rgba(232, 237, 243, 0.08);
}

.button-text {
  min-height: auto;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  color: var(--ice);
}

.button-whatsapp {
  color: var(--night);
  background: #d8f4e4;
}

.hero-metrics {
  display: grid;
  max-width: 750px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.hero-metrics div {
  padding: 1rem;
  background: rgba(31, 34, 40, 0.58);
  border: 1px solid rgba(232, 237, 243, 0.17);
  border-radius: 8px;
}

.hero-metrics dt {
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0.12rem 0 0;
  color: var(--muted);
}

.video-state {
  position: absolute;
  right: max(1.2rem, calc((100vw - var(--max)) / 2));
  bottom: 1.4rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  color: var(--ice);
  border: 1px solid rgba(232, 237, 243, 0.22);
  background: rgba(31, 34, 40, 0.66);
  border-radius: 8px;
  cursor: pointer;
}

.section {
  padding: 6.5rem max(1.2rem, calc((100vw - var(--max)) / 2));
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-light {
  color: var(--ink);
  background: var(--ice);
}

.section-light h2 {
  color: var(--night);
}

.section-light .eyebrow {
  color: var(--steel);
}

.section-light p {
  color: rgba(21, 25, 31, 0.72);
}

.section-dark {
  color: var(--ice);
  background:
    linear-gradient(135deg, rgba(53, 58, 68, 0.34), rgba(31, 34, 40, 0.96)),
    var(--night);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  min-height: 260px;
  padding: 1.35rem;
  color: var(--night);
  background: var(--white);
  border: 1px solid rgba(31, 34, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 34, 40, 0.08);
}

.service-card-wide {
  grid-column: span 4;
  min-height: auto;
  display: grid;
  grid-template-columns: auto 0.45fr 1fr;
  align-items: center;
  gap: 1.2rem;
  background: var(--night);
  color: var(--ice);
}

.service-card p {
  margin: 0;
}

.service-code {
  display: inline-grid;
  min-width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--ice);
  background: var(--steel);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card-wide .service-code {
  margin-bottom: 0;
  background: var(--mist);
  color: var(--night);
}

.service-card-wide p {
  color: rgba(232, 237, 243, 0.78);
}

.solution-layout,
.about-layout,
.contact-layout,
.work-layout,
.client-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.solution-copy p,
.about-copy p,
.work-layout p,
.client-card p {
  color: rgba(232, 237, 243, 0.76);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 1.4rem;
  position: relative;
  color: rgba(232, 237, 243, 0.82);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--mist);
  border-radius: 999px;
}

.platform-figure,
.about-media {
  margin: 0;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.platform-figure img,
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media img {
  object-position: 42% center;
}

.platform-figure figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.results-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.results-bar div {
  padding: 1.4rem;
  color: var(--ice);
  background: var(--night);
  border-radius: 8px;
}

.results-bar strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
}

.results-bar span {
  display: block;
  color: rgba(232, 237, 243, 0.74);
  font-size: 0.94rem;
}

.about-media {
  aspect-ratio: 1.12 / 1;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.team-list article {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 237, 243, 0.06);
}

.team-list p {
  margin-bottom: 0;
  color: rgba(232, 237, 243, 0.72);
  font-size: 0.94rem;
}

.client-access {
  color: var(--ice);
  background:
    linear-gradient(100deg, rgba(31, 34, 40, 0.94), rgba(74, 96, 114, 0.9)),
    var(--steel);
}

.client-card {
  padding: 2.2rem;
  border: 1px solid rgba(232, 237, 243, 0.18);
  background: rgba(31, 34, 40, 0.45);
  border-radius: 8px;
}

.contact-layout {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
  color: var(--night);
}

.contact-details a {
  font-weight: 800;
}

.contact-actions {
  margin-top: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  color: var(--night);
  background: var(--white);
  border: 1px solid rgba(31, 34, 40, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(31, 34, 40, 0.1);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--slate);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(53, 58, 68, 0.22);
  padding: 0.85rem 0.9rem;
  color: var(--night);
  background: var(--ice);
  border-radius: 8px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(123, 155, 184, 0.28);
}

.form-status {
  min-height: 1.4rem;
  margin-bottom: 0;
  color: var(--steel);
  font-weight: 800;
}

.work-layout {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 237, 243, 0.05);
}

.site-footer {
  padding: 2.2rem max(1.2rem, calc((100vw - var(--max)) / 2));
  background: #181b20;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  gap: 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a:hover {
  color: var(--white);
}

.floating-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  color: var(--night);
  background: #d8f4e4;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

.video-dialog {
  width: min(920px, calc(100vw - 2rem));
  padding: 0;
  color: var(--ice);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(10, 12, 16, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header button {
  color: var(--ice);
  border: 1px solid var(--line);
  background: rgba(232, 237, 243, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.video-dialog video {
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.section-observe {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

  .service-card-wide {
    grid-column: span 2;
    grid-template-columns: auto 1fr;
  }

  .service-card-wide p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 4.8rem;
    display: none;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(31, 34, 40, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .hero {
    padding-top: 7.8rem;
  }

  .solution-layout,
  .about-layout,
  .contact-layout,
  .work-layout,
  .client-card {
    grid-template-columns: 1fr;
  }

  .about-media {
    aspect-ratio: 1.35 / 1;
  }

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

@media (max-width: 640px) {
  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .services-grid,
  .results-bar,
  .team-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: auto;
  }

  .service-card-wide {
    display: block;
  }

  .service-card-wide .service-code {
    margin-bottom: 1.15rem;
  }

  .client-card,
  .work-layout {
    padding: 1.2rem;
  }

  .footer-inner nav {
    flex-wrap: wrap;
  }
}
