/* ============================================================
   VANESSA BRANCO | LINK DA BIO
   Mentora Energética de Empresários
   Efeitos de Luz nos Cards e Bordas Fiel ao 'Modelo para Entender'
   ============================================================ */

:root {
  /* Cores extraídas da iluminação de estúdio da foto */
  --bg-deep-shadow: #190104;
  --bg-dark-base: #240206;
  --bg-mid-marsala: #481017;
  --bg-spotlight: #822838;
  --bg-spotlight-soft: rgba(130, 40, 56, 0.92);

  /* Paleta Dourada e Champagne */
  --gold: #C9A06A;
  --gold-light: #E8C99A;
  --gold-bright: #F0D3A3;
  --gold-vivid: #D4AF37;
  --gold-glow: rgba(201, 160, 106, 0.35);
  --gold-metallic: linear-gradient(135deg, #A88748, #F7E5A9 50%, #A88748);

  /* Textos Elegantes */
  --text-primary: #FAF4EB;
  --text-secondary: #E8DDD0;
  --text-muted: #D1BDB0;

  /* Tipografia Editorial */
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--sans);
  background-color: var(--bg-dark-base);

  /* Degradê exato da foto de estúdio */
  background-image:
    /* Spotlight no canto superior direito como na foto */
    radial-gradient(ellipse 65vw 55vw at 82% 16%, var(--bg-spotlight-soft) 0%, rgba(82, 19, 28, 0.65) 45%, transparent 78%),
    /* Suave difusão no meio da página */
    radial-gradient(ellipse 70vw 60vw at 25% 65%, rgba(100, 24, 35, 0.32) 0%, transparent 70%),
    /* Luz difusa central */
    radial-gradient(circle 45vw at 50% 32%, rgba(95, 20, 30, 0.38) 0%, transparent 68%),
    /* Base profunda com vinheta aveludada */
    linear-gradient(165deg, #2D050B 0%, #440D16 26%, #2B0409 60%, var(--bg-deep-shadow) 100%);

  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Anéis decorativos dourados */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

body::before {
  width: 58vw;
  height: 58vw;
  left: -28vw;
  top: -22vw;
  border: 1px solid rgba(201, 160, 106, 0.22);
  border-radius: 48% 52% 60% 40%;
  transform: rotate(32deg);
  box-shadow: 0 0 35px rgba(201, 160, 106, 0.08), inset 0 0 35px rgba(201, 160, 106, 0.05);
}

body::after {
  width: 48vw;
  height: 70vw;
  right: -28vw;
  bottom: -35vw;
  border: 1px solid rgba(201, 160, 106, 0.2);
  border-radius: 50%;
  transform: rotate(-24deg);
  box-shadow: 0 0 40px rgba(201, 160, 106, 0.08), inset 0 0 45px rgba(201, 160, 106, 0.05);
}

/* Orbes ambientais com respiração */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient span:first-child {
  background: #A03246;
  top: -18rem;
  right: -10rem;
}

.ambient span:last-child {
  background: #4A111B;
  left: -18rem;
  bottom: -18rem;
  animation-delay: -7s;
}

@keyframes drift {
  to { transform: translate(5rem, 4rem) scale(1.12); }
}

/* ============================================================
   ANIMAÇÃO DE ENTRADA SUAVE E ELEGANTE (RISE-SOFT COM LEVEZA)
   ============================================================ */
@keyframes rise-soft {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  65% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.rise {
  animation: rise-soft 1.15s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

/* Entrada com máxima leveza e fluidez para a Expert */
.hero-expert-img.rise {
  animation: rise-soft 1.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.05s;
}

/* Nome com entrada delicada e harmoniosa logo atrás da Expert */
.hero-name-wrap.rise {
  animation: rise-soft 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.32s;
}

/* Container principal */
.page {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 540px);
  margin: 0 auto;
  padding: 30px 0 36px;
}

/* ============================================================
   HERO: EXPERT NA FRENTE E NOME ATRÁS
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ------------------------------------------------------------
   CAMADA 1: NOME EM GIF DE MOVIMENTO ATRÁS DA EXPERT
   ------------------------------------------------------------ */
.hero-name-wrap {
  position: absolute;
  inset: 0;
  z-index: 1; /* Fica atrás da imagem da expert */
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-name-gif {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  opacity: 0.98;
  filter: drop-shadow(0 0 16px rgba(240, 211, 163, 0.45));
}

/* ------------------------------------------------------------
   CAMADA 2: EXPERT NA FRENTE (ENTRA PRIMEIRO)
   ------------------------------------------------------------ */
.hero-expert-img {
  position: relative;
  z-index: 2; /* Fica na frente do nome */
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: transparent;

  /* Dissolve suavemente a base da foto para fundir no degradê da página */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.6) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0, 0, 0, 0.6) 90%, transparent 100%);

  /* Sombra orgânica no recorte da Vanessa */
  filter: drop-shadow(0 14px 28px rgba(16, 1, 3, 0.6));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-photo-wrap:hover .hero-expert-img {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 18px 36px rgba(16, 1, 3, 0.75));
}

/* ============================================================
   TÍTULO ELEVADO (SUBIDO MAIS PARA CIMA, SEM LOGO)
   ============================================================ */
.hero-identity {
  width: 100%;
  max-width: 440px;
  /* Subido bem mais para cima, colando na base da foto */
  margin: -58px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-role {
  font: 400 clamp(18px, 4.6vw, 23px)/1.3 var(--serif);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 4px;
  max-width: 410px;
  background: linear-gradient(135deg, #FFFDF8 0%, #F5E5D0 40%, #E8C99A 75%, #D4AF77 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
}

/* Divisor Dourado */
.brand-rule {
  width: 130px;
  height: 1px;
  margin: 10px auto 12px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.brand-rule::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  left: calc(50% - 3.5px);
  top: -3px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(240, 211, 163, 0.9);
}

/* ============================================================
   CARDS COM EFEITOS DE LUZ E BORDA DO 'MODELO PARA ENTENDER'
   ============================================================ */
.links {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

/* Propriedade para rotação suave do anel de luz da borda */
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 175px 36px 1fr 34px;
  align-items: center;
  min-height: 142px;
  padding: 0 18px 0 0; /* Zero espaço nas bordas: a imagem faz parte do card */
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 22px;
  overflow: hidden;

  /* Base em degradê metálico dourado sutil com recheio Marsala */
  background: linear-gradient(115deg, rgba(42, 6, 12, 0.92) 0%, rgba(68, 14, 23, 0.85) 50%, rgba(35, 4, 9, 0.95) 100%);
  border: 1px solid rgba(201, 160, 106, 0.55);
  box-shadow:
    0 12px 30px rgba(16, 1, 3, 0.55),
    0 0 18px rgba(212, 175, 55, 0.2);

  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 1. BORDA DE LUZ GIRATÓRIA DO MODELO PARA ENTENDER (borda-luz) */
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--ang),
    transparent 0%,
    transparent 58%,
    rgba(255, 236, 170, 0.35) 72%,
    rgba(255, 246, 205, 0.9) 90%,
    #fff 95%,
    #fff 96.5%,
    rgba(255, 250, 225, 0) 98.5%,
    transparent 100%
  );
  filter: drop-shadow(0 0 3px rgba(255, 236, 170, 0.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: borda-luz 6s linear infinite;
  pointer-events: none;
}

@keyframes borda-luz {
  to { --ang: 360deg; }
}

/* 2. BRILHO DE LUZ PASSANDO DIAGONALMENTE PELO CARD (shine do modelo) */
.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 45%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4) 50%, transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: shine-card 5.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: var(--shine-delay, 1.2s);
}

@keyframes shine-card {
  0%   { left: -100%; opacity: 0; }
  15%  { opacity: 1; }
  45%  { left: 150%; opacity: 0; }
  100% { left: 150%; opacity: 0; }
}

/* Efeito Hover dos Cards idêntico ao modelo */
.link-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow:
    0 16px 36px rgba(16, 1, 3, 0.7),
    0 0 24px rgba(212, 175, 55, 0.45);
}

