/* css/style.css - Cyberpunk Style Restored */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

:root {
  /* PALETA DE CORES CYBERPUNK/TECH */
  --primary: #050B14;
  --secondary: #D75A12; /* Laranja da Forja */
  --secondary-glow: rgba(215, 90, 18, 0.6);
  --accent: #00C9FF; /* Azul Tech */
  --accent-glow: rgba(0, 201, 255, 0.6);
  --dark: #02060B;
  --surface: rgba(10, 27, 43, 0.6);
  --light: #E0E6ED;
  --gray: #8A9BA8;

  --gradient-primary: linear-gradient(135deg, #D75A12 0%, #FF8A3D 100%);
  --gradient-tech: linear-gradient(135deg, rgba(10,27,43,0.9) 0%, rgba(5,11,20,0.95) 100%);

  /* FONTES */
  --font-display: 'Orbitron', sans-serif; /* Títulos Robóticos */
  --font-body: 'Exo 2', sans-serif;       /* Texto Leitura */
  --font-code: 'Share Tech Mono', monospace; /* Detalhes Técnicos */
  
  --trans-fast: 0.2s ease;
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(0, 201, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

body.nav-open {
  overflow: hidden;
}

/* SCROLLBAR CUSTOMIZADA */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAVEGAÇÃO HUD */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: rgba(2, 6, 11, 0.9);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 201, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 201, 255, 0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1520px;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
  white-space: nowrap;
}

.logo span {
  background: linear-gradient(90deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ÍCONE DA EMPRESA */
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

/* botão hambúrguer (mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,201,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--light);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0,201,255,0.06);
  flex: 0 0 auto;
}

.nav-toggle i { font-size: 1.15rem; }

/* backdrop do menu mobile */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 900;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  color: var(--light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

/* ─────────────────────────────────────────────────────────
   ESTADOS DO MENU — SEPARADOS COMPLETAMENTE

   1. HOVER — só enquanto o mouse está sobre o elemento
   2. FOCO POR TECLADO — :focus-visible (nunca :focus simples)
   3. DROPDOWN ABERTO — classe .is-open adicionada via JS só ao botão pai
   4. PÁGINA ATUAL — [aria-current="page"] + .is-current, adicionado via JS
───────────────────────────────────────────────────────── */

/* 1 & 2 — Hover e foco por teclado: temporário, nunca persistente */
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* 3 — Dropdown aberto: somente o botão PAI recebe destaque temporário */
.nav-links a.dropdown-toggle.is-open {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* 4 — Página atual: destaque PERMANENTE somente no link correto */
.nav-links a.is-current,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Links dentro de submenus: cor padrão por defeito (nunca herdam do pai) */
.dropdown-menu a {
  color: var(--light) !important;
  text-shadow: none !important;
}
/* Exceção: hover/foco nos links do submenu */
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--accent) !important;
}
/* Exceção: link atual dentro do submenu */
.dropdown-menu a.is-current,
.dropdown-menu a[aria-current="page"] {
  color: var(--accent) !important;
  text-shadow: 0 0 8px var(--accent-glow) !important;
}

/* Sublinhado animado — base */
.nav-links > li > a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--accent);
}
/* Sublinhado: hover e foco por teclado */
.nav-links > li > a:not(.btn):hover::after,
.nav-links > li > a:not(.btn):focus-visible::after { width: 100%; }
/* Sublinhado: dropdown pai aberto (somente via .is-open, sem :focus-within) */
.nav-links > li > a.dropdown-toggle.is-open::after { width: 100%; }
/* Sublinhado: página atual */
.nav-links > li > a.is-current:not(.btn)::after,
.nav-links > li > a[aria-current="page"]:not(.btn)::after { width: 100%; }

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px rgba(0,201,255,0.1) inset;
}
.btn-primary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(215, 90, 18, 0.4);
}

/* CTA desktop */
.nav-links .btn {
  padding: 0 32px !important;
  height: 50px;
  max-width: 280px;
  border-radius: 4px;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  background: rgba(215, 90, 18, 0.1);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  white-space: nowrap;
}
.nav-links .btn:hover {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 0 20px var(--secondary-glow);
  transform: translateY(-2px);
}
.nav-links .btn::after { display: none; }
/* Garante que o .active ou aria-current nunca afete o CTA com cor de página */
.nav-links .btn.active,
.nav-links .btn[aria-current] {
  color: var(--secondary) !important;
  text-shadow: none !important;
}

