:root {
  --navy-950: #061427;
  --navy-900: #0a1f44;
  --navy-800: #122a56;
  --navy-700: #1a3a6e;
  --yellow-400: #f5c518;
  --yellow-300: #ffd54a;
  --yellow-600: #d4a017;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #e2e8f0;
  --surface: #f5f7fb;
  --white: #ffffff;
  --success: #22c55e;
  --tone-blue: #dbeafe;
  --tone-green: #dcfce7;
  --tone-orange: #ffedd5;
  --shadow-sm: 0 2px 10px rgb(10 31 68 / 0.06);
  --shadow: 0 18px 40px -20px rgb(10 31 68 / 0.35);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-full: 9999px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Montserrat", "Outfit", system-ui, sans-serif;
  --header-h: 4.5rem;
  --max: 72rem;
  --gutter: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-900);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgb(245 197 24 / 0.08), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgb(10 31 68 / 0.06), transparent 50%),
    var(--white);
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .whatsapp-float {
  visibility: hidden;
  pointer-events: none;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--yellow-400);
  outline-offset: 2px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
}

.shell--narrow {
  max-width: 46rem;
}

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

.hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn--sm {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 3.1rem;
  padding: 0.85rem 1.5rem;
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background: var(--yellow-400);
  color: var(--navy-900);
}

.btn--accent:hover {
  background: var(--yellow-300);
}

.btn--navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-800);
}

.btn--outline-dark {
  color: var(--ink-900);
  background: var(--white);
  border-color: var(--line);
}

@media (hover: hover) {
  .btn--outline-dark:hover {
    color: var(--navy-900);
    border-color: var(--yellow-400);
  }
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgb(255 255 255 / 0.75);
}

.btn--outline-light:hover {
  background: rgb(255 255 255 / 0.12);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: var(--yellow-400);
  flex-shrink: 0;
}

.brand__mark--lg {
  width: 3.25rem;
  height: 3.25rem;
}

.brand__bolt {
  width: 100%;
  height: 100%;
}

.brand__bolt-bg {
  fill: currentColor;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy-900);
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand__word--accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
}

.brand__word--accent::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0;
  height: 0.17em;
  border-radius: var(--radius-full);
  background: var(--yellow-400);
}

.brand__tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.brand--footer .brand__name {
  color: var(--white);
}

.brand--footer .brand__tag {
  color: rgb(255 255 255 / 0.62);
}

.brand--footer .brand__word--accent::after {
  background: var(--yellow-400);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header.is-open {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1000;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: none;
  box-shadow: none;
  overflow: hidden;
  animation: nav-overlay-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header.is-open.is-closing {
  animation: nav-overlay-out 0.22s ease forwards;
}

.site-header.is-open .nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.site-header.is-open .nav__toggle {
  border: 1.5px solid var(--yellow-400);
  background: rgb(245 197 24 / 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-header.is-open .nav__toggle .icon {
  animation: nav-icon-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-shrink: 0;
}

.nav__desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav__link:hover {
  color: var(--navy-900);
}

.nav__link--active {
  color: var(--navy-900);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--yellow-400);
  border-radius: 2px;
}

.nav__link--block {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.nav__link--block.nav__link--active::after {
  display: none;
}

.nav__quick {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__call,
.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
}

.nav__mobile {
  padding-bottom: 1.25rem;
}

.site-header.is-open .nav__mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.site-header.is-open:not(.is-closing) .nav__mobile > * {
  animation: nav-item-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(1) { animation-delay: 0.04s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(2) { animation-delay: 0.07s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(3) { animation-delay: 0.1s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(4) { animation-delay: 0.13s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(5) { animation-delay: 0.16s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(6) { animation-delay: 0.19s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(7) { animation-delay: 0.22s; }
.site-header.is-open:not(.is-closing) .nav__mobile > *:nth-child(8) { animation-delay: 0.25s; }

.nav__mobile .btn {
  margin-top: 0.75rem;
}

.site-header.is-open .nav__mobile .btn:last-child {
  margin-bottom: 0.5rem;
}

@keyframes nav-overlay-in {
  from {
    opacity: 0;
    transform: translateY(-0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nav-overlay-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nav-icon-pop {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-40deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1100px) {
  .nav__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav__desktop {
    display: contents;
  }

  .nav__list {
    justify-content: center;
  }

  .nav__desktop > .btn {
    justify-self: end;
  }

  .nav__quick {
    display: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

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

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-600);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy-900);
}

.section__title .mark {
  position: relative;
  display: inline-block;
}

.section__title .mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--yellow-400);
  z-index: -1;
  border-radius: 2px;
}

.section__sub {
  margin-top: 0.85rem;
  color: var(--ink-500);
  font-size: 1.05rem;
}

/* Hero shared bits */
.gen-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: var(--yellow-400);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gen-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}

.gen-hero__text {
  margin-top: 1rem;
  max-width: 38rem;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.gen-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Home */
.home-hero {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: clip;
}

.home-hero__media,
.gen-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__img,
.gen-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.home-hero__shade,
.gen-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(6 20 39 / 0.92) 0%, rgb(10 31 68 / 0.72) 48%, rgb(10 31 68 / 0.35) 100%),
    linear-gradient(0deg, rgb(6 20 39 / 0.55), transparent 45%);
}

.home-hero__content,
.gen-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 32rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.home-hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow-400);
}

.home-hero__stats span {
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.75);
}

.home-services {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .home-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-service img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--navy-800);
}

.home-service__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.home-service__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 760;
  color: var(--navy-900);
}

.home-service__body p {
  color: var(--ink-500);
  font-size: 0.95rem;
  flex: 1;
}

.home-service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgb(255 255 255 / 0.85);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
  }
}

.footer-brand__blurb {
  margin-top: 1rem;
  max-width: 28rem;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-list,
.footer-contact {
  display: grid;
  gap: 0.65rem;
}

.footer-list a:hover,
.footer-contact a:hover {
  color: var(--yellow-400);
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-contact .icon {
  color: var(--yellow-400);
  margin-top: 0.15rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.55);
}

/* Sticky WhatsApp — matches appcodr-new */
.whatsapp-float {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whatsapp-float__icon {
  width: 3.75rem;
  height: 3.75rem;
  filter: drop-shadow(0 8px 16px rgb(22 163 74 / 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-float__label {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.9rem;
  line-height: 1.25;
  text-align: right;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.whatsapp-float__hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-500);
}

.whatsapp-float__number {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
}

.whatsapp-float:hover .whatsapp-float__icon,
.whatsapp-float:focus-visible .whatsapp-float__icon {
  transform: scale(1.08);
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .whatsapp-float__icon {
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* Status pages */
.status-page {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.status-page__inner {
  max-width: 36rem;
}

.status-page .btn {
  margin-top: 1.5rem;
}

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible,
.js-settled .reveal {
  opacity: 1;
  transform: none;
}

/* Fade-only reveal: translateY leaves soft text on Android GPUs */
.js .plans-bar.reveal {
  transform: none;
}

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

  .js .reveal,
  .btn,
  .home-service,
  .whatsapp-float__icon,
  .whatsapp-float__label {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .site-header.is-open,
  .site-header.is-open.is-closing,
  .site-header.is-open .nav__toggle .icon,
  .site-header.is-open:not(.is-closing) .nav__mobile > * {
    animation: none !important;
  }
}
