:root {
  --blue-950: #031433;
  --ink: #08356f;
  --gold: #f3de9a;
  --white: #ffffff;
  --font: "Outfit", "Segoe UI", sans-serif;
  --poster: 100%;
  --pad: clamp(0.85rem, 3vw, 1.4rem);
}

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

html {
  background: var(--blue-950);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--white);
  background:
    radial-gradient(80% 28% at 50% 0%, rgba(190, 235, 255, 0.45), transparent 55%),
    radial-gradient(55% 40% at 50% 42%, rgba(16, 110, 230, 0.45), transparent 70%),
    linear-gradient(180deg, #06285f 0%, #0b4eae 28%, #0a4498 58%, #06357a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% 78%, rgba(120, 200, 255, 0.18), transparent 60%),
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(2, 12, 36, 0.45) 100%);
}

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

p,
h1,
ul {
  margin: 0;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(170, 225, 255, 0.35), transparent 42%),
    radial-gradient(ellipse at 20% 70%, rgba(40, 130, 255, 0.28), transparent 46%),
    radial-gradient(ellipse at 82% 62%, rgba(70, 170, 255, 0.22), transparent 42%);
  filter: blur(12px);
  animation: aurora 14s ease-in-out infinite alternate;
}

.beam {
  position: absolute;
  top: -20%;
  left: -35%;
  width: 22%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: scan 9s ease-in-out infinite;
}

.bubble {
  position: absolute;
  bottom: -8%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(190, 235, 255, 0.16);
  animation: bubble-up linear infinite;
}

.bubble--1 { left: 12%; width: 9px; height: 9px; animation-duration: 12s; }
.bubble--2 { left: 28%; width: 6px; height: 6px; animation-duration: 9s; animation-delay: -3s; }
.bubble--3 { left: 46%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: -7s; }
.bubble--4 { left: 61%; width: 7px; height: 7px; animation-duration: 11s; animation-delay: -2s; }
.bubble--5 { left: 74%; width: 11px; height: 11px; animation-duration: 14s; animation-delay: -5s; }
.bubble--6 { left: 88%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: -4s; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--poster);
  min-height: 100dvh;
  margin-inline: auto;
}

.arc {
  height: clamp(42px, 7vh, 78px);
  margin-bottom: -0.6rem;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(180, 230, 255, 0.85));
  animation: fade-down 1s ease both;
}

.arc svg,
.waves svg {
  width: 100%;
  height: 100%;
}

.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.decor__hex,
.decor__dna {
  position: absolute;
  height: auto;
}

.decor__hex {
  top: 27%;
  left: -0.2rem;
  width: clamp(78px, 18%, 130px);
  opacity: 0.9;
  animation: float 7s ease-in-out infinite, fade-in 1s ease both;
}

.decor__dna {
  top: 22%;
  right: -0.15rem;
  width: clamp(58px, 14%, 108px);
  animation: drift 9s ease-in-out infinite, fade-in 1s ease both;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #c5efff;
  animation: twinkle 3.2s ease-in-out infinite;
}

.spark--1 { top: 16%; left: 18%; }
.spark--2 { top: 40%; right: 14%; animation-delay: 1s; }
.spark--3 { top: 68%; left: 28%; animation-delay: 1.7s; }
.spark--4 { top: 24%; left: 34%; animation-delay: 0.4s; }
.spark--5 { top: 32%; right: 28%; width: 7px; height: 7px; animation-delay: 1.4s; }
.spark--6 { top: 58%; right: 22%; animation-delay: 2.2s; }

.top,
main,
.footer {
  position: relative;
  z-index: 1;
}

.top {
  padding: 0 var(--pad);
  text-align: center;
}

