/* =====================================================================
   1. VARIÁVEIS — mexa só aqui para trocar cores, fontes e espaçamentos
   ===================================================================== */
:root {
  /* cores base */
  --bg:          #0b0714;
  --bg-2:        #150c24;
  --card:        #170f22;
  --card-2:      #1e1330;
  --border:      rgba(196, 181, 253, 0.14);

  /* acentos roxo-tech */
  --accent:      #8b5cf6;
  --accent-2:    #c4b5fd;
  --accent-pink: #e879f9;

  /* texto */
  --text:        #f5f3fb;
  --text-muted:  #a79fc0;

  /* tipografia */
  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  /* layout */
  --max-width: 480px;
  --radius:    16px;
  --radius-sm: 14px;
}

/* =====================================================================
   2. RESET
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* =====================================================================
   3. FUNDO
   ===================================================================== */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(139, 92, 246, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(232, 121, 249, 0.12) 0%, transparent 60%),
    var(--bg);
}

/* =====================================================================
   4. PÁGINA DE LINKS
   ===================================================================== */
.linkpage {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.8s ease both;
}

.linkpage__photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12), 0 0 30px rgba(139, 92, 246, 0.35);
  margin-bottom: 18px;
}

.linkpage__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  opacity: 0.8;
  margin-bottom: 6px;
}

.linkpage__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

/* terminal — elemento de assinatura */
.linkpage__terminal {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

.linkpage__terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

.linkpage__terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.linkpage__terminal-body {
  padding: 16px 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt { color: var(--text-muted); }
.line { color: var(--accent-2); }
#typed { color: var(--accent-pink); }

.cursor {
  display: inline-block;
  color: var(--accent-2);
  animation: blink 0.9s steps(1) infinite;
}

.linkpage__tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 34px;
}

/* =====================================================================
   5. PILHA DE LINKS (estilo Linktree)
   ===================================================================== */
.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 46px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.links-stack .link-item:nth-child(1) { animation-delay: 0.15s; }
.links-stack .link-item:nth-child(2) { animation-delay: 0.28s; }
.links-stack .link-item:nth-child(3) { animation-delay: 0.41s; }
.links-stack .link-item:nth-child(4) { animation-delay: 0.54s; }

.link-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  background: var(--card-2);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.22);
}

.link-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-2);
}

.link-item__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
  min-width: 0;
}

.link-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.link-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-item__arrow {
  flex-shrink: 0;
  color: var(--accent-2);
  font-family: var(--font-mono);
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.link-item:hover .link-item__arrow { transform: translateX(3px); }

.link-item--soon {
  cursor: default;
  border-style: dashed;
  opacity: 0.65;
  animation: fadeUp 0.6s ease forwards;
}
.link-item--soon:hover { transform: none; box-shadow: none; border-color: var(--border); background: var(--card); }
.link-item--soon .link-item__icon { color: var(--accent-pink); background: rgba(232, 121, 249, 0.12); }

/* =====================================================================
   6. ONDE ENSINO
   ===================================================================== */
.teaching {
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.65s;
}

.teaching__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.teaching__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.teaching__logos img {
  width: 68px;
  filter: grayscale(1) brightness(1.7);
  opacity: 0.85;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.teaching__logos img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: translateY(-3px);
}

.teaching__extra {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.teaching__extra span { opacity: 0.75; }

/* =====================================================================
   7. FOOTER
   ===================================================================== */
.footer {
  text-align: center;
  padding: 50px 20px 60px;
  color: var(--text-muted);
}
.footer__quote {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--accent-2);
  max-width: 460px;
  margin: 0 auto 14px;
}
.footer__credit { font-size: 0.82rem; }
.footer__credit a { color: var(--accent-2); border-bottom: 1px dotted var(--accent-2); }
.footer__credit a:hover { color: var(--text); }

/* =====================================================================
   8. ANIMAÇÕES
   ===================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* =====================================================================
   9. RESPONSIVO
   ===================================================================== */
@media (max-width: 420px) {
  .linkpage { padding: 48px 18px 30px; }
  .link-item__desc { max-width: 150px; }
}
