/* ==========================================================================
   0. FONTES DA MARCA
   ========================================================================== */
@font-face {
  font-family: 'Heading Now';
  src: url('../assets/fonts/HeadingNow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Heading Now';
  src: url('../assets/fonts/HeadingNow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/Aileron-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/Aileron-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('../assets/fonts/Aileron-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background-color: var(--verde-escuro);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 120px;
  animation: loadingPulse 1.4s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   SCROLL-DRIVEN HERO VIDEO
   ========================================================================== */
.scroll-hero-wrapper {
  height: 350vh;
  position: relative;
}

.scroll-hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.scroll-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-hero-overlay.active {
  opacity: 1;
}

.scroll-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  color: #FFFFFF;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-hero-text.active .reveal-inner {
  transform: translateY(0);
}

.scroll-hero-text.active .reveal-line:nth-child(2) .reveal-inner {
  transition-delay: 0.12s;
}

.scroll-hero-items {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}

.scroll-items-left,
.scroll-items-right {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.scroll-items-left {
  align-items: flex-start;
}

.scroll-items-right {
  align-items: flex-end;
}

.scroll-item {
  display: block;
  overflow: hidden;
}

.scroll-item .reveal-inner {
  display: block;
  padding: 12px 24px 14px;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 2px solid var(--verde-primario, #53B163);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #FFFFFF;
  white-space: nowrap;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-items-left .scroll-item .reveal-inner {
  padding-left: clamp(3rem, 12vw, 14rem);
}

.scroll-items-right .scroll-item .reveal-inner {
  padding-right: clamp(3rem, 12vw, 14rem);
}

.scroll-hero-items.active .scroll-item .reveal-inner {
  transform: translateY(0);
}

.scroll-hero-items.active .scroll-items-left .scroll-item:nth-child(2) .reveal-inner { transition-delay: 0.08s; }
.scroll-hero-items.active .scroll-items-left .scroll-item:nth-child(3) .reveal-inner { transition-delay: 0.16s; }
.scroll-hero-items.active .scroll-items-left .scroll-item:nth-child(4) .reveal-inner { transition-delay: 0.24s; }
.scroll-hero-items.active .scroll-items-right .scroll-item:nth-child(1) .reveal-inner { transition-delay: 0.04s; }
.scroll-hero-items.active .scroll-items-right .scroll-item:nth-child(2) .reveal-inner { transition-delay: 0.12s; }
.scroll-hero-items.active .scroll-items-right .scroll-item:nth-child(3) .reveal-inner { transition-delay: 0.20s; }
.scroll-hero-items.active .scroll-items-right .scroll-item:nth-child(4) .reveal-inner { transition-delay: 0.28s; }

/* ==========================================================================
   SEÇÃO CENÁRIOS — título centralizado + cards em linha
   ========================================================================== */
.cenarios-title {
  text-align: center;
  margin-bottom: 56px;
}

.cenarios-title h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--verde-escuro);
  will-change: transform, opacity;
}

.cenarios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cenario-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.cenario-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
              opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cenario-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px rgba(44, 61, 49, 0.08);
}

.cenario-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--branco);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cenario-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--verde-escuro);
  margin-bottom: 4px;
}

.cenario-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--texto-escuro);
}

.cenarios-bottom {
  text-align: center;
  margin-top: 56px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--verde-escuro);
}

.cenarios-bottom strong {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent-color);
  display: block;
  margin-top: 4px;
}

@media (max-width: 991px) {
  .cenarios-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cenarios-title h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .cenarios-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.page-tech {
  background-image:
    linear-gradient(rgba(201, 212, 222, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 212, 222, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Container de Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. TIPOGRAFIA (Baseada na hierarquia do manual da marca)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.25;
}

/* Adaptação fluida das fontes para Mobile vs Desktop */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Ajustado de Sora 28-36pt */
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); /* Ajustado de Sora 18-22pt */
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 16px;
}

p {
  font-size: 1.1rem;
  font-weight: 300; /* Sora Light */
  color: var(--text-primary);
  margin-bottom: 16px;
}

strong {
  font-weight: 600;
  color: var(--text-light);
}

/* Tags mono para estilo de terminal */
.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 16px;
}

