/* Adicionando a fonte Ubuntu para os títulos Hero */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap');



/* =========================================
   FONTES LOCAIS
   ========================================= */
@font-face {
  font-family: 'QB One';
  src: url('../local-assets/qb-one-semi-bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Sora Local';
  src: url('../local-assets/Sora.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Classes utilitárias */
.font-qb {
  font-family: 'QB One', sans-serif !important;
}

.font-sora {
  font-family: 'Sora Local', sans-serif !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  background-color: #050505;
  color: #ededed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

:root {
  --neon: #00ff41;
  --bg: #050505;
  --bg-alt: #070707;
  --text: #ededed;
  --muted: #8a8a8a;
  --line: #1f1f1f;
  --card: #0a0a0a;
}

.grain-overlay {
  position: relative;
}

.grain-overlay::before {
  content: "";
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
}

.scanlines {
  position: relative;
}

.scanlines::after {
  content: "";
  background: repeating-linear-gradient(180deg,
      rgba(0, 255, 65, 0.03) 0px,
      rgba(0, 255, 65, 0.03) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.neon-text {
  color: var(--neon);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.6), 0 0 20px rgba(0, 255, 65, 0.25);
  margin-left: -2px;
  margin-right: -2px;
}

.neon-glow {
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.35),
    0 0 20px rgba(0, 255, 65, 0.15),
    inset 0 0 8px rgba(0, 255, 65, 0.08);
}

@keyframes caret-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.caret-blink {
  animation: caret-blink 1s step-end infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee-scroll 32s linear infinite;
}

@keyframes bounce-arrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.bounce-arrow {
  animation: bounce-arrow 1.8s ease-in-out infinite;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo .neon-bar {
  display: inline-block;
  width: 0.5rem;
  height: 3px;
  background: var(--neon);
  border-radius: 9999px;
  transform: translateY(4px);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active {
  color: var(--neon);
}

.nav-link .underline {
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--neon);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link.active .underline {
  opacity: 1;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  color: var(--text);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover,
.mobile-menu-overlay a.active {
  color: var(--neon);
}

.hero-section {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

.hero-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}


/* =========================================
   HERO MOTTO: [ break \\ learn \\ share ]
   ========================================= */
.hero-motto {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  margin-left: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Espaço entre as palavras */
}

.hero-motto .motto-bracket {
  color: var(--muted);
  /* Deixa os colchetes cinzas para dar contraste */
  font-weight: 700;
}

/* Espaçamento extra opcional nas barras neon para respirar melhor */
.hero-motto .neon-text {
  margin: 0 0.2rem;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(5, 5, 5, 0.3) 0%,
      transparent 50%,
      rgba(5, 5, 5, 1) 100%);
  opacity: 0;
  animation: fade-in 2s ease-in-out forwards;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  opacity: 0;
  animation: fade-in 1.2s ease-out forwards;
}

.hero-status {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.hero-status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neon);
}

/* Aplicando a fonte Ubuntu nos títulos Hero */
.hero-title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.2em;
  user-select: none;
  position: relative;
  pointer-events: none;
}

/* =========================================
   AJUSTES DE TAMANHO: #_4root
   ========================================= */

.text-4 {
  font-size: 1em;
  margin-right: 0.1em;
  display: inline-block;
  transform: translateY(0.05em);
}

.text-root {
  font-size: 0.8em;
}

.text-underscore {
  display: inline-block;
  transform: scaleX(0.65);
  transform-origin: bottom right;
  margin-left: -0.3em;
}

.text-hash {
  font-size: 0.85em;
}

.hero-title.glitch {
  position: relative;
  animation: glitch-skew 8s steps(1) infinite;
}

.hero-title.glitch .line-inner,
.hero-title.glitch .line2-inner {
  position: relative;
  font-family: 'Ubuntu', sans-serif;
}

.hero-title.glitch .line-inner::before,
.hero-title.glitch .line-inner::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  font-family: 'Ubuntu', sans-serif;
}

.hero-title.glitch .line2-inner::before,
.hero-title.glitch .line2-inner::after {
  content: '#_4root';
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  font-family: 'QB One', sans-serif;
  /* Fonte corrigida no glitch */
  display: block;
  /* Remove o display: flex e o gap que causavam a separação */
}

.hero-title.glitch .line2-inner::before,
.hero-title.glitch .line2-inner::after {
  content: '#_4root';
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-title.glitch .line-inner::before,
.hero-title.glitch .line2-inner::before {
  color: #ff0040;
  z-index: -1;
  animation: glitch-before 8s steps(2, end) infinite;
}

.hero-title.glitch .line-inner::after,
.hero-title.glitch .line2-inner::after {
  color: #00e5ff;
  z-index: -1;
  animation: glitch-after 8s steps(2, end) infinite;
}

@keyframes glitch-before {

  0%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  5% {
    clip-path: inset(20% 0 40% 0);
    transform: translate(-3px, -1px);
  }

  5.5% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(2px, 1px);
  }

  6%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  30% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  31% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(-2px, 0);
  }

  32% {
    clip-path: inset(70% 0 5% 0);
    transform: translate(3px, 1px);
  }

  33%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  55% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  56% {
    clip-path: inset(40% 0 30% 0);
    transform: translate(-4px, -1px);
  }

  56.5% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  80% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  81% {
    clip-path: inset(15% 0 50% 0);
    transform: translate(2px, 0);
  }

  81.5% {
    clip-path: inset(65% 0 15% 0);
    transform: translate(-3px, 1px);
  }

  82%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }
}

@keyframes glitch-after {

  0%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  7% {
    clip-path: inset(55% 0 15% 0);
    transform: translate(3px, 1px);
  }

  7.5% {
    clip-path: inset(5% 0 70% 0);
    transform: translate(-2px, -1px);
  }

  8%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  33% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  34% {
    clip-path: inset(75% 0 5% 0);
    transform: translate(2px, 0);
  }

  35% {
    clip-path: inset(20% 0 55% 0);
    transform: translate(-3px, 1px);
  }

  36%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  58% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  59% {
    clip-path: inset(45% 0 25% 0);
    transform: translate(4px, -1px);
  }

  59.5% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  83% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  84% {
    clip-path: inset(60% 0 10% 0);
    transform: translate(-2px, 1px);
  }

  84.5% {
    clip-path: inset(10% 0 65% 0);
    transform: translate(3px, 0);
  }

  85%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }
}

