/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

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

/* ===== CORES ===== */
:root {
  --bg: #020404;
  --bg2: #0a0f0e;
  --purple: #50387b;
  --teal: #17617c;
  --emerald: #1e8d66;
  --green: #34be44;
  --text: #e2e8e4;
  --text-muted: #7a9188;
  --border: rgba(52, 190, 68, 0.25);
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 4, 4, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(2, 4, 4, 0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 10px rgba(52, 190, 68, 0.5);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo span {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.nav-cta {
  border: 1px solid var(--green) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  color: var(--green) !important;
}

.nav-cta:hover {
  background: var(--green) !important;
  color: var(--bg) !important;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  border-color: var(--green);
  background: rgba(52, 190, 68, 0.1);
  transform: translateY(-2px);
}

.lang-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(52, 190, 68, 0.5);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(80, 56, 123, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(52, 190, 68, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 10%, rgba(23, 97, 124, 0.12) 0%, transparent 60%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(52, 190, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 190, 68, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, #34be44 0%, #17617c 45%, #50387b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(52, 190, 68, 0.3));
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.65s forwards;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: #2aa835;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 190, 68, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: rgba(52, 190, 68, 0.1);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes sparkleHorizontal {
  0% {
    left: -10px;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      -30px 0 40px rgba(52, 190, 68, 0.3),
      -60px 0 60px rgba(52, 190, 68, 0.1);
  }
  100% {
    left: 100%;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      -30px 0 40px rgba(52, 190, 68, 0.3),
      -60px 0 60px rgba(52, 190, 68, 0.1);
  }
}

@keyframes sparkleVertical {
  0% {
    top: -10px;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      0 -30px 40px rgba(52, 190, 68, 0.3),
      0 -60px 60px rgba(52, 190, 68, 0.1);
  }
  100% {
    top: 100%;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      0 -30px 40px rgba(52, 190, 68, 0.3),
      0 -60px 60px rgba(52, 190, 68, 0.1);
  }
}

@keyframes sparkleHorizontal2 {
  0% {
    left: -10px;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      -30px 0 40px rgba(52, 190, 68, 0.3),
      -60px 0 60px rgba(52, 190, 68, 0.1);
  }
  100% {
    left: 100%;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      -30px 0 40px rgba(52, 190, 68, 0.3),
      -60px 0 60px rgba(52, 190, 68, 0.1);
  }
}

@keyframes sparkleVertical2 {
  0% {
    top: -10px;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      0 -30px 40px rgba(52, 190, 68, 0.3),
      0 -60px 60px rgba(52, 190, 68, 0.1);
  }
  100% {
    top: 100%;
    box-shadow: 
      0 0 12px rgba(52, 190, 68, 1), 
      0 0 20px rgba(52, 190, 68, 0.7),
      0 -30px 40px rgba(52, 190, 68, 0.3),
      0 -60px 60px rgba(52, 190, 68, 0.1);
  }
}

/* ===== GRID COM FAÍSCA CORRENDO + RASTRO ===== */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 190, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 190, 68, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero-grid::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(52, 190, 68, 0) 5%,
    rgba(52, 190, 68, 0.8) 50%,
    rgba(52, 190, 68, 0) 95%,
    transparent 100%
  );
  animation: sparkleHorizontal 4s ease-in-out infinite;
}

.hero-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 35%;
  width: 1px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(52, 190, 68, 0) 5%,
    rgba(52, 190, 68, 0.8) 50%,
    rgba(52, 190, 68, 0) 95%,
    transparent 100%
  );
  animation: sparkleVertical 4s ease-in-out infinite 0.5s;
}

/* Faísca adicional horizontal */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(52, 190, 68, 0) 5%,
    rgba(52, 190, 68, 0.8) 50%,
    rgba(52, 190, 68, 0) 95%,
    transparent 100%
  );
  animation: sparkleHorizontal2 4s ease-in-out infinite 1s;
}

