/* ============================================================
   MINI SITE — UNIVERSO ISOLADO
   Identidade visual oficial: Céu azul vibrante + nuvens 3D +
   Fredoka Bold (contorno #0f172a + amarelo #fde047) + botões 3D
   ============================================================ */

:root {
  --sky-top: #0f62e6;
  --sky-mid: #2889f8;
  --sky-low: #79ccff;
  --sky-horizon: #d4f1ff;

  --ink: #0f172a;
  --ink-muted: #475569;
  --white: #ffffff;
  --gold: #fde047;
  --gold-deep: #facc15;
  --green-dot: #22c55e;

  --card-bg: rgba(255, 255, 255, 0.96);
  --pill-bg: rgba(255, 255, 255, 0.9);
  --radius-btn: 20px;

  --font-display: 'Fredoka', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--sky-top);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 36%,
    var(--sky-low) 74%,
    var(--sky-horizon) 100%
  );
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

/* ---------- Fundo Céu + Nuvens ---------- */

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

.sky-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: min(680px, 140vw);
  height: min(680px, 140vw);
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(191, 232, 255, 0.42) 0%,
    rgba(96, 185, 255, 0.16) 45%,
    rgba(22, 115, 242, 0) 72%
  );
}

.horizon-mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background: linear-gradient(
    180deg,
    rgba(212, 241, 255, 0) 0%,
    rgba(224, 246, 255, 0.55) 65%,
    rgba(235, 250, 255, 0.85) 100%
  );
}

.cloud {
  position: absolute;
  opacity: 0.86;
  filter: drop-shadow(0 12px 18px rgba(15, 98, 230, 0.14));
  will-change: transform;
}

.cloud-1 {
  top: 7%;
  left: -40px;
  width: clamp(160px, 28vw, 260px);
  animation: cloud-drift-right 34s ease-in-out infinite alternate;
}

.cloud-2 {
  top: 19%;
  right: -32px;
  width: clamp(140px, 24vw, 230px);
  opacity: 0.78;
  animation: cloud-drift-left 40s ease-in-out infinite alternate;
}

.cloud-3 {
  bottom: 10%;
  left: 4%;
  width: clamp(180px, 32vw, 290px);
  opacity: 0.65;
  animation: cloud-drift-right 48s ease-in-out infinite alternate;
}

@keyframes cloud-drift-right {
  0% {
    transform: translate3d(-16px, 0, 0);
  }
  100% {
    transform: translate3d(32px, -8px, 0);
  }
}

@keyframes cloud-drift-left {
  0% {
    transform: translate3d(18px, 0, 0);
  }
  100% {
    transform: translate3d(-30px, 8px, 0);
  }
}

/* ---------- Container Principal ---------- */

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---------- Hero / Logo Original Animada ---------- */

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-stage {
  position: relative;
  width: min(310px, 88vw);
  height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.logo-3d-stage {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 262px;
  height: 262px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(15, 62, 160, 0.24));
}

.logo-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.94);
  will-change: opacity, transform;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 840ms cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-3d-stage.is-ready .logo-3d-canvas {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Fallback discreto caso o navegador não suporte WebGL */
.logo-fallback-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: radial-gradient(circle, #000 54%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle, #000 54%, transparent 74%);
}

.logo-3d-stage.is-fallback .logo-fallback-img {
  display: block;
}

/* Título oficial estilo logo 3D sobreposto à base da bolha */
.brand-wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.91;
  letter-spacing: 0.015em;
  margin-bottom: 16px;
  user-select: none;
}

.brand-top,
.brand-bottom {
  display: inline-block;
  paint-order: stroke fill;
  -webkit-text-stroke: 8px var(--ink);
  text-shadow:
    0 5px 0 var(--ink),
    0 12px 24px rgba(15, 23, 42, 0.36);
}

.brand-top {
  font-size: clamp(2.2rem, 9.5vw, 2.75rem);
  color: var(--white);
  opacity: 0;
  transform-origin: center bottom;
  animation: wordmark-pop 540ms cubic-bezier(0.22, 1, 0.36, 1) 60ms forwards;
}

.brand-bottom {
  font-size: clamp(2.35rem, 10vw, 2.9rem);
  color: var(--gold);
  margin-top: -3px;
  opacity: 0;
  transform-origin: center top;
  animation: wordmark-pop 540ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

@keyframes wordmark-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.86);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-fade-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Handle Pill (estilo pílula 3D dos vídeos) */
.handle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  animation: hero-fade-up 420ms cubic-bezier(0.22, 1, 0.36, 1) 220ms forwards;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.bio-text {
  max-width: 340px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.32);
  opacity: 0;
  animation: hero-fade-up 440ms cubic-bezier(0.22, 1, 0.36, 1) 265ms forwards;
}

/* ---------- Botões das Redes Sociais ---------- */

.links-section {
  width: 100%;
}

.links-stack {
  width: 100%;
  min-height: 353px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 14px 11px 12px;
  border-radius: var(--radius-btn);
  background: var(--card-bg);
  border: 3px solid var(--ink);
  box-shadow:
    0 6px 0 var(--ink),
    0 14px 26px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 150ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 150ms ease;
  opacity: 0;
  animation: btn-pop-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
  -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 8px 0 var(--ink),
    0 18px 32px rgba(15, 23, 42, 0.24);
}

.social-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 var(--ink),
    0 6px 12px rgba(15, 23, 42, 0.16);
}

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

@keyframes btn-pop-in {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Badge do ícone da rede */
.social-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.social-btn:hover .social-icon {
  transform: rotate(-4deg) scale(1.05);
}

.social-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Cores oficiais das plataformas */
.platform-youtube .social-icon {
  background: linear-gradient(145deg, #ff3b30 0%, #dc2626 100%);
}

.platform-instagram .social-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 52%, #7c3aed 100%);
}

.platform-facebook .social-icon {
  background: linear-gradient(145deg, #2563eb 0%, #1877f2 100%);
}

.platform-tiktok .social-icon {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.platform-whatsapp .social-icon {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
}

.platform-email .social-icon {
  background: linear-gradient(145deg, #fde047 0%, #f59e0b 100%);
  color: var(--ink);
}

.platform-link .social-icon {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Texto do botão */
.social-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.social-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--ink);
}

.social-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
}

.social-subtitle {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seta à direita */
.social-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 2px solid rgba(15, 23, 42, 0.14);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 160ms ease, background-color 160ms ease;
}

.social-btn:hover .social-arrow {
  transform: translateX(3px);
  background: var(--gold);
  border-color: var(--ink);
}

/* ---------- Rodapé e Compartilhamento ---------- */

.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.share-btn:hover {
  transform: translateY(-1px);
  background: var(--white);
  box-shadow: 0 5px 0 var(--ink);
}

.share-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

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

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.76);
}

.footer-contact {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: max(18px, env(safe-area-inset-top));
  transform: translateX(-50%) translateY(-18px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsividade & Acessibilidade ---------- */

@media (max-width: 380px) {
  .logo-stage {
    height: 214px;
  }

  .logo-3d-stage {
    width: 222px;
    height: 222px;
  }

  .social-btn {
    padding: 11px 12px;
    gap: 11px;
  }

  .social-icon {
    width: 46px;
    height: 46px;
  }

  .social-name {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .brand-top,
  .brand-bottom,
  .handle-pill,
  .bio-text,
  .social-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .logo-3d-canvas {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .social-btn,
  .social-icon,
  .social-arrow,
  .share-btn {
    transition: none !important;
  }
}