@keyframes glitch-skew {

  0%,
  100% {
    transform: skew(0deg);
  }

  5% {
    transform: skew(0.8deg);
  }

  6% {
    transform: skew(-0.4deg);
  }

  7%,
  30% {
    transform: skew(0deg);
  }

  33% {
    transform: skew(0.5deg);
  }

  34% {
    transform: skew(-0.6deg);
  }

  35%,
  55% {
    transform: skew(0deg);
  }

  58% {
    transform: skew(1deg);
  }

  59% {
    transform: skew(-0.3deg);
  }

  60%,
  80% {
    transform: skew(0deg);
  }

  83% {
    transform: skew(0.7deg);
  }

  84% {
    transform: skew(-0.5deg);
  }

  85%,
  100% {
    transform: skew(0deg);
  }
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  font-size: 3.75rem;
  font-family: 'QB One', sans-serif;
  /* Alterado de Ubuntu */
}

.hero-title .line2-inner {
  display: flex;
  align-items: baseline;
  font-size: 3.75rem;
  pointer-events: none;
  font-family: 'QB One', sans-serif;

  /* NOVAS REGRAS PARA CONTER O OVERLAY */
  position: relative;
  /* Define este contêiner como a âncora para o .dust-overlay absoluto */
  width: max-content;
  /* Força a caixa a encolher e ter a exata largura da palavra #_4root */
}

.hero-subtitle-wrap {
  position: relative;
  margin-top: 2.5rem;
  max-width: 42rem;
}

.hero-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.hero-proximity-text {
  pointer-events: none;
  position: absolute;
  inset: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--neon);
  -webkit-mask-image: radial-gradient(circle 130px at var(--mask-x, -200px) var(--mask-y, -200px), #000 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(circle 130px at var(--mask-x, -200px) var(--mask-y, -200px), #000 0%, #000 40%, transparent 75%);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.7);

  /* NOVO: O texto neon começa transparente e tem uma transição suave de 0.4s */
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* NOVO: Quando o mouse entra no container, o texto neon faz o fade in */
.hero-subtitle-wrap:hover .hero-proximity-text {
  opacity: 1;
}

.hero-ctas {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fade-in 1s ease-out 1s forwards;
}

.cta-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  background: var(--neon);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #000;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.cta-primary:hover {
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
}

