/* Inter auto-hospedada: corta o handshake com fonts.googleapis + fonts.gstatic.
   Os unicode-range vêm do Google Fonts — o navegador só busca o arquivo latin-ext
   se a página usar algum caractere fora do latin básico. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --card-w: 576px;
  --pad: 24px;
  --ink: #1f1a35;
  --muted: rgba(255, 255, 255, .75);
}

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

/* O preto fica no html, não só no body: se algo pintar um fundo no html
   (modo escuro forçado, extensão), o body para de propagar o dele pro canvas
   e passa a pintar a própria caixa — que cobriria o .page-bg. */
html { background: #000; color-scheme: dark; }

body {
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* A foto do hero, borrada, preenchendo a janela atrás do cartão.
   A fonte tem 32px de largura: esticada até a tela ela já sai difusa, então
   um blur curto termina o trabalho pelo qual o blur(80px) pagava caro. */
.page-bg {
  position: fixed;
  inset: -10%;
  background-image: url(assets/bg-blur.webp);
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.2);
  opacity: .55;
  z-index: 0;
}

/* ---------- Barra ao rolar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: min(100%, var(--card-w));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--pad);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  transition: transform .25s ease;
  z-index: 10;
}
.topbar.is-visible { transform: translate(-50%, 0); }
.topbar__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 55% 40%; }
.topbar__name { font-size: 16px; font-weight: 700; letter-spacing: .25px; }

/* ---------- Cartão central ---------- */
.card {
  position: relative;
  z-index: 1; /* acima do .page-bg, que é fixo e fica na camada posicionada */
  width: min(100%, var(--card-w));
  margin: 0 auto;
  min-height: 100vh;
  background: #000;
}

/* ---------- Hero ---------- */
.hero { position: relative; aspect-ratio: 1 / 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(0, 0, 0, .55) 62%, #000 96%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0;
  padding: 0 var(--pad) 16px;
  text-align: center;
}

.name {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: .25px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.badge { width: 20px; height: 20px; flex: none; }
.topbar .badge { width: 15px; height: 15px; }

.handle { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }

.socials { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.socials__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}
.socials__btn:hover { transform: scale(1.08); }
.socials__btn svg { width: 19px; height: 19px; }

/* ---------- Corpo ---------- */
.body { padding: 14px var(--pad) 32px; }

.bio {
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  margin: 4px 0 26px;
}

/* ---------- Botão principal ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 56px;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 255, 255, .16); }
.cta:active { transform: translateY(0); }
.cta__icon {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
}
.cta__icon svg { width: 22px; height: 22px; }
.cta__label { font-size: 20px; font-weight: 600; color: var(--ink); text-align: center; }

.section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  margin: 30px 0 14px;
}

/* ---------- Cards de link ---------- */
.links { display: grid; gap: 12px; }

.link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, border-color .15s ease;
}
.link:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }

/* Foto ao fundo de cada card, escurecida para as logos brancas lerem */
.link__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 40%, rgba(0, 0, 0, .55) 100%);
}

/* A foto do palco é larga; a do retrato precisa subir até a altura do rosto */
.link--ihub .link__bg { object-position: 50% 40%; }

/* O retrato foi tirado em luz do dia e a do palco no escuro; baixar a exposição
   iguala as duas antes do gradiente, que aí pode ser o mesmo nos dois cards */
.link--rev .link__bg { object-position: 50% 30%; filter: brightness(.62); }

.link__content { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.link__content small { font-size: 13px; color: var(--muted); }

/* Logos entram como título do card, normalizadas pela altura óptica */
.link__logo { display: block; width: auto; object-fit: contain; }
.link--ihub .link__logo { height: 26px; }
.link--rev .link__logo { height: 15px; filter: invert(1); }

.link__arrow { width: 20px; height: 20px; flex: none; margin-left: auto; color: rgba(255, 255, 255, .55); }

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.footer a { color: inherit; text-decoration: underline; }
.footer a:hover { color: #fff; }

@media (max-width: 420px) {
  :root { --pad: 16px; }
  .name { font-size: 28px; line-height: 34px; }
  .cta__label { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
