/* ZIP CENTER landing — mesmo padrão WorldWideLeak (VT323 + gradiente) */

@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

html.landing-mode {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
html.landing-mode,
html.landing-mode body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  background: #000;
  color: #e5e7eb;
  font-family: "VT323", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.landing-root {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  font-family: "VT323", monospace;
}

/* from-purple-900 via-black to-indigo-900 opacity-50 */
.landing-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom right, #581c87, #000000, #312e81);
  opacity: 0.5;
  pointer-events: none;
}

/* grid roxo opacity-20 */
.landing-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(#bc9ce8 1px, transparent 1px),
    linear-gradient(90deg, #bc9ce8 1px, transparent 1px);
  background-size: 50px 50px; /* WWL exato */
}

.ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: ambient-breathe 10s ease-in-out infinite;
}
.ambient-light-a {
  width: 50vw;
  height: 50vw;
  background: rgba(59, 111, 212, 0.1);
  top: -18%;
  left: -12%;
}
.ambient-light-b {
  width: 42vw;
  height: 42vw;
  background: rgba(188, 156, 232, 0.08);
  bottom: -12%;
  right: -8%;
  animation-delay: 3.5s;
}
.ambient-light-c {
  width: 30vw;
  height: 30vw;
  background: rgba(91, 141, 238, 0.06);
  top: 40%;
  left: 55%;
  transform: translate(-50%);
  animation-delay: 7s;
}
@keyframes ambient-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

/*
 * Globo WWL EXATO (baixado de worldwideleak.cloud):
 *   className="opacity-30 blur-[1px]"
 *   style={{ filter: "drop-shadow(0 0 48px rgba(188, 156, 232, 0.35))" }}
 *
 * No React o style.filter SOBRESCREVE o blur da class → visual real:
 *   opacity: 0.3 + drop-shadow (SEM blur) = roxo mais brilhante
 * O fill do canvas é #4c1d95 sólido; a transparência é só o opacity CSS.
 */
.landing-globe-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  overflow: hidden;
}
.landing-globe-wrap canvas {
  border-radius: 1rem;
  background: transparent !important;
  cursor: grab;
  /* aplicados também no JS; CSS como fallback */
  opacity: 0.3;
  filter: drop-shadow(0 0 48px rgba(188, 156, 232, 0.35));
  -webkit-filter: drop-shadow(0 0 48px rgba(188, 156, 232, 0.35));
  pointer-events: auto;
  /* tamanho controlado pelo JS (width/height inline) */
  max-width: min(720px, 92vw);
  max-height: min(720px, 70dvh);
  aspect-ratio: 1 / 1;
}
.landing-globe-wrap canvas:active {
  cursor: grabbing;
}

.landing-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.landing-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #c084fc;
  border-radius: 9999px;
  animation: float linear infinite;
  opacity: 0.4;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.8);
}
@keyframes float {
  0% {
    transform: translateZ(0) scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateZ(0) scale(0.9);
    opacity: 0.3;
  }
}

.landing-trail-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}
.landing-trail-letter {
  pointer-events: none;
  position: absolute;
  user-select: none;
  color: rgb(240 171 252 / 0.9);
  font-family: "VT323", ui-monospace, monospace;
  animation-name: landing-trail-fall;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
  text-shadow:
    0 0 12px rgba(216, 180, 254, 0.9),
    0 0 24px rgba(129, 140, 248, 0.55);
}
@keyframes landing-trail-fall {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--trail-rotate, 0deg)) scale(0.6);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--trail-drift-x, 0px)),
        calc(-50% + var(--trail-drift-y, 78px))
      )
      rotate(var(--trail-rotate, 0deg)) scale(1.25);
  }
}

.landing-hero {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  pointer-events: none;
  box-sizing: border-box;
}
.landing-hero > * {
  pointer-events: auto;
}

/*
 * Título — MESMO padrão WorldWideLeak:
 * text-6xl mb-4 font-bold text-transparent
 * bg-clip-text bg-gradient-to-r from-purple-400 to-pink-300 animate-pulse
 */