.text-glitch {
  position: relative;
  display: inline-block;
  animation: glitch-skew 8s steps(1) infinite;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.text-glitch::before {
  color: #ff0040;
  z-index: -1;
  animation: glitch-before 8s steps(2, end) infinite;
}

.text-glitch::after {
  color: #00e5ff;
  z-index: -1;
  animation: glitch-after 8s steps(2, end) infinite;
}


.cta-primary.glitch {
  animation: glitch-skew 8s steps(1) infinite;
}

.cta-primary.glitch::before,
.cta-primary.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--neon);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cta-primary.glitch::before {
  text-shadow: 2px 0 #ff0040;
  z-index: 1;
  animation: glitch-before 8s steps(2, end) infinite;
}

.cta-primary.glitch::after {
  text-shadow: -2px 0 #00e5ff;
  z-index: 2;
  animation: glitch-after 8s steps(2, end) infinite;
}

.cta-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cta-secondary:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--muted);
  transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
  color: var(--neon);
}

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 0.75rem 0;
}

.marquee-track {
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon);
  padding: 0 1.5rem;
}

.marquee-divider {
  color: var(--line);
  padding: 0 0.5rem;
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 7rem 0;
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-label .label-bar {
  width: 2rem;
  height: 1px;
  background: var(--neon);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 36rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.comunidade-section {
  background: var(--bg);
}

.manifesto-grid {
  display: grid;
  gap: 1px;
  margin-top: 3.5rem;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--line);
}

.manifesto-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  transition: background-color 0.5s ease;
  overflow: hidden;
}

.manifesto-card:hover {
  background-color: #0d0d0d;
}

.manifesto-card .neon-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon);
  transition: width 0.5s ease;
}

.manifesto-card:hover .neon-bottom-line {
  width: 100%;
}

.manifesto-number {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.75rem;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(0, 255, 65, 0.15);
  color: transparent;
  line-height: 1;
  transition: all 0.3s ease;
}

.manifesto-card:hover .manifesto-number {
  -webkit-text-stroke-color: rgba(10, 213, 61, 0.8);
  filter: drop-shadow(0 0 8px rgba(10, 213, 61, 0.5));
}

.manifesto-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
}

.manifesto-title .arrow {
  color: var(--neon);
  margin-right: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.manifesto-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
  position: relative;
  max-width: 28rem;
}

.members-label {
  margin-top: 5rem;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.member-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7) contrast(1.2);
  transition: transform .5s ease, filter .5s ease;
}

.member-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(0.7) contrast(1.2);
}

.member-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 5, 0.4) 50%, transparent 100%);
}

.member-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

.member-card .handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--neon);
}

.member-card .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.desafios-section {
  background: var(--bg-alt);
}

.challenges-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.challenge-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: border-color 1.6s ease, box-shadow 0.6s ease;
}

.challenge-card:hover {
  border-color: rgba(10, 213, 61, 0.287);
  box-shadow:
    0 0 8px rgba(10, 213, 61, 0.264),
    0 0 20px rgba(10, 213, 61, 0.104),
    0 0 40px rgba(10, 213, 61, 0.2);
}

.challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.challenge-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.challenge-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid;
}

.level-facil {
  color: var(--neon);
  border-color: rgba(0, 255, 65, 0.4);
}

.level-medio {
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.4);
}

.level-root {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.challenge-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.challenge-card:hover .challenge-title {
  color: rgba(0, 255, 64, 0.704);
}

.challenge-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.challenge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.challenge-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.challenge-pts {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--neon);
}

.challenge-pts svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desafios-cta {
  margin-top: 3rem;
}

.desafios-cta a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s ease;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.desafios-cta a:hover {
  color: var(--neon);
  border-color: var(--neon);
}

.recursos-section {
  background: var(--bg);
}

.tools-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

