/* ============================================================
   Link in Bio — Romero Dornellas · v1
   Estilo: Premium dark, cards minimalistas
   Paleta OFICIAL Assessoria RD (manual de marca): roxo + preto + branco
   ============================================================ */

:root {
  /* Paleta oficial — manual de marca RD */
  --roxo: #580d8e;           /* roxo oficial */
  --roxo-light: #7a30b3;
  --roxo-soft: #a366cc;
  --roxo-deep: #2a0644;
  --roxo-night: #14021f;
  --preto: #000000;
  --preto-bg: #07030c;
  --branco: #ffffff;
  --roxo-glow: rgba(88, 13, 142, 0.45);

  --texto-suave: rgba(255, 255, 255, 0.72);
  --texto-mute: rgba(255, 255, 255, 0.55);

  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-card: 0 12px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(88,13,142,0.18);
  --shadow-card-hover: 0 22px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(122, 48, 179, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  /* fallback: se WebGL falhar ou prefers-reduced-motion, esse fundo aparece */
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(91, 42, 140, 0.18), transparent 60%),
    radial-gradient(700px 400px at 100% 50%, rgba(255, 107, 44, 0.08), transparent 60%),
    linear-gradient(180deg, #07030c 0%, #04020a 100%);
  background-attachment: fixed;
  color: var(--branco);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 28px 18px 90px;
  position: relative;
}

/* ============================================================
   FUNDO WebGL — canvas full screen atrás de tudo
   ============================================================ */
#bg-shader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  display: block;
  pointer-events: none;   /* clique passa pra body (engine captura via window) */
}

/* tudo que é UI fica acima do canvas */
.hub, .shader-picker { position: relative; z-index: 1; }

/* ============================================================
   HUB CONTAINER
   ============================================================ */
.hub {
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 18px 12px 28px;
}

.hero__photo {
  display: block;
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(247, 241, 232, 0.08);
}

.hero__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--branco);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 30px rgba(139, 92, 199, 0.35);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__logo {
  display: block;
  width: 70%;
  max-width: 260px;
  height: auto;
  margin: 6px auto 12px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(139, 92, 199, 0.25));
}

.hero__bio {
  font-size: 14px;
  color: var(--texto-suave);
  margin-bottom: 14px;
}
.hero__bio span {
  color: var(--roxo-soft);
  font-weight: 600;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(247, 241, 232, 0.06);
  border: 1px solid rgba(247, 241, 232, 0.10);
  color: var(--texto-suave);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 22px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(20, 10, 35, 0.78) 0%, rgba(6, 2, 12, 0.88) 100%);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--branco);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 96px;
  -webkit-tap-highlight-color: transparent;
}

.card::before {
  /* sheen no hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

/* linha vertical roxa hairline na esquerda — substitui ícone */
.card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--roxo);
  border-radius: 0 2px 2px 0;
  transition: width 0.22s ease, background 0.22s ease;
  z-index: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(122, 48, 179, 0.45);
}
.card:hover::after {
  width: 5px;
  background: var(--roxo-light);
}
.card:hover::before { transform: translateX(100%); }
.card:active { transform: translateY(0); }

.card__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-left: 8px;
}

.card__eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-mute);
  margin-bottom: 6px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--branco);
}

.card__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--texto-suave);
  line-height: 1.4;
}

.card__arrow {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--texto-mute);
  transition: transform 0.22s ease, color 0.22s ease;
  z-index: 1;
}
.card:hover .card__arrow {
  color: var(--branco);
  transform: translateX(6px);
}

/* ============================================================
   SOCIAL ROW
   ============================================================ */
.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 241, 232, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 241, 232, 0.14);
  color: var(--texto-suave);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.social svg { width: 20px; height: 20px; }
.social:hover {
  background: rgba(255, 107, 44, 0.12);
  color: var(--roxo-soft);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  margin-top: 26px;
  text-align: center;
  font-size: 11px;
  color: var(--texto-mute);
  line-height: 1.5;
  padding: 0 8px;
}

/* ============================================================
   SHADER PICKER — bolinhas no rodapé (canto inferior central)
   ============================================================ */
.shader-picker {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 4, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(247, 241, 232, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.shader-pick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(247, 241, 232, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.shader-pick:hover { transform: scale(1.18); background: rgba(247, 241, 232, 0.42); }
.shader-pick.is-active {
  background: linear-gradient(135deg, var(--branco) 0%, var(--roxo) 100%);
  box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.25), 0 0 16px rgba(255, 107, 44, 0.55);
  transform: scale(1.15);
}

/* cores por bolinha (preview do shader) */
.shader-pick:nth-child(1):not(.is-active) { background: linear-gradient(135deg, #580d8e, #a366cc); }
.shader-pick:nth-child(2):not(.is-active) { background: linear-gradient(135deg, #2a0644, #7a30b3); }
.shader-pick:nth-child(3):not(.is-active) { background: linear-gradient(135deg, #000000, #ffffff); }
.shader-pick:nth-child(4):not(.is-active) { background: linear-gradient(135deg, #7a30b3, #ffffff); }
.shader-pick:nth-child(5):not(.is-active) { background: linear-gradient(135deg, #000000, #580d8e); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 560px) {
  .hero__name { font-size: 32px; }
  .hero__bio { font-size: 15px; }
  .card { padding: 20px 22px 20px 18px; min-height: 104px; }
  .card__bg { width: 80px; height: 80px; }
  .card__title { font-size: 20px; }
  .card__desc { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .card__arrow, .social { transition: none; }
}
