@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08080a;
  --graphite: #17171b;
  --text: #f6f4ef;
  --text-dim: rgba(246, 244, 239, 0.68);
  --gold: #d8b673;
  --gold-soft: #f1dba8;
  --gold-deep: #a8803c;
  --green: #3fd37f;
  --stage-w: 480px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Fundo ---------- */

/* Fora da coluna (telas largas): a mesma foto, desfocada e escurecida. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--ink) url("assets/leo-bg.webp") center / cover no-repeat;
  filter: blur(46px) brightness(0.32) saturate(1.1);
  transform: scale(1.15);
}

/* Foto nítida, no tamanho da coluna do celular. */
.bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--stage-w));
  transform: translateX(-50%);
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}

.bg img {
  display: block;
  width: 100%;
  height: 84vh;
  height: 84svh;
  min-height: 560px;
  object-fit: cover;
  object-position: 36% 0;
  animation: bg-in 1.1s var(--ease) both;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0) 14%),
    linear-gradient(180deg, rgba(8, 8, 10, 0) 38%, rgba(8, 8, 10, 0.72) 58%, var(--ink) 84%, var(--ink) 100%);
}

@keyframes bg-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Coluna ---------- */

.stage {
  position: relative;
  width: min(100%, var(--stage-w));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    0
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

/* Espaço para o rosto aparecer na foto de fundo. */
.stage::before {
  content: "";
  flex: 0 0 clamp(200px, 41svh, 380px);
}

/* ---------- Cabeçalho ---------- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.avatar {
  width: 96px;
  height: 96px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(241, 219, 168, 0.95), rgba(255, 255, 255, 0.35) 45%, rgba(168, 128, 60, 0.8));
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 10px 34px rgba(216, 182, 115, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.55);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.profile h1 {
  margin: 16px 0 2px;
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.profile p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-dim);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- Cartões de vidro ---------- */

.links {
  display: grid;
  gap: 14px;
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Brilho que acompanha o ponteiro. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.card__icon svg { width: 28px; height: 28px; fill: currentColor; }

.card__body { flex: 1; min-width: 0; }

.card__title {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card__desc {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.35;
}

.card__go {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* WhatsApp: verde discreto */
.card--whatsapp {
  background:
    linear-gradient(135deg, rgba(63, 211, 127, 0.2), rgba(63, 211, 127, 0.05) 62%, rgba(255, 255, 255, 0.06));
  border-color: rgba(63, 211, 127, 0.3);
}
.card--whatsapp .card__icon {
  color: #fff;
  background: linear-gradient(160deg, #3fd37f, #1ea85a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(30, 168, 90, 0.35);
}

/* SenseiBet: preto e dourado */
.card--sensei {
  background:
    linear-gradient(135deg, rgba(216, 182, 115, 0.16), rgba(10, 10, 12, 0.55) 55%, rgba(216, 182, 115, 0.07));
  border-color: rgba(216, 182, 115, 0.42);
}
.card--sensei .card__icon {
  color: var(--gold-soft);
  background: linear-gradient(160deg, #1b1b20, #08080a);
  border: 1px solid rgba(216, 182, 115, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.card--sensei .card__icon span {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card--sensei .card__title { color: var(--gold-soft); }

.tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 8px;
  border: 1px solid rgba(216, 182, 115, 0.55);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold);
}

@media (hover: hover) {
  .card:not(.is-disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08),
      0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .card:not(.is-disabled):hover::before { opacity: 1; }
  .card:not(.is-disabled):hover .card__go { transform: translateX(3px); opacity: 1; }
  .card--sensei:not(.is-disabled):hover { border-color: rgba(241, 219, 168, 0.7); }
  .card--whatsapp:not(.is-disabled):hover { border-color: rgba(63, 211, 127, 0.55); }
}

/* Toque */
.card:not(.is-disabled):active {
  transform: scale(0.972);
  transition-duration: 0.12s;
}
.card:not(.is-disabled):active::before { opacity: 1; }

/* Indisponível */
.card.is-disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.12);
}
.card.is-disabled .card__icon { opacity: 0.6; }
.card.is-disabled .card__title,
.card.is-disabled .card__desc { opacity: 0.72; }
.card.is-disabled .card__go { display: none; }

.card__warn {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 182, 115, 0.3);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--gold-soft);
}

.card__soon {
  display: none;
  margin-top: 9px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}
.card.is-disabled .card__soon { display: inline-block; }

/* ---------- Redes sociais ---------- */

.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.social .card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 13px;
  border-radius: 22px;
}

.social__top { display: flex; align-items: center; gap: 10px; width: 100%; }
.social__top svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social__name { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.social__role { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-dim); }

/* ---------- Rodapé ---------- */

.footer {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(246, 244, 239, 0.62);
}

.footer__rg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
}

.badge18 {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.footer p { margin: 0 auto; max-width: 34ch; }
.footer .footer__warn { margin-bottom: 8px; color: var(--text); font-weight: 650; }

/* ---------- Aviso (toast) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Entrada: uma única sequência ---------- */

.rise {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.09s);
}
.profile.rise { --i: 0; }
.links .rise:nth-child(1) { --i: 2; }
.links .rise:nth-child(2) { --i: 3; }
.social.rise { --i: 4; }
.footer.rise { --i: 5; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Telas largas ---------- */

@media (min-width: 560px) {
  .stage { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
  .bg { box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07); }
}

@media (max-height: 600px) {
  .stage::before { flex-basis: 170px; }
}

@media (max-width: 340px) {
  .social { grid-template-columns: 1fr; }
  .profile h1 { font-size: 1.6rem; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:not(.is-disabled):hover,
  .card:not(.is-disabled):active { transform: none; }
}

@media (prefers-contrast: more) {
  .card { background: rgba(10, 10, 12, 0.82); border-color: rgba(255, 255, 255, 0.5); }
}