/* --- Tool Card com fundo verde inicial --- */
.tool-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 2px;
  background: rgba(0, 255, 65, 0.04);
  /* Fundo verde bem sutil logo de início */
  transition: all 0.4s ease;
  display: block;
  overflow: hidden;
}

/* Imagem de fundo em Preto e Branco inicialmente */
.tool-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.25) contrast(1.2);
  opacity: 0.2;
  /* Visível de fundo em P&B */
  transition: all 0.4s ease;
  z-index: 1;
}

/* Garante que o conteúdo fique acima da imagem de fundo */
.tool-content {
  position: relative;
  z-index: 2;
}

/* Estado de Hover: O verde intensifica e a logo ganha a cor/tom do tema */
.tool-card:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 64, 0.895);
  /* Fundo verde mais forte no hover */
}

.tool-card:hover .tool-bg-img {
  filter: grayscale(0%) brightness(0.4) sepia(100%) hue-rotate(60deg) saturate(300%);
  /* Transforma para o tom verde neon do tema */
  opacity: 0.35;
  /* Fica um pouco mais aparente no hover */
}



.tool-card:hover .tool-tag {
  color: #000;
}


.tool-card:hover .tool-name {
  color: #000;
}

.tool-card:hover .tool-arrow path,
.tool-card:hover .tool-arrow line {
  stroke: #000;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.tool-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.3s ease;
}

.tool-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.contato-section {
  background: var(--bg-alt);
  padding-top: 7rem;
}

.socials-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  transition: border-color 0.3s ease;
}

.social-card:hover {
  border-color: rgba(0, 255, 65, 0.2);
}

.social-card .social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card .social-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.social-card:hover .social-icon svg {
  stroke: var(--neon);
}

