/* 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 27px 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% 30%; 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: 24px; margin: 16px 0 18px; }
.socials__btn {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .82);
  transition: opacity .15s ease, transform .15s ease;
}
.socials__btn:hover { opacity: .6; transform: translateY(-1px); }
.socials__btn svg { width: 22px; height: 22px; }

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

.bio {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0 14px;
}

/* ---------- Preview de vídeo (facade do YouTube) ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #000;
  transition: transform .15s ease, border-color .15s ease;
}
.video-wrap:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.video__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Escurece a base para o título ler */
.video::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
  pointer-events: none;
}

/* Botão de play estilo YouTube */
.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 46px;
  border-radius: 12px;
  background: #ff0000;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background .15s ease;
}
.video-wrap:hover .video__play { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 2px; }

.video__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

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

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

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

/* Foto ao fundo de cada card, escurecida à esquerda para o texto branco ler */
.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) 42%, rgba(0, 0, 0, .5) 100%);
}
.link--com .link__bg { object-position: 50% 44%; filter: brightness(.72); }
.link--visionx .link__bg { object-position: 50% 50%; filter: brightness(.66); }
.link--livro .link__bg { object-position: 50% 24%; }

.link__content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.link__content small { font-size: 13px; color: var(--muted); }
.link__title { font-size: 18px; font-weight: 800; letter-spacing: .2px; line-height: 1.15; }

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

/* ---------- Rodapé ---------- */
.footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.footer__copy { color: rgba(255, 255, 255, .4); }

/* CTA de captação (WhatsApp da VisionX) — discreto */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .15s ease;
}
.footer__cta:hover { color: #fff; }
.footer__cta svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.footer__cta strong { color: rgba(255, 255, 255, .9); font-weight: 700; }

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

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