/* Faísca adicional vertical */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 65%;
  width: 1px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(52, 190, 68, 0) 5%,
    rgba(52, 190, 68, 0.8) 50%,
    rgba(52, 190, 68, 0) 95%,
    transparent 100%
  );
  animation: sparkleVertical2 4s ease-in-out infinite 1.5s;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

/* ===== CARDS ===== */
.card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 15, 14, 0.6);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(52, 190, 68, 0.4);
  background: rgba(52, 190, 68, 0.04);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FORM ELEMENTS ===== */
select {
  color: var(--text) !important;
  background-color: rgba(52, 190, 68, 0.05) !important;
}

select option {
  color: var(--text);
  background-color: var(--bg2);
}

select option:checked {
  background: linear-gradient(var(--green), var(--green));
  background-color: var(--green) !important;
  color: var(--bg) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  color: var(--text) !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(2, 4, 4, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--green);
    transition: all 0.3s ease;
  }

  .lang-selector {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

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


/* ===== STATS SECTION ===== */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 15, 14, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  border-color: rgba(52, 190, 68, 0.4);
  background: rgba(52, 190, 68, 0.04);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 20px rgba(52, 190, 68, 0.5);
  animation: pulseScale 2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes pulseScale {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Progress bar animation */
@keyframes fillProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--purple));
  animation: fillProgress 2s ease-out forwards;
  animation-delay: 0.3s;
}


/* ===== CARD ANIMATIONS ===== */
@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes iconGlowPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(52, 190, 68, 0.5), 0 0 20px rgba(52, 190, 68, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(52, 190, 68, 0.8), 0 0 40px rgba(52, 190, 68, 0.6);
    transform: scale(1.1);
  }
}

.card {
  position: relative;
  background: linear-gradient(rgba(10, 15, 14, 0.6), rgba(10, 15, 14, 0.6)) padding-box,
              linear-gradient(135deg, rgba(52, 190, 68, 0.5), rgba(23, 97, 124, 0.3), rgba(80, 56, 123, 0.5)) border-box;
  border: 1px solid transparent;
  background-size: 200% 200%;
  animation: borderGradient 6s ease infinite;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: iconGlowPulse 2s ease-in-out infinite;
  display: inline-block;
}

.card:hover {
  border-color: rgba(52, 190, 68, 0.6);
  background: rgba(52, 190, 68, 0.04);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(52, 190, 68, 0.15);
}


/* ===== CORNER BRACKETS SYSTEM (Matrix/Terminal Style) ===== */

/* Base corner box */
.corner-box {
  position: relative;
  --corner-size: 18px;
  --corner-width: 2px;
  --corner-color: currentColor;
}

/* Cantos superiores */
.corner-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: var(--corner-size);
  height: var(--corner-size);
  border-top: var(--corner-width) solid var(--corner-color);
  border-left: var(--corner-width) solid var(--corner-color);
  z-index: 1;
}

.corner-box::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: var(--corner-size);
  height: var(--corner-size);
  border-top: var(--corner-width) solid var(--corner-color);
  border-right: var(--corner-width) solid var(--corner-color);
  z-index: 1;
}

/* Cantos inferiores usando background gradients */
.corner-box {
  background-image:
    linear-gradient(to bottom, var(--corner-color), var(--corner-color)),
    linear-gradient(to right, var(--corner-color), var(--corner-color)),
    linear-gradient(to bottom, var(--corner-color), var(--corner-color)),
    linear-gradient(to left, var(--corner-color), var(--corner-color));
  background-size:
    var(--corner-width) var(--corner-size),
    var(--corner-size) var(--corner-width),
    var(--corner-width) var(--corner-size),
    var(--corner-size) var(--corner-width);
  background-position:
    bottom left,
    bottom left,
    bottom right,
    bottom right;
  background-repeat: no-repeat;
}

/* Tamanhos */
.corner-box-sm {
  --corner-size: 12px;
  --corner-width: 1px;
}

