/* ============================================================
   ANM26 — Airport National Meeting 2026
   Splash Screen CSS
   ============================================================ */

:root {
  --color-bg:      #060B35;
  --color-cyan:    #09D5E2;
  --color-magenta: #C8179A;
  --color-white:   #FFFFFF;
  --font-title:    'Bricolage Grotesque', sans-serif;
  --font-body:     'Manrope', sans-serif;
}

/* Wrapper de recorte para text masking */
.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

/* Estado inicial dos textos mascarados — escondidos por CSS antes do JS rodar */
.mask > span {
  display: block;
  transform: translateY(110%);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
}

/* Fix iOS Safari: 100vh inclui chrome do browser */
@supports (height: 100svh) {
  html, body { height: 100svh; }
}

/* ============================================================
   SPLASH — Container principal
   ============================================================ */
.splash {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ============================================================
   FUNDO
   ============================================================ */
.splash__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/fundo.png');
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
}

/* ============================================================
   CANVAS — Partículas
   ============================================================ */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(9, 213, 226, 0.13) 0%,
    rgba(9, 213, 226, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 6;
  will-change: transform;
}

/* ============================================================
   ELEMENTOS DECORATIVOS
   ============================================================ */

/* Avião decolando — topo direita */
.splash__aviao-decolando {
  position: absolute;
  top: 6%;
  right: 16%;
  width: clamp(260px, 37vw, 715px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* Nuvens — esquerda */
.splash__nuvens {
  position: absolute;
  bottom: 34%;
  left: -15%;
  width: clamp(180px, 28vw, 540px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* Torres — direita baixo */
.splash__torres {
  position: absolute;
  bottom: 0;
  right: 0%;
  width: clamp(140px, 22vw, 420px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* Avião de frente — centralizado baixo (margin:auto evita conflito de transform com GSAP) */
.splash__aviao-frente {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: clamp(300px, 50vw, 960px);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* ============================================================
   CONTEÚDO CENTRAL
   ============================================================ */
.splash__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 28px);
  text-align: center;
  padding-bottom: 20vh;
}

/* Logo */
.splash__logo {
  opacity: 0;
  transform: translateY(16px);
}

.splash__logo img {
  width: clamp(220px, 32vw, 613px);
  height: auto;
  display: block;
}

/* Data */
.splash__date {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.2vw, 18px);
  font-family: var(--font-title);
  color: var(--color-white);
  line-height: 1;
}

.date__num {
  font-size: clamp(2.2rem, 3.65vw, 70px);
  font-weight: 800;
  letter-spacing: 0;
}

.date__month {
  font-size: clamp(2.2rem, 3.65vw, 70px);
  font-weight: 300;
  letter-spacing: 0;
  opacity: 1;
}

/* Local */
.splash__location {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.08vw, 40px);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-white);
  text-transform: none;
}

/* CTA */
.splash__cta {
  cursor: default;
  display: inline-block;
  position: relative;
  margin-top: clamp(6px, 1vh, 16px);
  padding: clamp(12px, 1.6vh, 18px) clamp(32px, 4vw, 60px);
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 1.05vw, 20px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  background: #B900EF;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 0 28px rgba(185, 0, 239, 0.45);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.2s ease;
}

/* CTA — hover swap */
.cta__track {
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.cta__default,
.cta__hover {
  display: block;
  text-align: center;
}

.cta__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shimmer layer */
.splash__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  z-index: 1;
  transition: none;
}

.splash__cta:hover {
  background: #cc00ff;
  box-shadow:
    0 0 42px rgba(185, 0, 239, 0.65),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.splash__cta:hover::before {
  animation: shimmer 0.55s ease forwards;
}

@keyframes shimmer {
  from { left: -100%; }
  to   { left: 130%;  }
}

/* ============================================================
   ANIMAÇÃO CONTÍNUA — Floating avião frente
   ============================================================ */
@keyframes float-aviao {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Glow pulsante no avião de frente */
@keyframes glow-aviao {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(9, 213, 226, 0.25)) brightness(1); }
  50%       { filter: drop-shadow(0 0 24px rgba(9, 213, 226, 0.5)) brightness(1.06); }
}

/* Glow pulsante nas torres */
@keyframes glow-torres {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(9, 213, 226, 0.2)) brightness(1); }
  50%       { filter: drop-shadow(0 0 18px rgba(9, 213, 226, 0.4)) brightness(1.05); }
}