.comment-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 12px;
}

/* Cursor piscando de terminal */
.cursor-blink::after {
  content: '_';
  color: var(--accent-color);
  animation: blink 1s infinite step-end;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   3. ESTRUTURA GLOBAL: HEADER, NAV & FOOTER
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.page-tech header {
  background-color: rgba(13, 17, 23, 0.8);
}

.page-tech header.scrolled {
  background-color: rgba(13, 17, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 54px;
  width: auto;
  transition: var(--transition-smooth);
}

header.scrolled .logo-img {
  height: 44px;
}

/* Navegação Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 8px 0;
}

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

/* Cursor sob o link ativo/hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown de navegação (Sistemas / Sites) */
.nav-dropdown {
  position: relative;
}

.nav-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  margin-bottom: 1px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: var(--transition-smooth);
  vertical-align: middle;
}

@media (min-width: 769px) {
  .nav-dropdown:hover .nav-caret {
    transform: rotate(225deg);
    margin-bottom: -3px;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 220px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    z-index: 1100;
  }

  .page-tech .nav-dropdown-menu {
    background-color: var(--bg-secondary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--border-radius);
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background-color: var(--accent-transparent);
  color: var(--accent-color);
}

/* Rodapé */
footer {
  background-color: var(--verde-escuro);
  border-top: none;
  padding: 80px 0 40px;
  margin-top: 0;
  position: relative;
}

footer, footer h4, footer a, footer p {
  color: rgba(255, 255, 255, 0.85);
}

footer .footer-brand p {
  color: rgba(255, 255, 255, 0.6);
}

footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
}

footer .footer-socials a {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

footer .footer-socials a:hover {
  background-color: var(--verde-primario);
  border-color: var(--verde-primario);
  color: #FFFFFF;
}

footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

footer .footer-links ul li a:hover {
  color: var(--verde-primario);
}

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

.footer-brand .logo-img {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-primary);
  font-weight: 600;
}

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

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background-color: var(--accent-transparent);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

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

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   4. BOTÕES E COMPONENTES DE INTERAÇÃO
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 10px;
}

/* Botão Verde */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 220, 132, 0.25);
}

/* Botão Outline */
.btn-secondary {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 220, 132, 0.15);
}

/* Botão Link Terminal */
.btn-terminal {
  font-family: var(--font-mono);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
}

.btn-terminal:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
  padding-left: 6px;
}

/* Menu Mobile Hamburguer */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
  /* Elimina o atraso de ~300ms do toque e o flash de highlight no mobile */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background-color 0.28s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 11px; }
.menu-btn span:nth-child(3) { top: 22px; }

.menu-btn.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--accent-color);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: var(--accent-color);
}

/* ==========================================================================
   5. SEÇÕES & HERO LAYOUTS
   ========================================================================== */
section {
  padding: 100px 0;
  position: relative;
}

/* Hero Principal */
.hero {
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
}

/* Brilho decorativo no fundo do Hero */
.hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background-color: var(--accent-color);
  opacity: 0.06;
  filter: blur(150px);
  border-radius: 50%;
  top: 20%;
  right: 10%;
  z-index: -1;
  pointer-events: none;
}

/* Hero corporativo com fundo verde escuro */
.hero-corporate {
  background-color: var(--verde-escuro);
  color: #FFFFFF;
  position: relative;
  overflow: visible;
  display: block;
}

.hero-corporate .hero-video-bg,
.hero-corporate .hero-video-overlay {
  overflow: hidden;
}

.hero-corporate::after {
  display: none;
}

.hero-corporate .container {
  position: relative;
  z-index: 2;
}