.corner-box-md {
  --corner-size: 18px;
  --corner-width: 2px;
}

.corner-box-lg {
  --corner-size: 25px;
  --corner-width: 3px;
}

/* Cores */
.corner-box-green {
  --corner-color: #00FF41;
}

.corner-box-red {
  --corner-color: #FF2222;
}

.corner-box-white {
  --corner-color: #FFFFFF;
}

.corner-box-purple {
  --corner-color: #50387b;
}

.corner-box-teal {
  --corner-color: #17617c;
}

.corner-box-emerald {
  --corner-color: #1e8d66;
}

/* Variante com background (para não conflitar com backgrounds inline) */
.corner-box-nobg {
  background-image: none !important;
}

.corner-box-nobg::before,
.corner-box-nobg::after {
  background: transparent;
}

/* Adicionar cantos inferiores via pseudo-elementos adicionais quando necessário */
.corner-box-full::before {
  box-shadow: 
    0 calc(100% + var(--corner-size)) 0 0 transparent,
    0 calc(100% + var(--corner-size) + 1px) 0 var(--corner-width) var(--corner-color),
    calc(var(--corner-size)) calc(100% + var(--corner-size) + 1px) 0 0 transparent,
    calc(var(--corner-size) + 1px) calc(100% + var(--corner-size) + 1px) 0 0 var(--corner-color);
}

/* Hover effect - aumenta os cantos */
.corner-box-hover:hover {
  --corner-size: calc(var(--corner-size) * 1.2);
  transition: all 0.3s ease;
}

/* Animação de entrada */
@keyframes cornerFadeIn {
  from {
    --corner-size: 0px;
    opacity: 0;
  }
  to {
    --corner-size: 18px;
    opacity: 1;
  }
}

.corner-box-animate {
  animation: cornerFadeIn 0.5s ease-out;
}

/* Animação de desenhar (drawing effect) */
@keyframes drawCorners {
  0% {
    --corner-size: 0px;
  }
  100% {
    --corner-size: 25px;
  }
}

.corner-box-draw {
  animation: drawCorners 0.8s ease-out forwards;
}

/* Hero Title com Corner Brackets Animados */
.hero-title-wrapper {
  position: relative;
  display: block;
  padding: 2rem 3rem;
  margin: 2rem auto;
  width: fit-content;
}

.hero-title-wrapper .hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Cantos animados para hero titles */
.hero-title-corners {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  pointer-events: none;
  z-index: 2;
}

.hero-title-corners::before,
.hero-title-corners::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: var(--green);
  animation: drawTopCorners 0.6s ease-out forwards;
}

.hero-title-corners::before {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  animation-delay: 0.2s;
}

.hero-title-corners::after {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  animation-delay: 0.3s;
}

/* Cantos inferiores */
.hero-title-corners-bottom {
  position: absolute;
  bottom: -10px;
  left: -10px;
  right: -10px;
  height: 30px;
  pointer-events: none;
  z-index: 2;
}

.hero-title-corners-bottom::before,
.hero-title-corners-bottom::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: var(--green);
  animation: drawBottomCorners 0.6s ease-out forwards;
}

.hero-title-corners-bottom::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  animation-delay: 0.4s;
}

.hero-title-corners-bottom::after {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  animation-delay: 0.5s;
}

/* Cursor piscante no canto inferior direito (aparece depois dos corners) */
.hero-title-wrapper::after {
  content: '█';
  position: absolute;
  bottom: -5px;
  right: -5px;
  color: var(--green);
  font-size: 1.2rem;
  opacity: 0;
  animation: cursorFadeIn 0.3s ease-out 1.2s forwards, cursorBlink 1s infinite 1.5s;
  z-index: 3;
}

@keyframes cursorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Animações de desenhar os cantos */
@keyframes drawTopCorners {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 30px;
    height: 0;
  }
  100% {
    width: 30px;
    height: 30px;
  }
}