.headline {
  margin-inline: auto;
  max-width: 24rem;
  font-size: clamp(0.78rem, 2.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(180, 230, 255, 0.45);
}

.headline span {
  display: block;
  animation: fade-down 0.7s ease both;
}

.headline span:nth-child(2) { animation-delay: 0.1s; }
.headline span:nth-child(3) { animation-delay: 0.2s; }

.logo {
  width: min(68%, 320px);
  height: auto;
  margin: 0.35rem auto 0.15rem;
  animation: pop-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both, glow 4.8s ease-in-out 1s infinite;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-inline: var(--pad);
}

.hero {
  position: relative;
}

.anniversary {
  position: relative;
  z-index: 1;
  width: min(92%, 520px);
  height: auto;
  margin: 0.85rem auto 0;
  filter: drop-shadow(0 14px 18px rgba(2, 16, 48, 0.3));
  animation: pop-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both, rock 8s ease-in-out 1.2s infinite;
}

.scene {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 0.9fr;
  align-items: end;
  justify-items: center;
  margin-top: clamp(-4.2rem, -8vh, -2rem);
}

.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: 4%;
  left: 4%;
  height: 64px;
  background: radial-gradient(ellipse at center, rgba(170, 225, 255, 0.75), transparent 68%);
  filter: blur(2px);
  animation: pulse 3.6s ease-in-out infinite;
}

.scene::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 2%;
  left: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(233, 248, 255, 0.2) 15%, #fff 50%, rgba(233, 248, 255, 0.2) 85%, transparent);
  box-shadow: 0 0 16px #9adfff, 0 0 28px rgba(80, 180, 255, 0.75);
  animation: pulse 3.6s ease-in-out infinite;
}

.scene__flask,
.scene__tubes,
.scene__mascot {
  position: relative;
  z-index: 1;
}

.scene__flask {
  width: 118%;
  height: auto;
  margin-bottom: 4%;
  filter: drop-shadow(0 12px 12px rgba(2, 16, 48, 0.35));
  animation: flask-float 5.4s ease-in-out infinite;
}

.scene__tubes {
  width: 112%;
  height: auto;
  margin-bottom: 2%;
  filter: drop-shadow(0 12px 12px rgba(2, 16, 48, 0.35));
  animation: tube-float 4.4s ease-in-out infinite;
}

.scene__mascot {
  width: 100%;
  margin-bottom: -2px;
  animation: sway 5.2s ease-in-out 1s infinite;
}

.mascot__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 14px rgba(2, 16, 48, 0.4));
  animation: rise 0.85s ease 0.15s both;
}

.mascot__glow {
  position: absolute;
  top: 14%;
  left: 4%;
  z-index: 2;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(150, 220, 255, 0.28) 40%, transparent 68%);
  pointer-events: none;
  animation: lens 2.8s ease-in-out infinite;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: min(100%, 36rem);
  min-height: 68px;
  margin: 0.85rem auto 0;
  padding: 0.4rem 1.35rem 0.4rem 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(243, 222, 154, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  color: var(--ink);
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 14px 28px rgba(2, 16, 48, 0.34),
    0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 #fff;
  animation: rise 0.7s ease 0.45s both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta__icon,
.cta__text {
  position: relative;
  z-index: 1;
}

.cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1560c8, #08356f);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 12px rgba(3, 20, 51, 0.28);
}

.cta__text {
  flex: 1;
  text-align: center;
  padding-right: 0.4rem;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.85) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: shine 4.8s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 32px rgba(2, 16, 48, 0.4),
    0 0 0 5px rgba(243, 222, 154, 0.28),
    0 0 24px rgba(150, 220, 255, 0.45);
}

.cta:hover .cta__icon {
  transform: translateY(2px);
}

.cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.social {
  padding: 1.35rem 0 0.2rem;
}

.social ul {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.6rem);
  padding: 0;
  list-style: none;
}

.social li {
  animation: pop-in 0.5s ease both;
}

.social li:nth-child(1) { animation-delay: 0.55s; }
.social li:nth-child(2) { animation-delay: 0.66s; }
.social li:nth-child(3) { animation-delay: 0.77s; }
.social li:nth-child(4) { animation-delay: 0.88s; }

.social a {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 8px 16px rgba(2, 16, 48, 0.28),
    inset 0 1px 0 #fff;
  transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.social svg {
  width: 28px;
  height: 28px;
}

.social a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(2, 16, 48, 0.34);
}

