/* ============================================
   CENTRAL TECNOHUB - STYLES
   ============================================ */

:root {
  --red: #D82828;
  --red-glow: rgba(216, 40, 40, 0.3);
  --red-dim: rgba(216, 40, 40, 0.1);
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #c0c0c0;
  --gray-400: #888888;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #2a2a2a;
  --gray-800: #1a1a1a;
  --gray-900: #0d0d0d;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
  --nav-height: 72px;
}

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

::selection {
  background: var(--red);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--gray-900);
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.text-red { color: var(--red); }

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-900); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ============================================
   BOOT LOADER
   ============================================ */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#boot-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-content {
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.boot-logo {
  margin-bottom: 2rem;
}

.boot-svg {
  width: 80px;
  height: 80px;
  animation: boot-spin 2s linear infinite;
}

@keyframes boot-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.boot-circle { stroke-dasharray: 220; stroke-dashoffset: 220; animation: boot-draw 1.5s ease forwards; }
.boot-line-v { stroke-dasharray: 80; stroke-dashoffset: 80; animation: boot-draw 1s ease 0.3s forwards; }
.boot-line-v2 { stroke-dasharray: 90; stroke-dashoffset: 90; animation: boot-draw 1s ease 0.4s forwards; }
.boot-line-h { stroke-dasharray: 70; stroke-dashoffset: 70; animation: boot-draw 1s ease 0.5s forwards; }

@keyframes boot-draw {
  to { stroke-dashoffset: 0; }
}

.boot-terminal {
  text-align: left;
  margin-bottom: 2rem;
}

.boot-terminal .boot-line {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  opacity: 0;
  transform: translateY(5px);
  margin-bottom: 0.25rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.boot-terminal .boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-progress {
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 1px;
  overflow: hidden;
}

.boot-progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.1s linear;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cursor-dot, #cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translate(-50%, -50%);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(216, 40, 40, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

#cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: var(--red);
}

@media (max-width: 768px) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216, 40, 40, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(216, 40, 40, 0.2);
}

#main-nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

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

.nav-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

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

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

.nav-link-index {
  color: var(--red);
  font-size: 0.7rem;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  pointer-events: all;
  opacity: 1;
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px);
}

.mobile-menu-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-link:hover { color: var(--red); }

.mobile-link-index {
  color: var(--red);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.scroll-progress {
  height: 100%;
  width: 0;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
  transition: width 0.05s linear;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 8rem 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
}

.section-index::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 40, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 40, 40, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Terminal */
.hero-terminal {
  max-width: 600px;
  margin-bottom: 3rem;
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 2.2s forwards;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-700);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}

.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-left: auto;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-prompt { color: var(--red); }

.terminal-command { color: var(--gray-300); }

.terminal-cursor {
  color: var(--red);
  animation: cursorBlink 0.8s infinite;
}

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

.terminal-output {
  margin-top: 0.5rem;
  color: var(--gray-500);
  font-size: 0.8rem;
  line-height: 1.6;
}

.terminal-output .output-line {
  opacity: 0;
  transform: translateX(-5px);
}

.terminal-output .output-line.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Main */
.hero-main {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 2.5s forwards;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gray-700);
  border-radius: 50px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.hero-title-accent {
  color: var(--red);
}

/* Glitch */
.glitch-text {
  position: relative;
  display: inline-block;
}

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

.glitch-text:hover::before {
  animation: glitch-1 0.3s linear;
  color: cyan;
  opacity: 0.7;
  z-index: -1;
}

.glitch-text:hover::after {
  animation: glitch-2 0.3s linear;
  color: var(--red);
  opacity: 0.7;
  z-index: -2;
}

@keyframes glitch-1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, -2px); opacity: 0.7; }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 2px); }
  40% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -1px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 2px); }
  100% { clip-path: inset(50% 0 30% 0); transform: translate(0); opacity: 0; }
}