@keyframes drawBottomCorners {
  0% {
    width: 0;
    height: 0;
  }
  50% {
    width: 30px;
    height: 0;
  }
  100% {
    width: 30px;
    height: 30px;
  }
}


/* ===== TERMINAL CURSOR (Matrix Style) ===== */

/* Cursor piscante NO FINAL DO TEXTO (como terminal) */
.corner-box .card-desc::after,
.corner-box p:last-of-type::after {
  content: '█';
  display: inline-block;
  margin-left: 4px;
  font-size: 1em;
  color: var(--corner-color);
  animation: cursorBlink 1s infinite;
  font-family: monospace;
  line-height: 1;
  vertical-align: baseline;
}

/* Animação de piscar */
@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Ajustar cor do cursor baseado na cor do corner-box */
.corner-box-green .card-desc::after,
.corner-box-green p:last-of-type::after {
  color: #00FF41;
}

.corner-box-red .card-desc::after,
.corner-box-red p:last-of-type::after {
  color: #FF2222;
}

.corner-box-white .card-desc::after,
.corner-box-white p:last-of-type::after {
  color: #FFFFFF;
}

/* Tamanhos diferentes */
.corner-box-lg .card-desc::after,
.corner-box-lg p:last-of-type::after {
  font-size: 1.1em;
  margin-left: 5px;
}

.corner-box-sm .card-desc::after,
.corner-box-sm p:last-of-type::after {
  font-size: 0.9em;
  margin-left: 3px;
}


/* ===== REMOVER CURSOR PADRÃO E USAR CURSOR CUSTOMIZADO ===== */

/* Remover cursor padrão dos corner boxes */
.corner-box {
  cursor: none; /* Remove o cursor padrão */
}

/* Adicionar cursor da Matrix no final do último parágrafo */
.corner-box .card-desc::after,
.corner-box p:last-of-type::after {
  content: '█';
  display: inline-block;
  margin-left: 4px;
  font-size: 1em;
  color: var(--corner-color);
  animation: cursorBlink 1s infinite;
  font-family: monospace;
  line-height: 1;
  vertical-align: baseline;
}

/* Para corner boxes sem card-desc, adicionar no final do conteúdo */
.corner-box:not(:has(.card-desc)):not(:has(p))::after {
  content: '█';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.9rem;
  color: var(--corner-color);
  animation: cursorBlink 1s infinite;
  z-index: 2;
  font-family: monospace;
  line-height: 1;
  pointer-events: none;
}

/* Ajustar tamanho do cursor para boxes grandes */
.corner-box-lg .card-desc::after,
.corner-box-lg p:last-of-type::after {
  font-size: 1.1em;
}

/* Ajustar tamanho do cursor para boxes pequenos */
.corner-box-sm .card-desc::after,
.corner-box-sm p:last-of-type::after {
  font-size: 0.9em;
}


/* ===== CURSOR CUSTOMIZADO MATRIX (SITE TODO) ===== */

/* Cursor customizado para o site todo */
body, * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect x="0" y="0" width="20" height="20" fill="%2300FF41" opacity="0.8"/></svg>') 10 10, auto;
}

/* Cursor para links e botões */
a, button, .btn, .nav-links a {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="0" y="0" width="24" height="24" fill="%2300FF41"/><rect x="2" y="2" width="20" height="20" fill="%23000000"/></svg>') 12 12, pointer;
}

/* Cursor para inputs */
input, textarea {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="20" viewBox="0 0 2 20"><rect x="0" y="0" width="2" height="20" fill="%2300FF41"/></svg>') 1 10, text;
}


/* ===== REMOVER EFEITO DE SCANNER/CROSSHAIR DOS CARDS ===== */

/* Desabilitar qualquer pseudo-elemento que crie o efeito + */
.card::before,
.card::after {
  display: none !important;
}

/* Garantir que o cursor da Matrix apareça em todos os corner-box */
.corner-box {
  position: relative;
}

