/* ==========================================================================
   CRWZ1N | Links Oficiais — estilos
   ========================================================================== */

:root {
  --purple: #FF8DA1;
  --purple-dark: #E2607A;
  --purple-darker: #A6394E;
  --white: #ffffff;
  --vh: 1vh;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  background: #050005;
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Fundo desfocado (visível nas laterais em telas largas)
   -------------------------------------------------------------------------- */

.bg-blur {
  position: fixed;
  inset: 0;
  background-image: url("fundo.png");
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35);
  transform: scale(1.15);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Coluna central (estilo mobile), mesmo em telas grandes
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  max-width: clamp(360px, 92vw, 480px);
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  margin: 0 auto;
  background-image: url("fundo.png");
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 560px) {
  .page {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 90px -20px rgba(0, 0, 0, 0.85);
  }
}

.page-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(10, 0, 16, 0.55) 20%,
      rgba(10, 0, 16, 0.6) 75%,
      rgba(0, 0, 0, 0.9) 100%);
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 14px) clamp(14px, 4vw, 22px) calc(env(safe-area-inset-bottom) + 18px);
}

/* --------------------------------------------------------------------------
   Aviso: abrir no navegador externo
   -------------------------------------------------------------------------- */

.browser-warning {
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  box-shadow: 0 10px 26px -8px rgba(255, 141, 161, 0.65), 0 4px 14px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: fade-in-up 0.55s ease 0.05s both;
}

.warning-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 3vw, 16px);
  padding: clamp(12px, 3.6vw, 18px) clamp(12px, 3.6vw, 16px) clamp(12px, 3.6vw, 18px) clamp(14px, 4vw, 20px);
}

.warning-text {
  margin: 0;
  flex: 1 1 auto;
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  font-stretch: condensed;
  font-size: clamp(0.72rem, 3.4vw, 0.94rem);
  line-height: 1.28;
  letter-spacing: 0.2px;
  text-wrap: balance;
}

.warning-arrow {
  flex: 0 0 auto;
  width: clamp(32px, 9vw, 46px);
  height: clamp(32px, 9vw, 46px);
  color: var(--white);
}

.warning-sub {
  margin: 0;
  background: var(--white);
  color: #333333;
  text-align: center;
  font-size: clamp(0.6rem, 2.6vw, 0.72rem);
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 0 0 18px 18px;
}

/* --------------------------------------------------------------------------
   Identidade
   -------------------------------------------------------------------------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(20px, 5vh, 34px);
  animation: fade-in-up 0.6s ease 0.16s both;
}

.logo {
  width: clamp(85px, 22vw, 105px);
  height: clamp(85px, 22vw, 105px);
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 141, 161, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.brand-name {
  margin: 14px 0 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, Haettenschweiler, "Franklin Gothic Bold", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 9vw, 3rem);
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.brand-subtitle {
  margin: 6px 0 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.85rem, 3vw, 1rem);
}

/* --------------------------------------------------------------------------
   Redes sociais
   -------------------------------------------------------------------------- */

.social-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 5vw, 26px);
  margin-top: clamp(22px, 5vh, 30px);
  animation: fade-in-up 0.6s ease 0.28s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.social-link svg {
  width: clamp(28px, 7.5vw, 36px);
  height: clamp(28px, 7.5vw, 36px);
  fill: var(--white);
  color: var(--white);
}

.social-link:hover,
.social-link:focus-visible {
  transform: scale(1.12);
  background-color: rgba(255, 141, 161, 0.22);
  box-shadow: 0 0 20px rgba(255, 141, 161, 0.75);
}

/* --------------------------------------------------------------------------
   Botões principais
   -------------------------------------------------------------------------- */

.main-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(26px, 6vh, 36px);
  animation: fade-in-up 0.6s ease 0.4s both;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(62px, 15vw, 70px);
  border-radius: 18px;
  background: linear-gradient(135deg, #FFB6C6 0%, var(--purple) 45%, var(--purple-dark) 100%);
  box-shadow: 0 12px 26px -10px rgba(255, 141, 161, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 16px 30px -8px rgba(255, 141, 161, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  position: absolute;
  left: clamp(14px, 4vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  color: var(--white);
}

.btn-text {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: clamp(0.85rem, 3.6vw, 1.02rem);
  text-align: center;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.footer {
  margin-top: auto;
  padding-top: clamp(28px, 6vh, 40px);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  line-height: 1.7;
  animation: fade-in-up 0.6s ease 0.52s both;
}

.footer p {
  margin: 0;
}

.brand-highlight {
  color: #FFA8BD;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Animação de entrada
   -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  .browser-warning,
  .profile,
  .social-nav,
  .main-buttons,
  .footer {
    animation: none;
  }
  .btn,
  .social-link {
    transition: none;
  }
}
