/* =========================================================
   VG.TRADER — Victor Gabriel
   Mobile-first · tokens no :root · sem dependências
   ========================================================= */

:root {
  --black: #050706;
  --neon: #00ff46;
  --neon-2: #39ff14;
  --deep: #102318;
  --white: #f2f5f2;
  --gray: #929c94;

  --glass: rgba(242, 245, 242, 0.06);
  --glass-strong: rgba(242, 245, 242, 0.1);
  --line: rgba(242, 245, 242, 0.12);
  --line-neon: rgba(0, 255, 70, 0.35);
  --glow: 0 0 24px rgba(0, 255, 70, 0.4);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 26px;
  --gutter: 16px;
  --shell: 480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  /* fundo fica no <html>; um background aqui cobriria as camadas .bg (z-index -1) */
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 10px;
}

.accent { color: var(--neon); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--neon);
  color: var(--black);
  font-weight: 700;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Ícones de linha */
.card__icon svg,
.cta__arrow svg,
.hero__ig svg,
.dock__btn svg,
.beam__orb svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Fundo ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* formas orgânicas com borda de luz (assets/img/bg-flow.svg) */
.bg__flow {
  position: absolute;
  inset: -4%;
  background: url("../img/bg-flow.svg") center / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}

/* ---------- Estrutura ---------- */

.shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
}

.page { padding: 0 var(--gutter); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 620px;
  height: 90svh;
  max-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* degradê de sumiço: a foto vai se apagando até desaparecer */
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.6) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0, 0, 0, 0.6) 72%, transparent 100%);
}
.hero__scene > * { position: absolute; }

.hero__layer,
.hero__layer img {
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__layer img {
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(1.04);
  animation: heroIn 1.6s var(--ease) forwards;
}

.hero__fade {
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(2, 4, 3, 0.55) 80%, rgba(2, 4, 3, 0.4) 100%);
}

.hero__id {
  padding: 0 var(--gutter) 6px;
  text-align: center;
}
.hero__name {
  font-size: clamp(2.2rem, 10vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.hero__user {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
}
.hero__user:hover { color: var(--neon); }

/* ---------- Bio ---------- */

.bio__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 0.86rem;
  color: rgba(242, 245, 242, 0.82);
}
.bio__list li { white-space: nowrap; }

/* ---------- Ícones redondos ---------- */

.icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(242, 245, 242, 0.08);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
}
.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn--ig {
  color: var(--black);
  background: linear-gradient(180deg, #5dff86, var(--neon));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 255, 70, 0.45);
}
.icon-btn:hover { transform: translateY(-2px) scale(1.06); box-shadow: var(--glow); }
.icon-btn.is-done { background: var(--neon); color: var(--black); }

/* ---------- Links (linhas com miniatura) ---------- */

.links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px 14px 12px 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 12, 0.9);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
/* fundo desfocado tirado da própria miniatura */
.link::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -2;
  background:
    var(--thumb, radial-gradient(circle at 20% 50%, rgba(0, 255, 70, 0.7), transparent 60%))
    left center / 55% auto no-repeat;
  filter: blur(34px) saturate(1.3);
  opacity: 0.55;
  transition: opacity 0.4s;
}
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 6, 0.15), rgba(5, 7, 6, 0.65) 55%, rgba(5, 7, 6, 0.85));
}
.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-neon);
  box-shadow: 0 20px 44px -24px rgba(0, 255, 70, 0.55);
}
.link:hover::before { opacity: 0.8; }
.link:active { transform: scale(0.99); }

.link__thumb {
  position: relative;
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}
.link__thumb picture,
.link__thumb img { width: 100%; height: 100%; object-fit: cover; }
.link__badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--neon);
  color: var(--black);
}
.link__badge svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link__badge svg { width: 15px; height: 15px; }
.link__badge--wa svg { fill: currentColor; stroke: none; }

.link__thumb--logo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 255, 70, 0.4), transparent 65%),
    linear-gradient(160deg, #0f3a19, #04100a);
  border: 1px solid var(--line-neon);
}
.link__thumb--logo picture { width: 72%; height: 72%; }
.link__thumb--logo img { width: 100%; height: 100%; object-fit: contain; }

.link__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.link__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}
.link__desc {
  font-size: 0.82rem;
  color: rgba(242, 245, 242, 0.65);
}

.link__go { flex: none; }
.link__go .cta__text {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 70, 0.4);
}

/* Destaque — Mentoria */
.link--featured {
  min-height: 120px;
  border-color: var(--line-neon);
  box-shadow: 0 0 0 1px rgba(0, 255, 70, 0.08), 0 18px 44px -26px rgba(0, 255, 70, 0.6);
}
.link--featured .link__thumb { width: 92px; height: 92px; border: 2px solid var(--neon); }
.link--featured .link__title { font-size: 1.12rem; }

/* Estado "em breve" (sem URL configurada) */
.link.is-soon { cursor: default; }
.link.is-soon:hover { transform: none; }
.link.is-soon .cta__text {
  color: var(--gray);
  background: transparent;
  border: 1px dashed rgba(146, 156, 148, 0.5);
  box-shadow: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Assinatura ---------- */

.signature {
  margin-top: 48px;
  padding: 28px var(--gutter) max(32px, env(safe-area-inset-bottom));
  text-align: center;
}
.signature__mark { width: 40px; margin: 0 auto 14px; }
.signature__line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.signature__line i { font-style: normal; color: var(--neon); padding: 0 4px; }
.signature__copy { margin-top: 10px; font-size: 0.78rem; color: var(--gray); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-neon);
  background: rgba(5, 7, 6, 0.92);
  font-family: var(--mono);
  font-size: 0.8rem;
  box-shadow: var(--glow);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animações ---------- */

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.8s var(--ease) var(--d, 0s), translate 0.8s var(--ease) var(--d, 0s), transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s, rotate 0.4s var(--ease);
}
.reveal.is-in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: 0 0; }

@keyframes heroIn { to { transform: none; } }
@keyframes drift { to { transform: translate3d(-1.5%, -2%, 0) scale(1.04); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes breathe { from { opacity: 0.45; } to { opacity: 0.7; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes orbit {
  from { transform: rotate(var(--a)) translateX(var(--rad)) rotate(calc(-1 * var(--a))); }
  to { transform: rotate(calc(var(--a) + 360deg)) translateX(var(--rad)) rotate(calc(-1 * var(--a) - 360deg)); }
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Tablet / Desktop ---------- */

@media (min-width: 640px) {
  :root { --shell: 540px; --gutter: 22px; }
}

@media (min-width: 1024px) {
  /* no desktop a página vira um "cartão" arredondado, como um app */
  .shell {
    margin: 28px auto;
    border-radius: 32px;
    border: 1px solid var(--line);
    background: rgba(2, 4, 3, 0.55);
    box-shadow: 0 40px 120px -40px rgba(0, 255, 70, 0.25);
    overflow: hidden;
  }
  .hero { height: 720px; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
}

/* Celular: o botão/selo do link desce para baixo do texto */
@media (max-width: 479px) {
  .link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "thumb body" "thumb go";
    align-content: center;
    column-gap: 14px;
    row-gap: 8px;
  }
  .link__thumb { grid-area: thumb; align-self: center; }
  .link__body { grid-area: body; }
  .link__go { grid-area: go; }
}