.social a[data-link="facebook"]:hover { color: #1877f2; }
.social a[data-link="instagram"]:hover { color: #d62976; }
.social a[data-link="tiktok"]:hover { color: #111; }
.social a[data-link="whatsapp"]:hover { color: #128c7e; }

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

.waves {
  position: relative;
  z-index: 1;
  height: clamp(58px, 8vh, 92px);
  margin-top: 0.15rem;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(140, 210, 255, 0.45));
}

.ribbon {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw 2.2s ease 0.2s forwards;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  animation: fade-in 0.8s ease 0.7s both;
}

:focus {
  outline: none;
}

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

::selection {
  background: rgba(231, 197, 106, 0.35);
  color: var(--white);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-2.4deg); }
  50% { transform: translateY(-16px) rotate(2.6deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes flask-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes tube-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  35% { transform: translateY(-26px) rotate(5deg); }
  70% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(16px) rotate(8deg); }
}

@keyframes rock {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 8px 12px rgba(2, 16, 48, 0.25)); }
  50% { filter: drop-shadow(0 0 18px rgba(190, 235, 255, 0.7)); }
}

@keyframes lens {
  0%, 100% { transform: translate(0, 0) scale(0.82); opacity: 0.35; }
  50% { transform: translate(10%, -8%) scale(1.18); opacity: 0.95; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes shine {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(130%); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 2%, 0) scale(1.08); }
}