/* Remover animação de gradiente que pode estar causando o efeito */
.card {
  animation: none !important;
  background: rgba(10, 15, 14, 0.6) !important;
  border: 1px solid var(--border) !important;
}

.card:hover {
  border-color: rgba(52, 190, 68, 0.4) !important;
  background: rgba(52, 190, 68, 0.04) !important;
}


/* ===== CURSOR PISCANDO NOS CTAs DA ACADEMY ===== */

/* Adicionar cursor piscando ao lado dos links "Ver módulo" e "Ver formação completa" */
.mod-card__cta::after {
  content: ' █';
  display: inline-block;
  margin-left: 6px;
  font-size: 0.9em;
  color: #00FF41;
  animation: cursorBlink 1s infinite;
  font-family: monospace;
  line-height: 1;
  vertical-align: baseline;
}

/* Garantir que o cursor apareça mesmo quando o link está dentro de um card */
.mod-card a .mod-card__cta::after {
  color: #00FF41;
}

/* Para o módulo Master (verde diferente) */
.mod-card--master .mod-card__cta::after {
  color: #00FF41;
}

/* Evitar duplicação se já tiver o cursor do corner-box */
.corner-box .mod-card__cta::after {
  content: ' █';
}


/* ==========================================================================
   ===== TECHMIND PREMIUM VISUAL EFFECTS (CURSOR & TYPEWRITER) =====
   ========================================================================== */

/* 1. Ocultar cursor padrão em elementos interativos APENAS quando o script está ativo e em hover */
body.custom-cursor-ready a:hover,
body.custom-cursor-ready button:hover,
body.custom-cursor-ready select:hover,
body.custom-cursor-ready input[type="submit"]:hover,
body.custom-cursor-ready input[type="button"]:hover,
body.custom-cursor-ready .card:hover,
body.custom-cursor-ready .lang-btn:hover,
body.custom-cursor-ready .hover-bracket:hover {
  cursor: none !important;
}

/* 2. Ponteiro Customizado - APENAS OS COLCHETES pulsantes no hover (sem a bolinha verde!) */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 55px;
  height: 45px;
  background: transparent;
  border-radius: 0;
  border: none;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
  box-shadow: inset 0 0 15px rgba(52, 190, 68, 0.45), 0 0 15px rgba(52, 190, 68, 0.45);
  pointer-events: none; 
  z-index: 999999;
  transform: translate(-50%, -50%);
  animation: pulse-brackets 1s infinite alternate ease-in-out;
  will-change: left, top;
  display: none; /* Exibido apenas em hover via JS */
}

@keyframes pulse-brackets {
  0% {
    transform: translate(-50%, -50%) scale(0.98);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* 3. Terminal Typewriter Estilos */
.typewriter-text {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.typewriter-text.typewriter-visible {
  opacity: 1;
}

.typing-cursor::after {
  content: '█';
  display: inline-block;
  animation: terminalBlink 1s step-end infinite;
  color: #34be44;
  margin-left: 4px;
  font-family: monospace;
  font-weight: bold;
}

@keyframes terminalBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Suporte para Glitch em hovers de links e botões */
.glitch-hover {
  position: relative;
  display: inline-block;
}

.glitch-hover:hover {
  animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #34be44 !important;
  text-shadow: 0 0 10px rgba(52, 190, 68, 0.4);
}

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

.glitch-hover:hover::before {
  opacity: 1;
  left: 2px;
  text-shadow: -2px 0 #FF2222;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-anim-1 0.2s infinite linear alternate-reverse;
}

.glitch-hover:hover::after {
  opacity: 1;
  left: -2px;
  text-shadow: -2px 0 #34be44;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-1deg); }
  40% { transform: skew(1.5deg); }
  60% { transform: skew(-1.5deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}

@keyframes glitch-anim-1 {
  0% { clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%); }
  100% { clip-path: polygon(0 60%, 100% 60%, 100% 61%, 0 61%); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%); }
  100% { clip-path: polygon(0 85%, 100% 85%, 100% 86%, 0 86%); }
}

