:root {
  --bg-dark: #09090b;
  --bg-card: #111116;
  --bg-node: #16161d;
  --purple-primary: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.28);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --border-subtle: #27272a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SPLASH SCREEN DE BOAS-VINDAS */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: #070709;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

.splash-screen.oculto {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.splash-box {
  width: 100%;
  max-width: 520px;
  background: #111116;
  border: 1px solid #2e2e3a;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.25);
}

.splash-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.splash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.splash-dots span:nth-child(1) { background: #ef4444; }
.splash-dots span:nth-child(2) { background: #f59e0b; }
.splash-dots span:nth-child(3) { background: #10b981; }

.splash-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #10b981;
  margin-bottom: 10px;
}

.splash-titulo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: #f4f4f5;
  min-height: 34px;
  margin-bottom: 18px;
}

.splash-titulo::after {
  content: '▋';
  color: var(--purple-primary);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.splash-bar {
  width: 100%;
  height: 4px;
  background: #1f1f27;
  border-radius: 4px;
  overflow: hidden;
}

.splash-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-primary), #10b981);
  animation: loadProgress 1.9s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* HERO SECTION (2 COLUNAS) */
.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.badge-online {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--purple-primary);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 8px;
}

.foco-atual {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e4e4e7;
  margin-top: 6px;
}

.bio {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* SELOS DE CONTEXTO */
.context-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.context-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: #14141b;
  color: #d4d4d8;
  border: 1px solid #27272a;
  padding: 5px 11px;
  border-radius: 8px;
}

/* BOTÕES SOCIAIS E AÇÃO */
.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-social.linkedin {
  background: rgba(10, 102, 194, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-social.linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.35);
}

.btn-social.whatsapp {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-social.whatsapp:hover {
  background: #10b981;
  color: #09090b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-explorar {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  text-decoration: none;
  transition: 0.2s;
}

.btn-explorar:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

/* FOTO DE PERFIL COM MOLDURA NEON */
.hero-foto-wrapper {
  display: flex;
  justify-content: center;
}

.foto-moldura {
  position: relative;
  width: 280px;
  padding: 10px;
  background: linear-gradient(145deg, #1b1b24, #101015);
  border: 1.5px solid var(--purple-primary);
  border-radius: 22px;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
}

.foto-perfil {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.foto-status-card {
  margin-top: 10px;
  background: #0d0d12;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #d4d4d8;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* SEÇÕES */
.secao {
  padding: 56px 0;
}

.secao-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.secao-header h2 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.secao-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* LEGENDA DA TECH TREE */
.legenda-tree {
  display: flex;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-mastered {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--purple-primary);
  box-shadow: 0 0 8px var(--purple-primary);
}

.dot-roadmap {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px dashed #71717a;
}

/* PAINEL INSPETOR */
.inspetor-panel {
  background: linear-gradient(135deg, #13131a 0%, #0d0d12 100%);
  border: 1px solid var(--purple-primary);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 32px;
  box-shadow: 0 0 30px var(--purple-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.inspetor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.inspetor-cat {
  color: #c4b5fd;
  font-weight: 700;
}

.inspetor-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.inspetor-badge.concluido {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.inspetor-badge.roadmap {
  background: rgba(139, 92, 246, 0.12);
  color: #a1a1aa;
  border: 1px dashed #52525b;
}

.inspetor-info h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.inspetor-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.inspetor-logo-box {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 14px;
  background: #181820;
  border: 1px solid #2e2e3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspetor-logo-box img,
.inspetor-logo-box svg {
  width: 34px;
  height: 34px;
}

/* TECH TREE CONTAINER */
.tech-tree-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.tree-track {
  background: rgba(17, 17, 22, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.tree-track-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tree-track-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e4e4e7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tree-track-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #3f3f46, transparent);
}

.tree-nodes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.tree-node {
  position: relative;
  flex: 1 1 175px;
  max-width: 220px;
  background: var(--bg-node);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.tree-node.mastered {
  border: 1.5px solid var(--cor-node, var(--purple-primary));
  box-shadow: 0 0 18px color-mix(in srgb, var(--cor-node, #8b5cf6) 28%, transparent);
}

.tree-node.roadmap {
  border: 1.5px dashed #3f3f46;
  opacity: 0.78;
}

.tree-node:hover,
.tree-node.selecionado {
  opacity: 1;
  transform: translateY(-3px);
  border-color: var(--cor-node, var(--purple-primary));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 14px color-mix(in srgb, var(--cor-node, #8b5cf6) 35%, transparent);
}

.node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1f1f29;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-icon img,
.node-icon svg {
  width: 20px;
  height: 20px;
}

.tree-node.roadmap .node-icon img {
  filter: grayscale(40%) brightness(0.9);
}

.tree-node:hover .node-icon img,
.tree-node.selecionado .node-icon img {
  filter: none;
}

.node-status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.tree-node.mastered .node-status-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tree-node.roadmap .node-status-tag {
  background: #1f1f27;
  color: #71717a;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

/* TIMELINE */
/* TIMELINE */
.filtros {
  display: flex;
  gap: 8px;
}

.filtro-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.filtro-btn.active,
.filtro-btn:hover {
  border-color: var(--purple-primary);
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
}

.timeline {
  border-left: 2px solid #2e2e3a;
  margin-left: 12px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-card:hover {
  border-color: #3f3f46;
  transform: translateX(3px);
}

/* Bolinha da linha do tempo muda de cor conforme o status */
.timeline-card::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-primary);
  box-shadow: 0 0 10px var(--purple-primary);
}

.timeline-card.status-concluido::before {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.badge-tipo {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.badge-status {
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-status.concluido {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-status.em_andamento {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.timeline-periodo {
  color: #a1a1aa;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: #1c1c24;
  color: #d4d4d8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #2e2e3a;
}

.filtro-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.filtro-btn.active,
.filtro-btn:hover {
  border-color: var(--purple-primary);
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
}

.timeline {
  border-left: 2px solid var(--purple-primary);
  margin-left: 12px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-primary);
  box-shadow: 0 0 10px var(--purple-primary);
}

.timeline-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.badge-tipo {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  background: #1c1c24;
  color: #d4d4d8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #2e2e3a;
}

footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .context-pills,
  .hero-acoes {
    justify-content: center;
  }
  .hero-foto-wrapper {
    order: -1;
  }
  .foto-moldura {
    width: 220px;
  }
  .foto-perfil {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  .inspetor-panel {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .tree-node {
    max-width: 100%;
  }
}