@keyframes glitch-2 {
  0% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 2px); opacity: 0.7; }
  20% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, -1px); }
  40% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 1px); }
  80% { clip-path: inset(5% 0 80% 0); transform: translate(1px, -2px); }
  100% { clip-path: inset(40% 0 40% 0); transform: translate(0); opacity: 0; }
}

.hero-slogan {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-400);
  margin-bottom: 2.5rem;
}

.slogan-bracket {
  color: var(--red);
  font-weight: 700;
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--red-glow);
}

.btn-glitch {
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0;
}

.btn-primary:hover .btn-glitch {
  animation: btn-glitch 0.3s linear;
}

@keyframes btn-glitch {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  25% { opacity: 0.5; clip-path: inset(30% 0 50% 0); transform: translateX(-3px); }
  50% { clip-path: inset(60% 0 20% 0); transform: translateX(3px); }
  75% { clip-path: inset(10% 0 70% 0); transform: translateX(-2px); }
  100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translateX(0); }
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 1rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.btn-secondary:hover { color: var(--white); }

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.btn-secondary:hover::after { width: 100%; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  opacity: 0;
  animation: fadeInUp 0.8s ease 2.8s forwards;
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--red);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-700);
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PROCESSO
   ============================================ */
.processo {
  background: var(--gray-900);
  padding-bottom: 6rem;
}

.processo .section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.processo-timeline {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Timeline connector - animated dots */
.timeline-connector {
  display: none;
}

.processo-step {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.processo-step.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Step connector between steps */
.step-connector {
  display: flex;
  align-items: center;
  padding-left: 29px;
  height: 50px;
  margin-bottom: 2rem;
  position: relative;
}

.connector-track {
  width: 2px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.connector-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0px,
    var(--red) 4px,
    transparent 4px,
    transparent 10px
  );
  opacity: 0.3;
}

.connector-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0px,
    var(--red) 4px,
    transparent 4px,
    transparent 10px
  );
  animation: flowDots 1.5s linear infinite;
}

@keyframes flowDots {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Hexagonal Node */
.step-node {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.step-node-hex {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--gray-800);
  border: none;
  transition: background 0.5s ease;
}

.step-node-hex::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--gray-900);
  transition: background 0.5s ease;
}

.processo-step.visible .step-node-hex {
  background: var(--red);
}

.step-node-icon {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  color: var(--gray-500);
  transition: color 0.5s ease;
}

.processo-step.visible .step-node-icon {
  color: var(--red);
}

.step-node-glow {
  position: absolute;
  inset: -8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--red);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.5s ease;
}

.processo-step.visible .step-node-glow {
  opacity: 0.15;
  animation: hexGlow 3s ease-in-out infinite;
}

@keyframes hexGlow {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}

.step-node-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gray-500);
  z-index: 2;
  transition: border-color 0.5s ease, color 0.5s ease, background 0.5s ease;
}

.processo-step.visible .step-node-number {
  border-color: var(--red);
  color: var(--red);
  background: var(--gray-900);
}

.step-content {
  flex: 1;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-800);
}

.step-terminal {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--gray-800);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.step-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
}

.step-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1.25rem;
}

.step-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--gray-700);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.step-tag:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 768px) {
  .processo-step { gap: 1.5rem; }
  .step-node { width: 46px; height: 46px; }
  .step-node-icon { width: 20px; height: 20px; }
  .step-connector { padding-left: 22px; height: 36px; margin-bottom: 1rem; }
}

/* ============================================
   SERVIÇOS
   ============================================ */
.servicos {
  padding-bottom: 6rem;
}

.servicos .section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.servicos-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .servicos-grid { grid-template-columns: 1fr; max-width: 600px; }
}

.servico-card {
  position: relative;
  padding: 2rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.servico-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

.servico-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.card-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transform: translateY(-100%);
}

.servico-card:hover .card-scan-line {
  opacity: 1;
  animation: scanLine 1.5s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(calc(100vh)); opacity: 0; }
}

.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.servico-card:hover .card-corner { opacity: 1; }

.card-corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.card-corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.card-corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
.card-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-600);
}