.hero-corporate .hero-center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hero-corporate .hero-center.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-video-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(44, 61, 49, 0.85) 0%, rgba(44, 61, 49, 0.7) 50%, rgba(44, 61, 49, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-corporate h1,
.hero-corporate p,
.hero-corporate .tag-mono {
  color: #FFFFFF;
}

.hero-corporate .tag-mono {
  color: var(--verde-primario);
}

.hero-content {
  max-width: 780px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 24px;
  justify-content: center;
}

.hero-microproof {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Interno das Páginas de Vendas */
.hero-inner {
  padding: 160px 0 80px;
  position: relative;
}

.hero-inner-content {
  max-width: 800px;
}

/* ==========================================================================
   6. SEÇÃO 2 — O PROBLEMA
   ========================================================================== */
.problem-box {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(28, 37, 48, 0.4) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.problem-box::before {
  content: '</>';
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-mono);
  font-size: 15rem;
  color: rgba(201, 212, 222, 0.02);
  font-weight: 700;
  pointer-events: none;
}

.problem-title {
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 30px;
  max-width: 900px;
}

.problem-text {
  max-width: 800px;
  margin-bottom: 40px;
}

.transition-phrase {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   7. CARDS & GRID DE SERVIÇOS
   ========================================================================== */

/* Pin de rolagem: os cards se dissipam e uma tela de terminal sobe (somente desktop) */
@media (min-width: 769px) {
  .services-pin-spacer {
    height: 140vh;
    position: relative;
  }

  .services-pin-sticky {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
}

.services-stage {
  position: relative;
  margin-top: 48px;
}

.services-reveal-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #0b0e14;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.services-reveal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.services-reveal-text {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: var(--accent-color);
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
}

/* No mobile a tela de terminal fica desativada e os cards ficam estáticos,
   empilhados, ocupando a largura toda da tela com pouca altura */
@media (max-width: 768px) {
  .services-reveal-screen {
    display: none;
  }

  .services-stage {
    margin-top: 28px;
  }

  #gridServices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 -24px; /* quebra o padding do .container pra ocupar a largura toda */
    margin-top: 0;
  }

  #gridServices .service-card {
    min-height: 0;
    padding: 18px 24px;
    border-radius: 0;
    justify-content: flex-start;
  }

  #gridServices .service-card::after {
    border-radius: 0;
  }

  #gridServices .service-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  #gridServices .service-card-body p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  #gridServices .service-card > a,
  #gridServices .service-card > span {
    align-self: flex-start;
  }
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.grid-services .service-card {
  text-align: center;
  align-items: center;
}

.grid-services .service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.grid-services .service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--accent-color);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(61, 220, 132, 0.03);
}

.service-card:hover::after {
  opacity: 0.3;
}

.service-card.secondary {
  background-color: rgba(28, 37, 48, 0.4);
  border-style: dashed;
}

.service-card.secondary:hover::after {
  opacity: 0.15;
}

.service-card-body h3 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.service-card-body p {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   8. PROCESSO / COMO TRABALHAMOS
   ========================================================================== */
/* Vídeo de fundo (Seção Processo) */
.section-video-bg {
  position: relative;
  background-color: var(--bg-terminal);
}

.video-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--bg-terminal);
  opacity: 0.6;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

.process-step {
  position: relative;
  z-index: 2;
  padding: 35px 28px; /* Padding to unstick text from margins */
  border-radius: var(--border-radius-lg);
  overflow: hidden; /* Prevent watermark overflow */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: var(--transition-smooth);
}

.process-step:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 12px 40px rgba(61, 220, 132, 0.08);
  transform: translateY(-5px);
}

.process-number {
  position: absolute;
  right: 20px;
  top: 15px; /* Large watermark on the right */
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent-color);
  opacity: 0.06; /* Subtle watermark opacity */
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.process-step:hover .process-number {
  opacity: 0.14; /* Lights up on card hover */
}

.process-step h3 {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* No mobile os passos ficam estáticos, empilhados e compactos, ocupando a
   largura toda da tela (mesmo tratamento dos cards de "o que fazemos") */
@media (max-width: 768px) {
  #processPinSpacer {
    margin: 0 -24px; /* quebra o padding do .container pra ocupar a largura toda */
  }

  #processGrid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  #processGrid .process-step {
    border-radius: 0;
    padding: 18px 24px;
    justify-content: flex-start;
  }

  #processGrid .process-number {
    top: 12px;
    right: 24px;
    font-size: 3rem;
  }

  #processGrid .process-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  #processGrid .process-step p {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* ==========================================================================
   8.1. FAIXA ANIMADA DE LOGOS DE CLIENTES
   ========================================================================== */
