/* =========================================================
   Luma Trader — bio page
   Tema: neon roxo / preto, extraído da identidade das artes
   ========================================================= */

:root {
  --black:        #05010c;
  --black-2:      #0a0316;

  --violet-deep:  #4a0fb0;
  --violet:       #7c22ff;
  --violet-hi:    #a855ff;
  --magenta:      #e14bff;
  --lilac:        #d8b4ff;
  --lilac-soft:   #b79ed6;

  --edge:         rgba(168, 85, 255, .38);
  --glow-1:       0 0 22px rgba(124, 34, 255, .40);
  --glow-2:       0 0 48px rgba(168, 85, 255, .34), 0 0 96px rgba(225, 75, 255, .18);

  --shell:        clamp(320px, 92vw, 560px);
  --radius:       18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--black);
  color: var(--lilac-soft);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.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;
}

/* ---------------------------------------------------------
   Fundo ambiente: brilhos, velas de candle e grade
   --------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b0640 0%, #0b0219 45%, var(--black) 100%);
}

.bg__glow {
  position: absolute;
  left: 50%;
  width: min(140vw, 1100px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}

.bg__glow--top {
  top: -48vh;
  background: radial-gradient(circle, rgba(124, 34, 255, .85) 0%, rgba(74, 15, 176, .25) 45%, transparent 70%);
  animation: breathe 11s ease-in-out infinite;
}

.bg__glow--bottom {
  bottom: -55vh;
  background: radial-gradient(circle, rgba(225, 75, 255, .55) 0%, rgba(124, 34, 255, .18) 45%, transparent 70%);
  animation: breathe 14s ease-in-out infinite reverse;
}

/* velas de candlestick ao fundo, como nas artes */
.bg__candles {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: url('img/bg-candles.svg');
  background-repeat: repeat;
  background-size: 300px 460px;
  -webkit-mask-image: linear-gradient(to right,
    #000 0%, rgba(0, 0, 0, .35) 16%, transparent 30%,
    transparent 70%, rgba(0, 0, 0, .35) 84%, #000 100%);
  mask-image: linear-gradient(to right,
    #000 0%, rgba(0, 0, 0, .35) 16%, transparent 30%,
    transparent 70%, rgba(0, 0, 0, .35) 84%, #000 100%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  opacity: .10;
  background-image:
    linear-gradient(rgba(168, 85, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 255, .5) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 70% at 50% 40%, #000 0%, transparent 72%);
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 70% at 50% 45%, transparent 35%, rgba(0, 0, 0, .78) 100%);
}

@keyframes breathe {
  0%, 100% { opacity: .42; transform: translateX(-50%) scale(1); }
  50%      { opacity: .68; transform: translateX(-50%) scale(1.10); }
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(20px, 5vw, 44px) 0 36px;
}

/* ---------------------------------------------------------
   Hero + cards: uma peca continua, sem moldura nem fundo
   --------------------------------------------------------- */

.hero,
.card {
  display: block;
  width: 100%;
}

.hero img,
.card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  animation: rise .8s cubic-bezier(.2, .7, .3, 1) both;
}

/* No mobile o banner sangra de ponta a ponta: a margem negativa cancela
   a calha lateral da .page, sem depender de 100vw (que contaria a barra
   de rolagem). O padding do topo tambem sai, para encostar na borda. */
@media (max-width: 767px) {
  .page {
    padding-top: 0;
  }

  .hero {
    width: auto;
    margin-inline: calc(50% - 50vw);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.links {
  display: block;
  width: 100%;
}

.card {
  position: relative;
  overflow: hidden;

  /* transform composto: a entrada usa --reveal-y, o hover usa --lift/--scale,
     assim os dois efeitos nao brigam por especificidade */
  --reveal-y: 0px;
  --lift: 0px;
  --scale: 1;
  transform: translateY(calc(var(--reveal-y) + var(--lift))) scale(var(--scale));

  transition:
    opacity .5s ease,
    transform .38s cubic-bezier(.2, .7, .3, 1),
    filter .3s ease;
}

/* estado inicial da entrada - so com JS, senao os cards ficariam invisiveis.
   O escalonamento e feito no JS, para nao atrasar a transicao do hover. */
.js .card:not(.is-in) {
  opacity: 0;
  --reveal-y: 20px;
}

/* brilho que atravessa a arte no hover */
.card__shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 255, 255, .06) 35%,
    rgba(240, 210, 255, .30) 50%,
    rgba(255, 255, 255, .06) 65%,
    transparent 100%);
  transform: skewX(-18deg);
}

/* sem borda nem sombra: o feedback vem do proprio neon da arte */
.card:hover,
.card:focus-visible {
  --lift: -3px;
  --scale: 1.02;
  filter: brightness(1.18) saturate(1.1);
  z-index: 2;
}

.card:active {
  --lift: 0px;
  --scale: .995;
}

.card:hover .card__shine,
.card:focus-visible .card__shine {
  animation: sweep .85s ease-out;
}

@keyframes sweep {
  from { left: -60%; }
  to   { left: 115%; }
}

/* ---------------------------------------------------------
   Rodapé
   --------------------------------------------------------- */

.foot {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: clamp(22px, 5vw, 32px);
}

.foot__risk {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(183, 158, 214, .62);
  max-width: 44ch;
  margin-inline: auto;
}

.foot__sign {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(183, 158, 214, .45);
}

/* ---------------------------------------------------------
   Acessibilidade
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .card { opacity: 1; --reveal-y: 0px; }
}