.status-dot.active {
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
  animation: pulse-dot 2s infinite;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.feature-check {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.card-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-600);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  transition: gap 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover { gap: 0.75rem; }

/* ============================================
   SOBRE
   ============================================ */
.sobre {
  background: var(--gray-900);
  min-height: auto;
  padding: 5rem 2rem;
}

.sobre-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .sobre-grid { grid-template-columns: 1fr; }
}

.sobre-text {
  margin-bottom: 1rem;
}

.sobre-text p {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sobre-highlight {
  font-size: 1.3rem;
  color: var(--white) !important;
}

.sobre-highlight strong {
  color: var(--red);
}

/* Metrics */
.sobre-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-bar {
  width: 100%;
  height: 4px;
  background: var(--gray-800);
  border-radius: 2px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  border-radius: 2px;
  transition: width 1.5s ease;
  box-shadow: 0 0 8px var(--red-glow);
}

.metric-fill.animated {
  width: var(--target-width);
}

.metric-info {
  display: flex;
  justify-content: space-between;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

/* Server Rack */
.server-rack {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.server-rack.visible {
  opacity: 1;
  transform: translateY(0);
}

.rack-frame {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rack-unit {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--black);
  border: 1px solid var(--gray-800);
  border-radius: 4px;
  position: relative;
}

.rack-unit::before {
  content: attr(data-label);
  position: absolute;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-600);
  letter-spacing: 0.1em;
}

.rack-leds {
  display: flex;
  gap: 4px;
}

.led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.led-green { background: #28c840; box-shadow: 0 0 4px rgba(40, 200, 64, 0.5); }
.led-red { background: #D82828; box-shadow: 0 0 4px var(--red-glow); }

.led.blink { animation: ledBlink 0.5s infinite; }
.led.blink-slow { animation: ledBlink 2s infinite; }

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

.rack-ports {
  display: flex;
  gap: 3px;
}

.port {
  width: 10px;
  height: 8px;
  border: 1px solid var(--gray-700);
  border-radius: 1px;
  background: var(--gray-900);
}

.port.active {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

.rack-drives {
  display: flex;
  gap: 3px;
}

.drive {
  width: 14px;
  height: 20px;
  border: 1px solid var(--gray-700);
  border-radius: 2px;
  background: var(--gray-900);
}

.drive.active {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

.rack-meter {
  flex: 1;
  max-width: 100px;
  height: 8px;
  background: var(--gray-900);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, #28c840, #ffbd2e);
  border-radius: 4px;
}

.meter-label {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-500);
}

.rack-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

.rack-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
  animation: pulse-dot 2s infinite;
}

/* ============================================
   CONTATO
   ============================================ */
.contato {
  padding-bottom: 6rem;
}

.contato .section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

/* Form Alert */
.form-alert {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.5s ease;
}

.form-alert-success {
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #28c840;
}

.form-alert-error {
  background: rgba(216, 40, 40, 0.1);
  border: 1px solid rgba(216, 40, 40, 0.3);
  color: var(--red);
}

.form-alert-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.contato-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .contato-grid { grid-template-columns: 1fr; }
}

.contato-form-wrapper {
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-900);
}

.form-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-700);
}

.form-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-left: auto;
}

.contato-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { position: relative; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.form-label-icon {
  color: var(--red);
  margin-right: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-bottom-color: var(--red);
}

.form-input::placeholder {
  color: var(--gray-600);
}

.form-input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.form-input:focus ~ .form-input-line {
  width: 100%;
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: none;
}

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

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--red-glow);
}

/* Info Cards */
.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  padding: 1.25rem 1.5rem;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.info-card:hover { border-color: var(--gray-700); }

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1rem;
  color: var(--white);
}

.info-card-cta {
  background: linear-gradient(135deg, rgba(216, 40, 40, 0.1), transparent);
  border-color: rgba(216, 40, 40, 0.3);
}

.cta-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.cta-prompt { color: var(--red); }

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--gray-800);
  padding: 2rem;
  background: var(--black);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
  .section { padding: 6rem 1.25rem; }
}