.social-card .social-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.social-card .social-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-giant {
  position: relative;
  margin-top: 6rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-giant-text {
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
  font-size: clamp(3rem, 18vw, 20rem);
  display: flex;
  align-items: baseline;
}

.footer-giant-text .underscore {
  display: inline-block;
  height: 0.09em;
  width: 0.32em;
  background: var(--neon);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-copyright {
  color: var(--muted);
}

.footer-motto {
  color: var(--text);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 1rem 2.5rem;
  }

  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    padding: 0 2.5rem;
  }

  .section {
    padding: 9rem 0;
  }

  .section-inner {
    padding: 0 2.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .manifesto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifesto-card {
    padding: 3rem;
  }

  .manifesto-number {
    font-size: 6rem;
    right: 2rem;
    top: 1.5rem;
  }

  .manifesto-title {
    font-size: 1.5rem;
  }

  .members-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contato-section {
    padding-top: 9rem;
  }

  .socials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .challenges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .socials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .hero-title .line-inner {
    font-size: 4.5rem;
  }

  .hero-title .line2-inner {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title .line-inner {
    font-size: 6rem;
  }

  .hero-title .line2-inner {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-proximity-text {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-title .line-inner {
    font-size: 5.0rem;
  }

  .hero-title .line2-inner {
    font-size: 6rem;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 4.5rem 0;
  }

  .section-inner {
    padding: 0 1.25rem;
  }

  .section-label {
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: -0.08em;
    overflow: visible;
  }

  .hero-title .line:first-child {
    overflow: visible;
  }

  .hero-title .line:first-child .line-inner,
  .hero-title .line2-inner {
    display: flex;
    align-items: baseline;
    gap: 0;
    pointer-events: none;
    width: max-content;
  }

  .hero-title .line2-inner {
    letter-spacing: -0.05em;
    gap: 0.05em;
  }

  .hero-title .line2-inner .line-inner {
    font-size: inherit;
  }

  .hero-title.glitch .line-inner::before,
  .hero-title.glitch .line-inner::after,
  .hero-title.glitch .line2-inner::before,
  .hero-title.glitch .line2-inner::after {
    white-space: nowrap;
  }


  /* =========================================
    HERO MOTTO: [ break \\ learn \\ share ]
    ========================================= */
  .hero-motto {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.15em;
    margin-top: 1.5rem;
    /* Ajustado para dar um respiro legal logo abaixo dos CTAs ou subtítulo */

    /* Espelhando o alinhamento dos CTAs */
    margin-left: auto;
    margin-right: auto;
    width: 60%;

    display: flex;
    align-items: center;
    justify-content: center;
    /* Centraliza o texto dentro da largura de 60% */
    gap: 0.5rem;
  }

  .hero-motto .motto-bracket {
    color: var(--muted);
    font-weight: 700;
  }

  .hero-motto .neon-text {
    margin: 0 0.2rem;
  }

  .hero-subtitle-wrap {
    margin-top: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-ctas {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 0.75rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .manifesto-card {
    padding: 1.5rem;
  }

  .manifesto-number {
    font-size: 3rem;
    right: 1rem;
    top: 0.75rem;
  }

  .challenge-card {
    padding: 1.25rem;
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .member-card .info {
    padding: 0.75rem;
  }

  .member-card .handle {
    font-size: 0.75rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-name {
    font-size: 0.95rem;
  }

  .contato-section {
    padding-top: 5rem;
  }

  .socials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .social-card {
    padding: 1.25rem 0.5rem;
    gap: 0.75rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .social-card .social-name {
    font-size: 0.85rem;
  }

  .social-card .social-handle {
    font-size: 0.7rem;
  }

  .footer-giant {
    margin-top: 4rem;
    padding: 1.5rem 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    justify-content: center;
  }
}








/* --- Preloader Circular Cyberpunk --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg);
  /* Usa o #050505 do seu CSS */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Wrapper principal do círculo */
.cyber-circle-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anel Externo - Brilho Neon */
.cyber-circle-1 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--neon);
  border-bottom-color: var(--neon);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2), inset 0 0 10px rgba(0, 255, 65, 0.1);
  animation: cyber-spin 1.5s linear infinite;
}

/* Anel Intermediário - Tracejado Mudo */
.cyber-circle-2 {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed var(--muted);
  border-right-color: var(--neon);
  /* Um toque de verde girando */
  animation: cyber-spin-reverse 3s linear infinite;
}

/* Anel Interno - Rápido */
.cyber-circle-3 {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: var(--neon);
  animation: cyber-spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Texto do meio */
.cyber-text {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px var(--neon);
}

.preloader-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon);
  animation: fade-in-out 1.5s ease-in-out infinite;
}

/* Animações dos anéis */
@keyframes cyber-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes cyber-spin-reverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes fade-in-out {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}


/* Bloqueia seleção de texto */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Mantém inputs e áreas de texto selecionáveis */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}





/* =========================================
   TEXTURA: DUST OVERLAY
   ========================================= */
.dust-overlay {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;

  background-image: url('../local-assets/images/dust.png');
  background-size: cover;
  background-position: center;

  opacity: 0.8;
  pointer-events: none;
  z-index: 10;
}



*,
*::before,
*::after {
  cursor: none !important;
}

@media (pointer: fine) {

  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

@media (pointer: coarse),
(max-width: 768px) {
  #cyber-cursor {
    display: none !important;
  }
}

#cyber-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 999999;
  mix-blend-mode: difference;
  will-change: transform;

  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Estado de inatividade (quando o mouse para por 2 segundos) */
#cyber-cursor.inactive {
  opacity: 0.15;
}

/* Estado oculto quando o mouse sai da janela */
#cyber-cursor.hidden {
  opacity: 0;
  visibility: hidden;
}

.cursor-glitch-effect {
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M0 0 L18 6 L10 9 L6 18 Z' fill='%2300ff41'/></svg>");
  background-repeat: no-repeat;
  background-position: top left;
}

/* O glitch só é disparado quando esta classe é injetada via JS */
#cyber-cursor.glitch-active .cursor-glitch-effect {
  animation: cursor-flicker 0.25s steps(1, start) forwards;
}

@keyframes cursor-flicker {
  0% {
    opacity: 1;
    filter: none;
  }

  25% {
    opacity: 0.7;
    filter: drop-shadow(2px 0 #ff0040);
  }

  50% {
    opacity: 0.9;
    filter: drop-shadow(-2px 0 #00e5ff);
  }

  75% {
    opacity: 0.5;
    filter: drop-shadow(1px -1px #ff0040);
  }

  100% {
    opacity: 1;
    filter: none;
  }
}