.clients-marquee {
  background-color: var(--bg-terminal);
  padding: 46px 0;
  position: relative;
  z-index: 3;
}

.clients-marquee ~ section,
.clients-marquee ~ footer {
  position: relative;
  z-index: 3;
}

.clients-marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.clients-marquee-track img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.clients-marquee-track img:hover {
  opacity: 0.9;
}

.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}

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

/* ==========================================================================
   9. PROVA SOCIAL, NÚMEROS E DEPOIMENTOS
   ========================================================================== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 80px;
}

.number-card {
  background: rgba(28, 37, 48, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 212, 222, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.number-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 25px rgba(61, 220, 132, 0.15);
  transform: translateY(-5px);
}

.number-val {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
  line-height: 1;
}

.number-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Carrossel de depoimentos com moldurinha e texto terminal */
.testimonials-carousel {
  position: relative;
  padding: 10px 0;
}

.testimonials-viewport {
  overflow: hidden;
  padding: 12px 4px;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Exatamente 2 depoimentos por vez no desktop */
.testimonials-track .testimonial-card {
  flex: 0 0 calc((100% - 32px) / 2);
  min-width: 0;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.testimonials-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonials-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: transparent;
  transition: var(--transition-smooth);
}

.testimonials-dot:hover::before {
  border-color: var(--accent-color);
}

.testimonials-dot.active::before {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  width: 26px;
  border-radius: 999px;
}

/* Card de Feedback com moldurinha elegante */
.testimonial-card {
  background: rgba(28, 37, 48, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 212, 222, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 25px rgba(61, 220, 132, 0.15);
  transform: translateY(-5px);
}

.testimonial-quote-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent-color); /* Texto em verde terminal */
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author-tag {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* No mobile, exibe exatamente 1 depoimento com moldurinha */
@media (max-width: 768px) {
  .testimonials-viewport {
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .testimonials-track {
    gap: 0;
  }

  .testimonials-track .testimonial-card {
    flex: 0 0 100%;
    padding: 24px 20px;
    background: rgba(28, 37, 48, 0.92) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .testimonial-quote-text {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .testimonial-author-tag {
    font-size: 0.82rem;
    padding-top: 12px;
  }

  .testimonials-dots {
    display: flex;
    margin-top: 24px;
  }
}

/* ==========================================================================
   10. CTA DE SEÇÃO FINAL
   ========================================================================== */
.section-cta {
  background: var(--cinza-claro);
  border-top: 1px solid var(--border-color);
}

.page-tech .section-cta {
  background: radial-gradient(circle at 80% 20%, rgba(61, 220, 132, 0.05) 0%, transparent 60%);
}

.cta-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 80px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   11. PÁGINA: SISTEMAS & INTEGRAÇÕES
   ========================================================================== */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.checklist-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checklist-icon {
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

.checklist-content p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.checklist-content strong {
  color: var(--text-light);
}

.checklist-footer {
  text-align: center;
  margin-top: 40px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.solution-block {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
}

.solution-block:hover {
  border-color: rgba(61, 220, 132, 0.3);
}

.solution-block h3 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.solution-block h3::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--accent-color);
}

.solution-block p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Acordeão do FAQ */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--accent-color);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 1rem;
  color: var(--text-primary);
}

/* ==========================================================================
   12. PÁGINA: SITES INSTITUCIONAIS
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.why-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 220, 132, 0.3);
}

.why-card h3 {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 20px;
}

.why-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.inclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.inclusion-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.inclusion-dot {
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.inclusion-text h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

.inclusion-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Cross sell */
.cross-sell-box {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(28, 37, 48, 0.6) 100%);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(61, 220, 132, 0.02);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 40px;
}

.cross-sell-content h2 {
  margin-bottom: 16px;
}

.cross-sell-content p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   13. PÁGINA: PORTFÓLIO & CASES
   ========================================================================== */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--accent-transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.case-card {
  background: rgba(20, 26, 35, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 212, 222, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 220, 132, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(61, 220, 132, 0.12);
}

/* Header do Card */
.case-header {
  margin-bottom: 20px;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 6px;
}

.case-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 4px;
}

.case-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Moldura de Janela de Navegador / Mockup */
.case-window {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(201, 212, 222, 0.15);
  background-color: #0b0e14;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.window-bar {
  background-color: #161b22;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(201, 212, 222, 0.1);
}

.window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-bar .dot.red { background-color: #ff5f56; }
.window-bar .dot.yellow { background-color: #ffbd2e; }
.window-bar .dot.green { background-color: #27c93f; }

.window-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.window-content {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background-color: #0b0e14;
  display: block;
}

.window-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.window-content.brand-cover img {
  object-fit: cover;
  object-position: center;
}

.window-content.brand-delta-card {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.window-content.brand-delta-card img {
  width: auto;
  height: 100%;
  max-height: 175px;
  object-fit: contain;
}

.case-card:hover .window-content img {
  transform: scale(1.04);
}

/* Corpo e Blocos do Card */
.case-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-block {
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid rgba(201, 212, 222, 0.08);
  border-radius: var(--border-radius);
  padding: 16px;
}

.case-section-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-section-title::before {
  content: '>';
  color: var(--accent-color);
}

.case-block p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0;
  font-weight: 300;
}

/* ==========================================================================
   14. PÁGINA: SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.principle-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
}

.principle-card:hover {
  border-color: var(--accent-color);
}

.principle-card h3 {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.principle-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   15. PÁGINA: CONTATO & FORMULÁRIOS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 50px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-tech .form-label::before {
  content: '> ';
  color: var(--accent-color);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid rgba(44, 61, 49, 0.2);
  border-radius: var(--border-radius);
  color: var(--texto-escuro);
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 14px 16px;
  transition: var(--transition-smooth);
  outline: none;
}

.page-tech .form-input, .page-tech .form-select, .page-tech .form-textarea {
  background-color: var(--bg-primary);
  color: var(--text-light);
  border-color: var(--border-color);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C9D4DE' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Mensagens de Feedback do Formulário */
.form-feedback {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: none;
  padding: 14px;
  border-radius: var(--border-radius);
}

.form-feedback.success {
  display: block;
  border: 1px solid var(--accent-color);
  background-color: var(--accent-transparent);
  color: var(--accent-color);
}

.form-feedback.error {
  display: block;
  border: 1px solid #ff4a4a;
  background-color: rgba(255, 74, 74, 0.05);
  color: #ff4a4a;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s infinite linear;
  vertical-align: middle;
  margin-right: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block h3 {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.info-block p {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.info-block p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   16. OUTROS ELEMENTOS: WIDGET WHATSAPP & COOKIE BANNER
   ========================================================================== */
/* Widget WhatsApp */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
}

.whatsapp-icon {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 16px rgba(37, 211, 102, 0.4));
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  white-space: nowrap;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius-lg);
  padding: 24px 30px;
  z-index: 1001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  bottom: 30px;
}

.cookie-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.cookie-btns {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.cookie-btn-accept {
  background-color: var(--accent-color);
  color: var(--bg-primary);
}

.cookie-btn-accept:hover {
  background-color: var(--accent-hover);
}

.cookie-btn-essentials {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.cookie-btn-essentials:hover {
  border-color: var(--text-primary);
  color: var(--text-light);
}

/* ==========================================================================
   17. PÁGINA 404 (Estilo terminal)
   ========================================================================== */
.terminal-404 {
  background-color: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 650px;
  margin: 120px auto 0;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-body {
  color: var(--accent-color);
}

.terminal-error-tag {
  color: #ff4a4a;
  margin-bottom: 16px;
}

.terminal-body p {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ==========================================================================
   18. MEDIA QUERIES (Responsividade)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process-grid::before {
    display: none; /* remove linha horizontal no mobile */
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding: 140px 0 60px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }

  /* Hamburguer Menu Navigation */
  .menu-btn {
    display: block;
  }

  /* Painel deslizante: animado por transform (na GPU) em vez de "right",
     que forçaria recálculo de layout a cada frame e travava no celular */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overscroll-behavior: contain;
    overflow-y: auto;
    z-index: 1050;
  }

  .page-tech .nav-menu {
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    transform: translate3d(0, 0, 0);
  }

  /* Trava o fundo enquanto o menu está aberto: sem repintura da página atrás */
  body.menu-open {
    overflow: hidden;
  }

  .nav-menu .nav-link {
    font-size: 1.2rem;
    padding: 12px 0;
  }
  
  .nav-menu .btn {
    margin-top: 24px;
    width: 100%;
  }

  /* No mobile o submenu fica sempre visível, empilhado sem deslocamentos */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 20px;
    margin-top: 4px;
    transition: none !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-dropdown-item {
    font-size: 1rem;
    padding: 8px 0;
    color: var(--text-muted);
  }

  /* Otimização da página de contato no mobile */
  .hero-inner {
    padding: 110px 0 30px;
    text-align: center;
  }

  .hero-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-contact-hero {
    padding: 92px 0 16px !important;
  }

  .page-contact-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .page-contact-hero p {
    font-size: 0.92rem;
    margin-bottom: 0;
  }

  .contact-section-wrapper {
    padding: 16px 0 !important;
  }

  .contact-grid {
    margin-top: 0 !important;
  }

  /* Grids */
  .grid-services, .portfolio-grid,
  .checklist-grid, .solution-grid, .why-grid, .inclusion-grid,
  .principles-grid, .contact-grid, .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .video-bg-wrapper, .video-bg-overlay {
    display: none !important;
  }

  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .number-card {
    padding: 16px 6px;
    background: rgba(28, 37, 48, 0.92) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-radius: var(--border-radius);
  }

  .number-val {
    font-size: clamp(1.25rem, 4.6vw, 1.7rem);
    margin-bottom: 4px;
  }

  .number-label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .clients-marquee-track {
    gap: 40px;
  }

  .clients-marquee-track img {
    height: 32px;
  }

  .problem-box {
    padding: 30px;
  }

  .cta-box {
    padding: 40px 24px;
  }
  
  .cross-sell-box {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 24px;
  }
  
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .portfolio-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .filter-btn {
    text-align: center;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .terminal-404 {
    padding: 24px;
  }
}

/* ==========================================================================
   EFEITOS HACKER, GLOWS E SIMULADOR (ANTIGRAVITY DESIGN ENHANCEMENTS)
   ========================================================================== */

/* Cards corporativos: fundo branco com sombra sutil */
.service-card, .testimonial-card, .process-step, .problem-box, .cta-box {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 8px 30px rgba(83, 177, 99, 0.12);
  transform: translateY(-5px);
}

.testimonial-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 8px 30px rgba(83, 177, 99, 0.1);
}

/* Glassmorphism para páginas técnicas */
.page-tech .service-card, .page-tech .testimonial-card,
.page-tech .process-step, .page-tech .problem-box, .page-tech .cta-box {
  background: rgba(28, 37, 48, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 212, 222, 0.12) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.page-tech .service-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 25px rgba(61, 220, 132, 0.15);
}

@media (max-width: 768px) {
  .service-card, .testimonial-card, .process-step, .problem-box, .cta-box {
    box-shadow: none;
  }

  header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  header.scrolled {
    background-color: rgba(255, 255, 255, 0.99);
  }

  .page-tech header {
    background-color: rgba(13, 17, 23, 0.96);
  }

  .page-tech header.scrolled {
    background-color: rgba(13, 17, 23, 0.98);
  }

  .page-tech .service-card, .page-tech .testimonial-card,
  .page-tech .process-step, .page-tech .problem-box, .page-tech .cta-box {
    background: rgba(28, 37, 48, 0.92) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .page-tech .case-card {
    background: rgba(20, 26, 35, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.number-card {
  transition: var(--transition-smooth);
}
.number-card:hover {
  transform: scale(1.05);
}

/* Hacker Code Background — só visível em páginas técnicas */
.hacker-bg {
  display: none;
}

.page-tech .hacker-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hacker-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Garantir que o conteúdo das seções fique acima do canvas hacker-bg */
section > .container {
  position: relative;
  z-index: 2;
}

/* Grid do Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* ==========================================================================
   DIAGRAMA ANIMADO DE INTEGRAÇÃO (Página Integrações)
   ========================================================================== */
.integration-diagram {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.integration-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.diagram-flow-line {
  stroke: var(--accent-color);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  opacity: 0.35;
  animation: diagram-dash-flow 1.4s linear infinite;
}

.diagram-packet {
  fill: var(--accent-color);
  filter: drop-shadow(0 0 4px rgba(61, 220, 132, 0.8));
}

.diagram-hub-bg {
  fill: var(--accent-transparent);
  stroke: var(--accent-color);
  stroke-width: 2;
  animation: diagram-hub-pulse 2.4s ease-in-out infinite;
  transform-origin: 200px 200px;
}

.diagram-hub-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  fill: var(--accent-color);
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: -0.02em;
}

.diagram-node-bg {
  fill: var(--bg-secondary);
  stroke: var(--border-color);
  stroke-width: 1;
  transition: var(--transition-smooth);
}

.diagram-node-label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--text-primary);
  text-anchor: middle;
  dominant-baseline: middle;
}

@keyframes diagram-dash-flow {
  to { stroke-dashoffset: -28; }
}

@keyframes diagram-hub-pulse {
  0%, 100% { r: 44; }
  50% { r: 48; }
}

/* ==========================================================================
   DIAGRAMA ANIMADO DE BUSCA (Página Sites)
   ========================================================================== */
.search-diagram {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.search-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.search-browser-bar {
  fill: var(--bg-secondary);
  stroke: var(--border-color);
  stroke-width: 1;
}

.search-dot.red { fill: #ff5f56; }
.search-dot.yellow { fill: #ffbd2e; }
.search-dot.green { fill: #27c93f; }

.search-address-bar {
  fill: var(--bg-primary);
  stroke: var(--border-color);
  stroke-width: 1;
}

.search-result-title {
  fill: var(--accent-color);
  opacity: 0.85;
}

.search-result-line {
  fill: var(--border-color);
}

.search-lens-glass {
  fill: rgba(61, 220, 132, 0.08);
  stroke: var(--accent-color);
  stroke-width: 6;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.5));
}

.search-lens-handle {
  stroke: var(--accent-color);
  stroke-width: 6;
  stroke-linecap: round;
}

/* ==========================================================================
   DIAGRAMA ANIMADO DE CARRINHO (Página E-commerce)
   ========================================================================== */
.cart-diagram {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.cart-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.cart-handle {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-body {
  fill: var(--bg-secondary);
  stroke: var(--accent-color);
  stroke-width: 5;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.cart-line {
  stroke: var(--border-color);
  stroke-width: 2.5;
  opacity: 0.8;
}

.cart-wheel {
  fill: var(--bg-primary);
  stroke: var(--accent-color);
  stroke-width: 4;
}

.cart-hub {
  fill: var(--accent-color);
}

.cart-spoke {
  stroke: var(--bg-primary);
  stroke-width: 2.5;
}

.cart-speedline {
  stroke: var(--accent-color);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.3;
}

/* ==========================================================================
   DIAGRAMA ANIMADO DE PLATAFORMA EAD (Página Cursos EAD)
   ========================================================================== */
.ead-diagram {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.ead-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.ead-window-bar {
  fill: var(--bg-secondary);
  stroke: var(--border-color);
  stroke-width: 1;
}

.ead-dot.red { fill: #ff5f56; }
.ead-dot.yellow { fill: #ffbd2e; }
.ead-dot.green { fill: #27c93f; }

.ead-window-url {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: end;
}

.ead-video-area {
  fill: var(--bg-primary);
  stroke: var(--border-color);
  stroke-width: 1;
}

.ead-play-ring {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2;
}

.ead-play-triangle {
  fill: var(--accent-color);
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.5));
}

.ead-progress-rail {
  fill: var(--border-color);
  opacity: 0.5;
}

.ead-progress-fill {
  fill: var(--accent-color);
}

.ead-progress-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.ead-panel-bg {
  fill: var(--bg-secondary);
  stroke: var(--border-color);
  stroke-width: 1;
}

.ead-check-circle {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 2;
}

.ead-checkmark {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ead-lesson-line {
  stroke: var(--border-color);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.7;
}

.ead-badge-bg {
  fill: var(--bg-terminal);
  stroke: var(--accent-color);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(61, 220, 132, 0.6));
}

.ead-badge-check {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Painel Simulador de Sistema Lento */
.system-simulator {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  position: relative;
  z-index: 10;
}

.system-mockup {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 15px rgba(61, 220, 132, 0.05);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
  color: var(--text-primary);
  height: 250px;
  display: flex;
  flex-direction: column;
}

/* Barra Superior da Janela */
.system-header {
  background-color: var(--bg-terminal) !important;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color) !important;
  user-select: none;
}

.system-buttons {
  display: flex;
  gap: 8px;
}

.sys-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sys-btn.close { background-color: #ff5f56; }
.sys-btn.minimize { background-color: #ffbd2e; }
.sys-btn.maximize { background-color: #27c93f; }

.system-title {
  font-size: 0.75rem;
  color: #a3a3a3;
  font-weight: 500;
}

/* Barra de Abas / Menu */
.system-tabs {
  background-color: #252526;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  font-size: 0.75rem;
}

.system-tab {
  padding: 8px 16px;
  background-color: #1e1e1e;
  border-right: 1px solid #252526;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Conteúdo do Formulário Interno */
.system-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #1e1e1e;
  position: relative;
}

.sys-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sys-form-group label {
  font-size: 0.75rem;
  color: #858585;
}

.sys-input {
  background-color: #3c3c3c;
  border: 1px solid #555;
  border-radius: 4px;
  color: #fff;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.sys-btn-submit {
  background-color: var(--accent-color) !important;
  color: var(--bg-primary) !important;
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s;
  text-align: center;
  margin-top: 6px;
}
.sys-btn-submit.loading {
  background-color: #555;
  cursor: not-allowed;
}

/* Cursor Virtual */
.virtual-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white' stroke='black' stroke-width='2'%3E%3Cpath d='M2 2l11 20 4-8 8-4z'/%3E%3C/svg%3E");
  background-size: contain;
  z-index: 100;
  pointer-events: none;
  transition: top 0.6s ease-in-out, left 0.6s ease-in-out;
  display: none;
}

/* Painel de logs de erro */
.sys-log-panel {
  background-color: #000;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  margin-top: auto;
  font-size: 0.75rem;
  height: 110px;
  overflow-y: auto;
  color: #3d3;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.sys-log-line {
  margin-bottom: 4px;
  line-height: 1.3;
}

.sys-log-line.error {
  color: #ff5f56;
}

.sys-log-line.warning {
  color: #ffbd2e;
}

/* Glow e Efeito do Simulador */
.system-simulator::after {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(255, 95, 86, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Responsividade do Hero e Simulator */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .system-simulator {
    margin: 0 auto;
  }
}

/* Estilos do Modal de Erro do Simulador */
.sys-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

.sys-modal-content {
  text-align: center;
  width: 100%;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(61, 220, 132, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
  margin: 0 auto 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sys-modal-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.sys-modal-error {
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sys-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  animation: blink-red 0.8s infinite alternate;
}

@keyframes blink-red {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.3; transform: scale(1.1); }
}

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

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Blocos de códigos hacker flutuantes — só páginas técnicas */
.hacker-code-block {
  display: none;
}

.page-tech .hacker-code-block {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: rgba(61, 220, 132, 0.35); /* Verde hacker visível */
  margin: 0;
  padding: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
  width: 320px;
  max-width: 45%;
  overflow: hidden;
  white-space: pre-wrap;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hacker-code-block.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .hacker-code-block {
    display: none !important; /* Esconde no mobile para não poluir telas pequenas */
  }
}