.card-photo {
  width: 175px;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: 0;
  align-self: stretch;
  background: transparent;
  display: block;

  /* Sombra suave projetada no recorte */
  filter: drop-shadow(4px 4px 14px rgba(16, 1, 3, 0.6));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.link-card:hover .card-photo {
  transform: scale(1.035);
  filter: drop-shadow(6px 6px 18px rgba(16, 1, 3, 0.8)) drop-shadow(0 0 10px rgba(201, 160, 106, 0.3));
}

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  display: grid;
  place-items: center;
}

.card-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(232, 201, 154, 0.3));
}

.card-copy {
  min-width: 0;
  border-left: 1px solid rgba(201, 160, 106, 0.45);
  padding-left: 15px;
}

.card-title {
  font: 400 clamp(18px, 4.3vw, 22px)/1.15 var(--serif);
  display: block;
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card-sub {
  display: block;
  margin-top: 7px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.4;
}

.arrow {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 201, 154, 0.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-size: 18px;
  box-shadow: 0 0 12px rgba(201, 160, 106, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.link-card:hover .arrow {
  background: rgba(201, 160, 106, 0.18);
  box-shadow: 0 0 16px rgba(232, 201, 154, 0.45);
  transform: translate(2px, -2px);
}

/* ============================================================
   RODAPÉ (FOOTER)
   ============================================================ */
.footer {
  padding: 30px 0 14px;
  text-align: center;
}

.footer-line {
  width: 160px;
  height: 1px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(201, 160, 106, 0.5);
}

.social {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.social a {
  color: var(--gold-light);
  text-decoration: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  transition: transform 0.25s, color 0.25s;
}

.social a:hover {
  color: #FFF;
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(240, 211, 163, 0.6));
}

.social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copyright {
  margin-top: 16px;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.75;
}

/* ============================================================
   BOTÃO VOLTAR AO TOPO (FLUTUANTE)
   ============================================================ */
.topo {
  position: fixed;
  z-index: 50;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(36, 4, 9, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 201, 154, 0.8);
  color: var(--gold-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.topo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topo--on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.topo:hover {
  background: rgba(68, 14, 23, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(201, 160, 106, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVIDADE (MOBILE-FIRST)
   ============================================================ */
@media (max-width: 440px) {
  .page {
    width: min(100% - 22px, 520px);
    padding-top: 20px;
  }

  .hero-identity {
    margin-top: -46px; /* Bem subido no mobile também */
  }

  .hero-role {
    font-size: 16.5px;
    letter-spacing: 0.07em;
  }

  .links {
    gap: 14px;
    margin-top: 18px;
  }

  .link-card {
    grid-template-columns: 136px 26px 1fr 28px;
    gap: 8px;
    min-height: 118px;
    padding: 0 12px 0 0;
    border-radius: 18px;
  }

  .card-photo {
    width: 136px;
    height: 100%;
    min-height: 118px;
    object-position: 55% 25%;
    border-radius: 0;
  }

  .card-icon {
    width: 28px;
    height: 28px;
  }

  .card-icon svg {
    width: 22px;
    height: 22px;
  }

  .card-copy {
    padding-left: 10px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-sub {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