/* ===== Dropdown ===== */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: transparent;
}

.nav-links a.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a.dropdown-toggle i {
  font-size: 0.8rem;
  opacity: 0.9;
  transition: transform 0.25s;
}

/* Ícone do dropdown: roda apenas com hover do mouse (desktop) ou classe .is-open (JS) */
.nav-item-dropdown:hover > .dropdown-toggle i,
.nav-item-dropdown > .dropdown-toggle.is-open i {
  transform: rotate(180deg);
}
/* NÃO usa :focus-within para não propagar estado aos filhos */

.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(2, 6, 11, 0.96);
  border: 1px solid rgba(0, 201, 255, 0.18);
  box-shadow: 0 0 25px rgba(0, 201, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 10px;
  border-radius: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 2000;
}

/* Desktop: dropdown abre só com hover do mouse (sem :focus-within) */
.nav-item-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(2, 6, 11, 0.96);
  border-left: 1px solid rgba(0, 201, 255, 0.18);
  border-top: 1px solid rgba(0, 201, 255, 0.18);
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: 0.25s;
}

.dropdown-menu a:hover {
  color: var(--accent);
  border-color: rgba(0, 201, 255, 0.28);
  background: rgba(0, 201, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 201, 255, 0.08);
  transform: translateX(2px);
}
/* Sublinhados nos links de submenu: nunca aparecem */
.dropdown-menu a::after { display: none !important; }

/* Hero Section (Standard Video) */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-sticky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-sticky::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.hero-sticky::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(215, 90, 18, 0.12) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
  word-break: break-word;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--secondary) 0%, #fff 50%, var(--secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* SEÇÕES */
.section { 
  padding: 6rem 2rem; 
  position: relative; 
  background: var(--dark);
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::before {
  content: '//';
  color: var(--secondary);
  margin-right: 10px;
  font-weight: 900;
}

.section-title::after {
  content: '';
  display: block;
  margin: 24px auto 0;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-top: 0;
  margin-bottom: 4rem;
  font-family: var(--font-code);
}

/* CARDS TECH (Services) */
.services-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; /* Reduzido de 2rem para caberem 4 cards */
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

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

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem; /* Reduzido o padding para não espremer o conteúdo */
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 30px 30px 0;
  border-style: solid;
  border-color: rgba(255,255,255,0.05) var(--dark);
  transition: border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.service-card:hover::after { border-color: var(--accent) var(--dark); }

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}
.service-icon i { font-size: 1.5rem; color: var(--secondary); transition: 0.3s; }
.service-card:hover .service-icon i { color: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }

.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.8rem; color: #fff; line-height: 1.3; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.5; margin: 0; }


/* =========================================
   NOSSA ORIGEM (Redesign)
   ========================================= */
.origem-section {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
}

.origem-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.origem-grid {
  display: flex;
  align-items: center;
  gap: 80px;
  justify-content: space-between;
}

/* Coluna Esquerda */
.origem-content {
  width: 62%;
  max-width: 700px;
}

.origem-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(0, 201, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 201, 255, 0.2);
}

.origem-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-align: left;
}

.origem-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin-bottom: 32px;
}

.origem-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--light);
}

.origem-text p {
  margin-bottom: 20px;
}
.origem-text p:last-child {
  margin-bottom: 0;
}

.origem-text strong {
  color: var(--accent);
  font-weight: 600;
}

.origem-quote {
  margin-top: 40px;
  padding: 24px 32px;
  background: rgba(10, 27, 43, 0.4);
  border-left: 4px solid var(--secondary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Coluna Direita */
.origem-visual {
  width: 38%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.origem-card-premium {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 40px;
  background: rgba(2, 6, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.origem-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--secondary) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0.5;
}

.origem-logo-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

.origem-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255, 0.95) 0%, rgba(255,255,255, 0.6) 35%, transparent 70%);
  filter: blur(30px);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

/* Responsividade Origem */
@media (max-width: 1024px) {
  .origem-grid { gap: 40px; }
  .origem-content { width: 55%; }
  .origem-visual { width: 45%; }
}

@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; margin-bottom: 2.5rem; }
  .origem-section { padding: 80px 0; }
  .origem-container { padding: 0 24px; }
  .origem-grid { flex-direction: column; align-items: flex-start; gap: 48px; }
  .origem-content { width: 100%; max-width: 100%; }
  .origem-title { font-size: 2.2rem; }
  .origem-visual { width: 100%; }
  .origem-card-premium { max-width: 300px; padding: 30px; }
  .origem-logo-img { max-width: 240px; }
}