@keyframes scan {
  0% { transform: translateX(-8vw) rotate(18deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(130vw) rotate(18deg); opacity: 0; }
}

@keyframes bubble-up {
  0% { transform: translateY(0) scale(0.75); opacity: 0; }
  15% { opacity: 0.75; }
  100% { transform: translateY(-108vh) scale(1.1); opacity: 0; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 767px) {
  .logo {
    width: auto;
    max-width: 62%;
    max-height: 11vh;
    margin-bottom: 0.2rem;
  }

  .anniversary {
    width: auto;
    max-width: 62%;
    max-height: 15vh;
    margin-top: 0.9rem;
  }

  .mascot__img {
    width: auto;
    max-height: 32vh;
    margin-inline: auto;
  }

  .decor__hex {
    top: 30vh;
    left: 0;
    width: 68px;
  }

  .decor__dna {
    top: 26vh;
    right: 0;
    width: 46px;
  }

  .scene {
    margin-top: -1.2rem;
  }
}

@media (min-width: 768px) {
  .page {
    height: 100dvh;
    overflow: hidden;
    justify-content: center;
  }

  .headline {
    max-width: 40rem;
    font-size: clamp(0.9rem, 1.6vh, 1.15rem);
  }

  .logo {
    width: auto;
    max-width: min(320px, 28vw);
    max-height: 10vh;
  }

  .anniversary {
    width: auto;
    max-width: min(560px, 48vw);
    max-height: 20vh;
  }

  .decor__hex {
    top: 20vh;
    left: 3vw;
    width: clamp(100px, 13vw, 180px);
  }

  .decor__dna {
    top: 14vh;
    right: 3vw;
    width: clamp(80px, 10vw, 150px);
  }

  .scene {
    grid-template-columns: 1fr auto 1fr;
    justify-content: center;
    column-gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: -5vh;
    padding-inline: 3vw;
  }

  .scene__flask {
    width: min(200px, 18vw);
    justify-self: start;
  }

  .scene__tubes {
    width: min(170px, 15vw);
    justify-self: end;
  }

  .mascot__img {
    max-height: 36vh;
    width: auto;
    margin-inline: auto;
  }

  .waves {
    height: 40px;
  }
}

@media (min-width: 1100px) {
  .page {
    height: 100dvh;
    overflow: hidden;
    justify-content: space-evenly;
  }

  .arc {
    height: 16px;
    margin-bottom: 0;
  }

  .headline {
    letter-spacing: 0.16em;
    font-size: clamp(0.82rem, 1.5vh, 1.05rem);
  }

  .logo {
    max-width: min(250px, 16vw);
    max-height: 7vh;
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
  }

  .anniversary {
    max-width: min(640px, 42vw);
    max-height: 17vh;
    margin-top: 0.85rem;
  }

  .decor__hex {
    top: 12vh;
    left: 3vw;
    width: clamp(190px, 16vw, 300px);
    filter: drop-shadow(0 0 16px rgba(150, 220, 255, 0.75));
  }

  .decor__dna {
    top: 11vh;
    right: 4.5vw;
    width: clamp(86px, 7vw, 124px);
    filter: drop-shadow(0 0 14px rgba(90, 180, 255, 0.65));
  }

  .scene {
    display: block;
    width: 100vw;
    margin-top: -1vh;
    margin-left: calc(50% - 50vw);
    min-height: 44vh;
    padding-inline: 0;
  }

  .scene::before {
    right: 8%;
    left: 8%;
    bottom: 8%;
    height: 90px;
  }

  .scene::after {
    right: 10%;
    left: 10%;
  }

  .scene__flask {
    position: absolute;
    left: 2vw;
    bottom: 0;
    width: min(500px, 28vw);
    margin: 0;
    filter:
      drop-shadow(0 16px 14px rgba(2, 16, 48, 0.35))
      drop-shadow(0 0 22px rgba(130, 215, 255, 0.45));
    animation: flask-float 5.4s ease-in-out infinite;
  }

  .scene__tubes {
    position: absolute;
    right: 5vw;
    bottom: -8%;
    width: min(430px, 26vw);
    margin: 0;
    filter:
      drop-shadow(0 16px 14px rgba(2, 16, 48, 0.35))
      drop-shadow(0 0 18px rgba(150, 220, 255, 0.4));
    animation: tube-float 4.4s ease-in-out infinite;
  }

  .scene__mascot {
    width: fit-content;
    margin-inline: auto;
  }

  .scene__mascot::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: -6%;
    width: 230%;
    height: 78%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(225, 245, 255, 0.85), rgba(90, 180, 255, 0.28) 42%, transparent 70%);
    pointer-events: none;
    animation: pulse 3.2s ease-in-out infinite;
  }

  .mascot__img {
    width: auto;
    max-width: min(540px, 36vw);
    max-height: 43vh;
    height: auto;
  }

  .cta {
    width: min(680px, 46vw);
    min-height: 60px;
    margin-top: 0.55rem;
  }

  .cta__icon {
    width: 46px;
    height: 46px;
  }

  .social {
    padding-top: 1.15rem;
  }

  .social ul {
    gap: clamp(1.2rem, 2.5vw, 2rem);
  }

  .social a {
    width: 64px;
    height: 64px;
  }

  .social svg {
    width: 30px;
    height: 30px;
  }

  .waves {
    height: 18px;
  }

  .footer {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .cta {
    gap: 0.45rem;
    letter-spacing: 0.03em;
    font-size: 0.68rem;
  }

  .cta__icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-height: 760px) and (min-width: 1100px) {
  .logo { max-height: 7vh; }
  .anniversary { max-height: 12vh; }
  .mascot__img { max-height: 36vh; }
  .scene__flask { left: 7vw; width: min(340px, 24vw); }
  .scene__tubes { right: 8vw; width: min(260px, 17vw); }
  .arc { height: 16px; }
  .waves { height: 16px; }
  .cta { min-height: 54px; margin-top: 0.15rem; }
  .cta__icon { width: 38px; height: 38px; }
  .social { padding-top: 0.7rem; }
  .social a { width: 52px; height: 52px; }
  .social svg { width: 24px; height: 24px; }
  .footer { padding-bottom: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ribbon {
    stroke-dashoffset: 0;
  }
}

@media (prefers-contrast: more) {
  .cta { border: 2px solid #031433; }
  .social a { border-width: 3px; }
}

@media (forced-colors: active) {
  .cta,
  .social a {
    border: 2px solid ButtonText;
  }
}

@media print {
  body { background: #fff; color: var(--ink); }
  .bg-fx,
  .arc,
  .waves,
  .decor,
  body::before { display: none; }
  .cta { border: 2px solid var(--ink); box-shadow: none; }
}