/* Leve drift do avião decolando */
@keyframes drift-decolando {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(4px, -5px); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Touch — sem cursor glow */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ── Tablet: 768px – 1024px ─────────────────────────────── */
@media (max-width: 1024px) {
  .splash__aviao-decolando {
    width: clamp(240px, 44vw, 600px);
    top: 4%;
    right: 5%;
  }

  .splash__content {
    padding-bottom: 16vh;
  }

  .splash__logo img {
    width: clamp(200px, 36vw, 500px);
  }
}

/* ── Mobile portrait: até 768px //─────────────────────────── */
@media (max-width: 768px) {
  .splash__aviao-decolando {
    width: 52vw;
    top: 5%;
    right: 2%;
  }

  .splash__nuvens {
    width: 55vw;
    top: 10%;
    bottom: auto;
    left: -12%;
  }

  .splash__torres {
    width: 30vw;
    bottom: 0;
    right: 1%;
    z-index: 4;
  }

  .splash__aviao-frente {
    width: 80vw;
    bottom: 18%;
  }

  .splash__content {
    padding-bottom: 14vh;
    padding-left: 20px;
    padding-right: 20px;
  }

  .splash__logo img {
    width: clamp(200px, 56vw, 340px);
  }

  .splash__location {
    font-size: clamp(1.1rem, 4vw, 28px);
  }

  .splash__cta {
    font-size: clamp(0.7rem, 2.8vw, 15px);
    padding: 14px clamp(24px, 5vw, 44px);
  }
}

/* ── Small phone: até 480px ─────────────────────────────── */
@media (max-width: 480px) {
  .date__num,
  .date__month {
    font-size: clamp(2rem, 9vw, 40px);
  }

  .splash__location {
    font-size: clamp(1rem, 4.5vw, 22px);
  }

  .splash__logo img {
    width: clamp(180px, 52vw, 240px);
  }

  .splash__aviao-decolando {
    width: 70vw;
  }

  .splash__aviao-frente {
    width: 84vw;
    bottom: 20%;
  }

  .splash__nuvens {
    width: 64vw;
    top: 8%;
    bottom: auto;
    left: -14%;
  }

  .splash__torres {
    width: 34vw;
    z-index: 4;
  }

  .splash__content {
    padding-bottom: 16vh;
    gap: clamp(10px, 2vh, 18px);
  }

  .splash__cta {
    font-size: clamp(0.65rem, 3vw, 14px);
    padding: 13px clamp(20px, 5vw, 36px);
    border-radius: 8px;
  }
}

/* ── Extra-small: até 360px ─────────────────────────────── */
@media (max-width: 360px) {
  .splash__logo img {
    width: 160px;
  }

  .date__num,
  .date__month {
    font-size: 1.8rem;
  }

  .splash__location {
    font-size: 0.95rem;
  }

  .splash__cta {
    font-size: 0.62rem;
    padding: 12px 20px;
  }

  .splash__content {
    padding-bottom: 4vh;
  }
}

/* ── Mobile landscape (altura < 500px) ──────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .splash__content {
    padding-bottom: 4vh;
    gap: clamp(5px, 1vh, 12px);
  }

  .splash__logo img {
    width: clamp(120px, 18vw, 220px);
  }

  .date__num,
  .date__month {
    font-size: clamp(1.3rem, 3.8vw, 44px);
  }

  .splash__location {
    font-size: clamp(0.75rem, 1.8vw, 20px);
  }

  .splash__cta {
    font-size: clamp(0.58rem, 1.4vw, 14px);
    padding: 10px clamp(16px, 3vw, 36px);
  }

  .splash__aviao-frente {
    width: 60vw;
    bottom: -6%;
  }

  .splash__nuvens {
    display: none;
  }

  .splash__aviao-decolando {
    width: 34vw;
    top: 2%;
  }

  .splash__torres {
    width: 16vw;
  }
}