/* EQUIPE */
.team-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.team-member {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}
.team-member::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, var(--accent), transparent) top left/20% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--accent)) bottom right/20% 1px no-repeat,
    linear-gradient(0deg, var(--accent), transparent) top left/1px 20% no-repeat,
    linear-gradient(0deg, transparent, var(--accent)) bottom right/1px 20% no-repeat;
  opacity: 0.5;
  transition: 0.3s;
}
.team-member:hover::before { opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }

.member-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  padding: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  flex: 0 0 auto;
}
.member-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-bottom-color: var(--accent);
  animation: spin 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  filter: grayscale(35%);
  transition: 0.3s;
  position: relative;
  z-index: 1;
}
.team-member:hover .member-avatar img { filter: grayscale(0%); transform: scale(1.1); }

.member-info h3 { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.member-role {
  color: var(--secondary);
  font-family: var(--font-code);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.member-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.skill-tag {
  font-size: 0.7rem;
  font-family: var(--font-code);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
}


/* APP CARDS (Cyberpunk Style) */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.app-card {
  background: rgba(10, 27, 43, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
}
.app-card:hover::before { left: 100%; }
.app-card:hover {
  background: rgba(10, 27, 43, 0.7);
  box-shadow: -10px 0 30px rgba(0, 201, 255, 0.15);
}

.app-card.disabled {
  border-left-color: var(--gray);
  opacity: 0.8;
}
.app-card.disabled:hover {
  box-shadow: none;
  background: rgba(10, 27, 43, 0.4);
}

.app-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.app-info p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.app-status.active { color: var(--accent); border-color: var(--accent); background: rgba(0, 201, 255, 0.1); }
.app-status.dev { color: var(--secondary); border-color: var(--secondary); background: rgba(215, 90, 18, 0.1); }

.app-features {
  list-style: none;
  margin-bottom: 2rem;
}
.app-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}
.app-features li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-code);
  font-weight: bold;
}

.app-visual {
  width: 100%;
  height: 300px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.app-visual::after {
  content:''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,201,255,0.05) 3px, rgba(0,201,255,0.05) 3px);
  pointer-events: none;
}
.app-card.disabled .app-visual::after {
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
}

.btn-disabled {
  background: rgba(255,255,255,0.05);
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: not-allowed;
}


/* NOVIDADES (Articles) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,201,255,0.1);
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: #fff; /* Logo transparente */
  padding: 2rem;
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.article-category {
  color: var(--accent);
  text-transform: uppercase;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.article-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-family: var(--font-code);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.read-more:hover { color: var(--accent); }

/* SINGLE ARTICLE */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding-top: 8rem;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.article-header-meta {
  font-family: var(--font-code);
  color: var(--gray);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.article-cover {
  width: 100%;
  max-width: 900px;
  height: 400px;
  object-fit: contain;
  margin: 0 auto 3rem;
  display: block;
  background: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(0,201,255,0.1);
  padding: 2rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--light);
}
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 3rem 0 1rem;
}
.article-body ul { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-body li { margin-bottom: 0.5rem; }


/* FOOTER */
.footer {
  background: #020406;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(215, 90, 18, 0.05);
  border: 1px solid rgba(215, 90, 18, 0.2);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(215, 90, 18, 0.15);
  transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
  background: rgba(215, 90, 18, 0.1);
  box-shadow: 0 0 15px rgba(215, 90, 18, 0.3);
  border-color: rgba(215, 90, 18, 0.4);
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.footer-about p { color: var(--gray); font-size: 0.9rem; margin-top: 1rem; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: #fff;
}
.social-link:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-3px); }

.footer h4 { font-family: var(--font-display); color: #fff; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--gray); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #555;
  font-size: 0.8rem;
  font-family: var(--font-code);
}


