/* ==========================================================
   Arlaine Braga · Notion Mindset — link-in-bio
   Paleta do canal: altere aqui para mudar a página inteira.
   ========================================================== */
:root {
  /* Fundos */
  --bg: rgb(18 18 18);
  --card: rgb(28 28 28);
  --btn: rgb(42 42 42);
  --line: rgb(58 58 58);

  /* Texto */
  --text: rgb(255 255 255);
  --text-2: rgb(200 200 200);
  --text-3: rgb(150 150 150);

  /* Roxo */
  --purple: rgb(145 95 215);
  --purple-hover: rgb(165 120 235);
  --purple-light: rgb(195 165 245);
  --purple-dark: rgb(65 40 85);
  --on-purple: rgb(255 255 255);

  /* Tipografia */
  /* fonte "Default" do Notion (pilha do sistema) */
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--purple); color: var(--on-purple); }

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

/* ---------- Fundo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* grid de pontos estilo "bloco do Notion" */
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .5) 45%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .5) 45%, transparent 85%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.glow--a {
  width: 520px; height: 520px;
  left: 50%; top: -260px;
  transform: translateX(-70%);
  background: var(--purple-dark);
  opacity: .9;
}
.glow--b {
  width: 340px; height: 340px;
  left: 50%; top: -120px;
  transform: translateX(10%);
  background: var(--purple);
  opacity: .28;
  animation: drift 14s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  to { transform: translate(-20%, 40px) scale(1.15); }
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 640px) {
  .page { padding-top: 88px; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise .8s var(--ease) both;
}

.avatar {
  --size: 128px;
  width: var(--size);
  height: var(--size);
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--purple-light), var(--purple), var(--purple-dark), var(--purple), var(--purple-light));
  box-shadow: 0 0 0 6px rgb(145 95 215 / .12), 0 18px 50px -12px rgb(145 95 215 / .55);
}

.avatar__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  border: 3px solid var(--bg);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  /* foto em paisagem: zoom para enquadrar o rosto */
  transform: scale(2.1);
  transform-origin: 50% 36%;
}

.avatar__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--purple-light);
  background: radial-gradient(circle at 30% 25%, var(--purple-dark), var(--card) 70%);
}

.avatar.is-fallback img { display: none; }
.avatar.is-fallback .avatar__fallback { display: grid; }

.name {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 6.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
}
.name__person,
.name__brand { white-space: nowrap; }
.name__sep {
  margin-left: .3em;
  font-weight: 300;
  color: var(--text);
}
.name__brand { color: var(--purple-light); }

.bio {
  margin: 0;
  max-width: 100%;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: balance;
}
.bio__tag {
  color: var(--purple-light);
  font-weight: 500;
}

/* ---------- Cards ---------- */
.links {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card,
.card-row {
  animation: rise .7s var(--ease) both;
  animation-delay: calc(.15s + var(--i, 0) * .09s);
}
.card-row .card { animation: none; }

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .3s, background-color .3s, box-shadow .35s var(--ease);
}

/* luz que segue o cursor */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgb(145 95 215 / .22), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgb(145 95 215 / .55);
  background-color: rgb(32 28 38);
  box-shadow: 0 14px 36px -18px rgb(145 95 215 / .6);
}
.card:hover::before { opacity: 1; }
.card:active { transform: translateY(0) scale(.99); }

.card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--btn);
  color: var(--purple-light);
  border: 1px solid var(--line);
  transition: background-color .3s, color .3s;
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { background: var(--purple-dark); }

.card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-3);
  transition: transform .35s var(--ease), color .3s, background-color .3s;
}
.card__arrow svg { width: 18px; height: 18px; }
.card:hover .card__arrow {
  color: var(--purple-light);
  background: rgb(145 95 215 / .14);
  transform: translate(2px, -2px);
}

/* Card de destaque — YouTube */
.card--feature {
  min-height: 68px;
  padding: 12px 12px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--purple-hover) 0%, transparent 55%),
    linear-gradient(135deg, var(--purple) 0%, rgb(110 70 170) 60%, var(--purple-dark) 130%);
  border-color: rgb(195 165 245 / .35);
  color: var(--on-purple);
  box-shadow: 0 20px 44px -22px rgb(145 95 215 / .9), inset 0 1px 0 rgb(255 255 255 / .18);
}
.card--feature::before {
  background: radial-gradient(240px circle at var(--mx) var(--my), rgb(255 255 255 / .18), transparent 70%);
}
.card--feature:hover {
  background-color: transparent;
  border-color: rgb(195 165 245 / .7);
  box-shadow: 0 24px 50px -20px rgb(165 120 235 / .95), inset 0 1px 0 rgb(255 255 255 / .22);
}
.card--feature .card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(255 255 255 / .16);
  border-color: rgb(255 255 255 / .22);
  color: var(--on-purple);
}
.card--feature .card__icon svg { width: 24px; height: 24px; }
.card--feature:hover .card__icon { background: rgb(255 255 255 / .24); }
.card--feature .card__title { font-size: 17px; }
.card--feature .card__arrow {
  color: var(--on-purple);
  background: rgb(255 255 255 / .14);
}
.card--feature:hover .card__arrow {
  color: var(--on-purple);
  background: rgb(255 255 255 / .26);
}
.card--feature:focus-visible { outline-color: var(--text); }
/* Contato + copiar */
.card-row {
  display: flex;
  gap: 10px;
}
.card-row .card { flex: 1; min-width: 0; }

.copy {
  flex: none;
  width: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--btn);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .3s, border-color .3s, background-color .3s, transform .2s var(--ease);
}
.copy svg { width: 20px; height: 20px; }
.copy:hover {
  color: var(--purple-light);
  border-color: rgb(145 95 215 / .55);
  background: var(--purple-dark);
}
.copy:active { transform: scale(.95); }

/* ---------- Ícones sociais ---------- */
.socials {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  animation: rise .7s var(--ease) both;
  animation-delay: calc(.15s + var(--i, 0) * .09s);
}
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: color .3s, background-color .3s, border-color .3s, transform .35s var(--ease);
}
.socials svg { width: 20px; height: 20px; }
.socials a:hover {
  color: var(--on-purple);
  background: var(--purple);
  border-color: var(--purple-hover);
  transform: translateY(-3px);
}

/* ---------- Rodapé ---------- */
.footer {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: .02em;
}
.footer .dot { color: var(--purple); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--on-purple);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast:empty { display: none; }

/* ---------- Animações ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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