:root {
  color-scheme: dark;
  --blue: #056bd8;
  --lime: #9cee1f;
  --ink: #092840;
  --deep: #062d57;
  font-family: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-width: 320px; color: #fff; background: var(--deep); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: 36px 24px 88px;
  overflow: clip; text-align: center; background: var(--deep);
}
.hero__ambient, .hero__poster, .hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__ambient {
  z-index: -4;
  background: url('../img/hero-poster-desktop.webp?v=2') center / cover no-repeat;
  filter: blur(28px); transform: scale(1.09);
}
.hero__poster { z-index: -3; display: block; }
.hero__poster img, .hero__video { position: absolute; inset: auto; top: 50%; left: 50%; object-fit: contain; object-position: center; transform: translate(-50%, -50%); }
.hero__poster img { display: block; }
.hero__video { z-index: -2; opacity: 0; transition: opacity .5s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(3, 29, 62, .33), rgba(3, 30, 62, .14) 58%, transparent 100%),
    linear-gradient(180deg, rgba(1, 37, 76, .22), rgba(2, 30, 61, .25) 65%, rgba(2, 21, 46, .47));
}
.hero__content { display: flex; flex-direction: column; align-items: center; width: min(100%, 960px); margin: 0 auto; }
.brand { display: block; width: clamp(250px, 24vw, 322px); height: auto; aspect-ratio: 3 / 1; object-fit: contain; margin-bottom: clamp(24px, 3.5vh, 34px); border-radius: 11px; filter: drop-shadow(0 3px 16px rgba(0, 17, 40, .2)); }
.hero__copy h1 { max-width: 890px; margin: 0 auto; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.12; font-weight: 750; letter-spacing: -.042em; text-wrap: balance; text-shadow: 0 2px 6px rgba(0, 18, 40, .85), 0 1px 18px rgba(0, 18, 40, .4); }
.hero__copy h2 { margin: 18px 0 0; color: var(--lime); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.hero__copy p { max-width: 620px; margin: 17px auto 0; font-size: 1.0625rem; line-height: 1.6; font-weight: 400; color: #eef5ff; text-wrap: pretty; }
.hero__copy h2, .hero__copy p { text-shadow: 0 1px 5px rgba(0, 18, 40, .9), 0 2px 14px rgba(0, 18, 40, .5); }
.hero__actions { display: flex; flex-direction: column; gap: 11px; width: min(100%, 390px); margin-top: 29px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 56px; padding: 15px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 1rem; line-height: 1.35; font-weight: 650; text-decoration: none; box-shadow: 0 7px 22px rgba(0, 19, 45, .12); transition: background .2s, box-shadow .2s, transform .2s; }
.cta .fa-whatsapp { flex: 0 0 auto; font-size: 23px; }
.cta--primary { background: var(--lime); color: #153b0d; border-color: #b6fb4d; }
.cta--blue { background: var(--blue); color: #fff; border-color: #388deb; }
.cta--light { background: rgba(255, 255, 255, .96); color: #084885; border-color: #fff; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 19, 45, .23); }
.cta--primary:hover { background: #b1fa3f; }
.cta--blue:hover { background: #045fbf; }
.cta--light:hover { background: #fff; }
.cta:active { transform: translateY(0); }
.hero__noscript { margin-top: 20px; font-size: 1rem; }

.contact { position: fixed; z-index: 20; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
.contact__toggle { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 14px; border: 1px solid #65e694; border-radius: 10px; background: #25d366; color: #fff; box-shadow: 0 8px 28px rgba(0, 18, 40, .25), 0 0 16px rgba(37, 211, 102, .25); font-size: .875rem; font-weight: 750; white-space: nowrap; transform-origin: center; animation: heartbeat 1s ease-in-out infinite; }
.contact__toggle::after { content: ""; position: absolute; inset: -2px; z-index: -1; border: 2px solid rgba(37, 211, 102, .75); border-radius: 12px; box-shadow: 0 0 14px rgba(37, 211, 102, .55); pointer-events: none; opacity: 0; animation: whatsapp-glow 1s ease-out infinite; }
.contact__toggle span, .contact__toggle i { text-shadow: -1px 0 #075e54, 1px 0 #075e54, 0 -1px #075e54, 0 1px #075e54; }
.contact__toggle .fa-whatsapp { font-size: 23px; }
.contact__toggle:hover, .contact__toggle:focus-visible, .contact__toggle[aria-expanded="true"] { animation: none; background: #20c45f; }
.contact__toggle:hover::after, .contact__toggle:focus-visible::after, .contact__toggle[aria-expanded="true"]::after { animation: none; opacity: 0; }
.contact__toggle[data-motion-paused="true"] { animation-play-state: paused; }
.contact__toggle[data-motion-paused="true"]::after { animation: none; opacity: 0; }
@keyframes heartbeat { 0%, 18%, 39%, 100% { transform: scale(1); } 9% { transform: scale(1.045); } 28% { transform: scale(1.065); } }
@keyframes whatsapp-glow { 0% { transform: scale(.98); opacity: .8; } 45% { opacity: .32; } 80%, 100% { transform: scale(1.16, 1.45); opacity: 0; } }
.contact__panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(348px, calc(100vw - 32px)); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(255, 255, 255, .8); border-radius: 17px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 18, 45, .35); text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: opacity .23s, transform .23s, visibility .23s; scrollbar-width: thin; color-scheme: light; }
.contact__panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.contact__photo { aspect-ratio: 3 / 2; padding: 0; overflow: hidden; background: #e5eef4; }
.contact__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; color: #fff; background: rgba(5, 38, 69, .86); }
.contact__close:hover { background: #056bd8; }
.contact__close i { font-size: 17px; }
.contact__body { padding: 22px 24px 24px; }
.contact__eyebrow { display: block; color: #0861b4; font-size: .875rem; font-weight: 650; }
.contact__body h2 { margin: 7px 0 10px; font-size: 1.65rem; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.contact__body p { margin: 0; color: #4c6072; font-size: 1rem; line-height: 1.5; }
.contact__cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 20px; padding: 13px 16px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 1rem; line-height: 1.4; font-weight: 650; text-decoration: none; }
.contact__cta:hover { background: #045fbf; }
.contact__cta i { font-size: 23px; }
.contact__body .contact__feedback { margin-top: 16px; padding: 12px; color: #173b5a; background: #eaf4ff; border-radius: 8px; font-size: .875rem; line-height: 1.5; }
.contact__cta[aria-disabled="true"] { opacity: .75; cursor: default; }

@media (min-width: 701px) {
  .hero__poster img, .hero__video { width: 100%; height: auto; }
}
@media (min-width: 701px) and (max-height: 780px) {
  .hero { padding-top: 24px; padding-bottom: 80px; }
  .brand { width: 256px; margin-bottom: 24px; }
  .hero__copy h1 { max-width: 800px; font-size: clamp(2.25rem, 3.8vw, 3.125rem); }
  .hero__copy h2 { margin-top: 14px; }
  .hero__copy p { margin-top: 12px; }
  .hero__actions { margin-top: 24px; gap: 10px; }
  .cta { min-height: 53px; }
}
@media (max-width: 700px) {
  .hero { padding: max(24px, env(safe-area-inset-top)) 22px calc(96px + env(safe-area-inset-bottom)); }
  .hero__ambient { background-image: url('../img/hero-poster-mobile.webp?v=2'); }
  .hero__poster img, .hero__video { width: auto; height: 100%; }
  .hero__shade { background: linear-gradient(180deg, rgba(2, 37, 75, .28), rgba(2, 27, 59, .39) 57%, rgba(2, 21, 46, .55)); }
  .brand { width: clamp(224px, 65vw, 272px); margin-bottom: 24px; }
  .hero__copy h1 { max-width: 430px; font-size: clamp(1.875rem, 7.7vw, 2.625rem); line-height: 1.15; letter-spacing: -.035em; }
  .hero__copy h2 { margin-top: 14px; font-size: clamp(1.125rem, 4.7vw, 1.375rem); }
  .hero__copy p { max-width: 420px; margin-top: 13px; font-size: 1rem; line-height: 1.5; }
  .hero__actions { width: min(100%, 390px); margin-top: 25px; gap: 10px; }
  .cta { min-height: 54px; padding: 14px; font-size: .9375rem; gap: 10px; }
  .contact { right: max(18px, env(safe-area-inset-right)); bottom: max(19px, env(safe-area-inset-bottom)); }
  .contact__toggle { font-size: .875rem; padding: 10px 12px; }
  .contact__panel { width: min(348px, calc(100vw - 36px)); }
}
@media (max-width: 700px) and (max-height: 740px) {
  .hero { padding-top: max(20px, env(safe-area-inset-top)); }
  .brand { width: 222px; margin-bottom: 20px; }
  .hero__copy h1 { font-size: clamp(1.875rem, 7.5vw, 2.375rem); }
  .hero__copy h2 { margin-top: 11px; }
  .hero__copy p { margin-top: 11px; }
  .hero__actions { margin-top: 21px; gap: 9px; }
  .cta { min-height: 51px; padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__video { display: none; }
  .cta:hover { transform: none; }
}