/* ===== Article Template Styles ===== */
.article-template {
  padding: 140px 0 80px;
}
.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--light-muted);
  margin-bottom: 20px;
  list-style: none;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--secondary);
}
.breadcrumb li::after {
  content: '/';
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.2);
}
.breadcrumb li:last-child::after {
  content: '';
}
.article-category {
  display: inline-block;
  background: rgba(0, 201, 255, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 201, 255, 0.2);
}
.article-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}
.article-cover {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 50px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 201, 255, 0.15);
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 50px 0 20px;
  color: var(--light);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 15px;
  color: var(--light);
}
.article-body p {
  margin-bottom: 24px;
  text-align: justify;
}
.article-body ul {
  margin: 0 0 24px 20px;
  list-style: disc;
}
.article-body li {
  margin-bottom: 10px;
  text-align: justify;
}
.article-body strong {
  color: var(--light);
}
.article-footer {
  max-width: 760px;
  margin: 60px auto 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}
.article-cta {
  margin: 40px 0;
  text-align: center;
}
.related-articles {
  max-width: 1200px;
  margin: 80px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 60px;
}
.related-articles h3 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .hero-content { text-align: center; align-items: center; }
  .hero-content p { border: none; padding: 0; text-align: center; margin: 0 auto 2.5rem; }
  .app-card { 
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1300px) {
  .nav-toggle { display: inline-flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 380px);
    background: rgba(2, 6, 11, 0.98);
    border-left: 1px solid rgba(0,201,255,0.18);
    box-shadow: -20px 0 50px rgba(0,0,0,0.55);
    padding: 92px 16px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.22s ease;
    z-index: 1100;
  }
  
  body.nav-open .nav-links { transform: translateX(0); }
  
  .nav-links > li { width: 100%; }
  
  .nav-links > li > a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links > li > a::after { display: none !important; }

  /* Estado página atual no mobile: borda lateral destacada */
  .nav-links > li > a.is-current,
  .nav-links > li > a[aria-current="page"] {
    border-color: rgba(0,201,255,0.35);
    background: rgba(0,201,255,0.07);
  }
  /* Dropdown ABERTO no mobile: apenas o botão pai recebe destaque temporário */
  .nav-links > li > a.dropdown-toggle.is-open {
    border-color: rgba(0,201,255,0.25);
    background: rgba(0,201,255,0.04);
  }

  /* CTA "Falar com a equipe" no mobile — mesma largura dos outros itens */
  .nav-links > li > a.btn,
  .nav-links > li > .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 56px;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: none !important;
    padding: 14px 16px !important;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: 12px;
    font-size: 0.92rem;
    /* Mantém identidade laranja do CTA */
    background: rgba(215, 90, 18, 0.12) !important;
    border: 1px solid var(--secondary) !important;
    color: var(--secondary) !important;
    text-shadow: none !important;
  }
  .nav-links > li > a.btn:hover,
  .nav-links > li > .btn:hover {
    background: var(--secondary) !important;
    color: #fff !important;
    box-shadow: 0 0 20px var(--secondary-glow);
  }
  
  .nav-item-dropdown { width: 100%; }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-width: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  
  .nav-item-dropdown.open .dropdown-menu {
    max-height: 520px;
    padding: 10px 0;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
  }
  /* Item de submenu com página atual no mobile */
  .dropdown-menu a.is-current,
  .dropdown-menu a[aria-current="page"] {
    color: var(--accent) !important;
    border-color: rgba(0,201,255,0.28);
    background: rgba(0,201,255,0.06);
  }
  
  .hero-content h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  
  .history-container { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .articles-grid {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .article-card {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 32px;
    padding: 0;
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .section,
  .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .article-template,
  .article-header,
  .article-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
  }
  
  .article-template {
    padding-inline: 20px;
    overflow-x: hidden;
  }
  
  .article-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }
  
  .article-body p,
  .article-body li {
    text-align: left !important;
    width: 100%;
    max-width: 100%;
    font-size: clamp(1rem, 4.2vw, 1.15rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
  
  .article-body ul,
  .article-body ol {
    width: 100%;
    max-width: 100%;
    padding-left: 1.3rem;
    margin-left: 0;
  }
  
  .article-body img,
  .article-body video,
  .article-body iframe,
  .article-body table {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .apps-grid {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }
  
  .app-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
    padding: 24px 16px !important;
    box-sizing: border-box;
  }
  
  .app-info, .app-features, .app-status {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .app-card .btn {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .app-visual {
    width: 100%;
    max-width: 100%;
    padding: 1rem !important;
    box-sizing: border-box;
  }
  
  .app-card img,
  .app-card picture,
  .app-card .app-image {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
  }
}
