/* ==========================================================================
   Método Navas — Central de links
   Estrutura:
   01. Variáveis
   02. Base
   03. Animações
   04. Fundo decorativo
   05. Perfil
   06. Redes sociais
   07. Cards de link
   08. Botão principal (CTA)
   09. Footer
   ========================================================================== */


/* 01. VARIÁVEIS
   ========================================================================== */
:root {
  --bg: #0B0F19;
  --blue: #009DFF;
  --blue-deep: #0066FF;
  --white: #FFFFFF;
  --gray: #A1A1AA;
  --border: #374151;

  --gradient-blue: linear-gradient(135deg, #009DFF, #0066FF);
  --glass-blur: blur(16px) saturate(140%);
}


/* 02. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--blue); }

img { display: block; }


/* 03. ANIMAÇÕES
   ========================================================================== */
@keyframes mnIn      { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mnSheen   { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes mnCtaGlow { 0%, 100% { box-shadow: 0 12px 40px -10px rgba(0,157,255,.55), inset 0 1px 0 rgba(255,255,255,.25); } 50% { box-shadow: 0 14px 54px -6px rgba(0,157,255,.9), inset 0 1px 0 rgba(255,255,255,.3); } }
@keyframes mnNudge   { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes mnPulse   { 0%, 100% { opacity: .55; } 50% { opacity: .85; } }


/* 04. FUNDO DECORATIVO
   ========================================================================== */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(55,65,81,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,65,81,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 80%);
}

.bg-glow {
  position: absolute;
  pointer-events: none;
}
.bg-glow--top {
  left: 50%;
  top: -260px;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,157,255,.32), rgba(0,102,255,.12) 55%, transparent);
  animation: mnPulse 8s ease-in-out infinite;
}
.bg-glow--left {
  left: 8%;
  top: 46%;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgba(0,102,255,.12), transparent);
}
.bg-glow--right {
  right: 4%;
  top: 72%;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(0,157,255,.09), transparent);
}

.container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


/* 05. PERFIL
   ========================================================================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  animation: mnIn .6s ease-out both;
}

.profile__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-blue);
  box-shadow: 0 0 40px rgba(0,157,255,.35);
}
.profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 3px solid var(--bg);
}

.profile__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--blue);
  text-transform: uppercase;
}

.profile__title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

.profile__bio {
  margin: 0;
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray);
  text-wrap: balance;
}


/* 06. REDES SOCIAIS
   ========================================================================== */
.social {
  display: flex;
  gap: 10px;
}

.social__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.7);
  color: var(--white);
  transition: all .25s;
}
.social__icon:hover {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(0,157,255,.35);
}


/* 07. CARDS DE LINK
   ========================================================================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  animation: mnIn .6s .1s ease-out both;
}
.divider__line {
  flex: 1;
  height: 1px;
}
.divider__line--left  { background: linear-gradient(90deg, transparent, var(--border)); }
.divider__line--right { background: linear-gradient(90deg, var(--border), transparent); }
.divider__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gray);
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(26,36,53,.35));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: var(--white);
  transition: all .25s ease;
  animation: mnIn .6s ease-out both;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,157,255,.55);
  box-shadow: 0 10px 30px -14px rgba(0,157,255,.5);
  color: var(--white);
}

/* Entrada em cascata e brilho defasado */
.links > .link-card:nth-of-type(1) { animation-delay: .15s; }
.links > .link-card:nth-of-type(2) { animation-delay: .2s; }
.links > .link-card:nth-of-type(3) { animation-delay: .25s; }
.links > .link-card:nth-of-type(4) { animation-delay: .3s; }
.links > .link-card:nth-of-type(1) .link-card__sheen { animation-delay: 1.5s; }
.links > .link-card:nth-of-type(2) .link-card__sheen { animation-delay: 2.1s; }
.links > .link-card:nth-of-type(3) .link-card__sheen { animation-delay: 2.7s; }
.links > .link-card:nth-of-type(4) .link-card__sheen { animation-delay: 3.3s; }

/* Card em destaque (Método Navas) */
.link-card--featured {
  background: linear-gradient(135deg, rgba(0,157,255,.16), rgba(26,36,53,.35) 70%);
  border-color: rgba(0,157,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(0,157,255,.08), 0 10px 36px -12px rgba(0,157,255,.45);
}
.link-card--featured:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0,157,255,.2), 0 14px 44px -10px rgba(0,157,255,.6);
}

.link-card__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: mnSheen 6s ease-in-out infinite;
}

.link-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,157,255,.1);
  border: 1px solid rgba(0,157,255,.25);
  color: var(--blue);
}
.link-card__icon--featured {
  background: var(--gradient-blue);
  border: none;
  color: var(--white);
  box-shadow: 0 0 20px rgba(0,157,255,.4);
}

.link-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.link-card__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}

.link-card__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--gray);
}

.badge {
  padding: 2px 8px;
  border: 1px solid rgba(0,157,255,.4);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--blue);
}

.link-card__chevron {
  flex: none;
  color: var(--gray);
}
.link-card__chevron--blue { color: var(--blue); }


/* 08. BOTÃO PRINCIPAL (CTA)
   ========================================================================== */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 64px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #009DFF, #0066FF);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  box-shadow: 0 12px 40px -10px rgba(0,157,255,.65), inset 0 1px 0 rgba(255,255,255,.25);
  transition: all .3s ease;
  animation: mnIn .6s .45s ease-out both, mnCtaGlow 3.2s 1.2s ease-in-out infinite;
}
.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 56px -8px rgba(0,157,255,.85), inset 0 1px 0 rgba(255,255,255,.35);
  filter: brightness(1.08);
  color: var(--white);
}

.cta__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: mnSheen 4s 2s ease-in-out infinite;
}

.cta__label { position: relative; }

.cta__arrow {
  position: relative;
  animation: mnNudge 1.6s ease-in-out infinite;
}


/* 09. FOOTER
   ========================================================================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(55,65,81,.6);
  text-align: center;
  animation: mnIn .6s .55s ease-out both;
}

.footer__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--white);
}

.footer__text {
  margin: 0;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  text-wrap: pretty;
}

.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gray);
  transition: color .2s;
}
.footer__links a:hover { color: var(--blue); }


/* Acessibilidade: reduz animações se o usuário preferir */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