.landing-title {
  font-family: "VT323", monospace;
  /* escala fluida: no PC ~3.75rem, no celular cabe "ZIP CENTER" em 1 linha */
  font-size: clamp(1.85rem, 9vw, 3.75rem);
  line-height: 1.1;
  margin: 0 0 0.85rem;
  padding: 0 0.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: transparent;
  background-image: linear-gradient(to right, #c084fc, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  white-space: nowrap;
}
@keyframes title-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* text-2xl mb-8 text-gray-300 font-light */
.landing-tagline {
  font-family: "VT323", monospace;
  font-size: clamp(1.1rem, 4.2vw, 1.5rem);
  line-height: 1.4;
  margin: 0 0 1.5rem;
  padding: 0 0.5rem;
  color: #d1d5db;
  font-weight: 300;
  width: 100%;
  max-width: 36rem;
  text-align: center;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

/* space-x-4 — botões SEMPRE lado a lado (igual PC) */
.landing-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* px-8 py-3 w-48 text-xl rounded */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(7.5rem, 38vw, 12rem);
  min-width: 0;
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  text-align: center;
  color: #fff;
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  line-height: 1.4;
  font-weight: 400;
  border-radius: 0.25rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "VT323", monospace;
  box-sizing: border-box;
  white-space: nowrap;
}
.landing-btn-primary {
  background: #bc9ce8;
  color: #fff;
}
.landing-btn-primary:hover {
  background: #a78bd4;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.5);
}
.landing-btn-secondary {
  background: #3c3c54;
  color: #fff;
}
.landing-btn-secondary:hover {
  background: #2e2e3e;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.5);
}

/* modal */
.landing-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.landing-modal-backdrop.open {
  display: flex;
}
.landing-modal {
  width: 100%;
  max-width: 26rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(188, 156, 232, 0.28);
  background: linear-gradient(180deg, rgba(30, 20, 48, 0.96), rgba(8, 8, 16, 0.98));
  box-shadow:
    0 0 0 1px rgba(188, 156, 232, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 1.75rem 1.6rem 1.4rem;
  position: relative;
  font-family: "VT323", monospace;
}
.landing-modal h3 {
  margin: 0 0 0.35rem;
  font-family: "VT323", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: transparent;
  background-image: linear-gradient(to right, #c084fc, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}
.landing-modal .sub {
  margin: 0 0 1.2rem;
  color: #94a3b8;
  font-size: 1.05rem;
  font-weight: 300;
}
.landing-modal label {
  display: block;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}
.landing-modal .form-group {
  margin-bottom: 0.85rem;
}
.landing-modal .form-control {
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 8, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  color: #e8edf5;
  padding: 0.7rem 0.9rem;
  outline: none;
  font-size: 1.05rem;
  font-family: "VT323", monospace;
}
.landing-modal .form-control:focus {
  border-color: rgba(188, 156, 232, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.landing-modal .btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.35rem;
  background: #bc9ce8;
  color: #fff;
  font-weight: 400;
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.25s;
  font-family: "VT323", monospace;
}
.landing-modal .btn-submit:hover {
  background: #a78bd4;
  box-shadow: 0 10px 22px rgba(168, 85, 247, 0.35);
}
.landing-modal .close-x {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.landing-modal .alert-box {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 1rem;
}
.landing-modal .alert-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}
.landing-modal .alert-box.success,
.landing-modal .alert-box.info {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(188, 156, 232, 0.28);
  color: #e9d5ff;
}
.landing-foot {
  margin-top: 0.95rem;
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
}
.landing-foot a {
  color: #bc9ce8;
  text-decoration: none;
}

/* mobile: mesmo layout do PC, só escala menor — NÃO empilha botões */
@media (max-width: 640px) {
  .landing-grid {
    background-size: 36px 36px;
  }
  .landing-globe-wrap canvas {
    max-width: min(100vw, 420px);
    max-height: min(70dvh, 420px);
    filter: drop-shadow(0 0 28px rgba(188, 156, 232, 0.35));
    -webkit-filter: drop-shadow(0 0 28px rgba(188, 156, 232, 0.35));
  }
  .landing-hero {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .landing-title {
    white-space: nowrap;
  }
  .landing-actions {
    flex-direction: row;
    gap: 0.65rem;
  }
  .landing-btn {
    width: 8.5rem;
    padding: 0.65rem 0.75rem;
  }
  .landing-modal {
    max-width: calc(100vw - 1.5rem);
    margin: 0 auto;
  }
  .landing-particles {
    display: none; /* menos ruído / performance no celular */
  }
}

@media (max-width: 380px) {
  .landing-btn {
    width: 7.4rem;
    font-size: 0.95rem;
    padding: 0.6rem 0.5rem;
  }
  .landing-title {
    letter-spacing: 0;
  }
}
