/* ==========================================================================
   TECHDIM INOVA SIMPLES (I.S.) - ME | CIBERSEGURANÇA & CLOUD ARCHITECTURE
   Site Oficial de Alta Conversão para Clientes B2B (GitHub Pages Ready)
   Design System: Deep Cyberpunk / Enterprise DevSecOps Aesthetics
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-void: #030712;
  --bg-deep: #060B17;
  --bg-card: rgba(10, 18, 36, 0.75);
  --bg-card-hover: rgba(16, 28, 56, 0.9);
  --bg-terminal: #02050B;
  
  --cyan-neon: #00F0FF;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --cyan-subtle: rgba(0, 240, 255, 0.1);
  --blue-cyber: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.4);
  --purple-neon: #D946EF;
  --purple-glow: rgba(217, 70, 239, 0.3);
  
  --emerald-live: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber-warn: #F59E0B;
  --rose-crit: #F43F5E;

  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5B;
  --whatsapp-glow: rgba(37, 211, 102, 0.4);

  --text-pure: #FFFFFF;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  --border-cyber: rgba(0, 240, 255, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-w: 1280px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Skip Link for WCAG Accessibility (Keyboard Users) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--cyan-neon);
  color: #030712;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  box-shadow: 0 0 20px var(--cyan-glow);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* 
 * Accessibility Focus Visible Styles
 * Expected Impact: Enhances keyboard navigation accessibility (WCAG 2.1 SC 2.4.7)
 * without adding visible focus rings for mouse clicks.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 3px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* 
 * Prefers-Reduced-Motion
 * Expected Impact: Prevents motion-triggered sickness for sensitive users
 * and reduces GPU/CPU rendering cycles for users requesting reduced motion.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-void);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-void);
  min-height: 100vh;
  position: relative;
}

/* Background Cyber Grid & Vignette */
.cyber-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(217, 70, 239, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utility Classes */
.text-cyan { color: var(--cyan-neon); }
.text-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.gradient-text-cyber {
  background: linear-gradient(135deg, #FFFFFF 0%, #00F0FF 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #00F0FF 0%, #D946EF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyber);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

/* Official 3D Cube Showcase in Hero */
.cube-showcase-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, rgba(13, 24, 48, 0.8) 0%, #030712 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cube-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cube-showcase-container:hover .cube-showcase-img {
  transform: scale(1.03);
}

.cube-hologram-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 7, 18, 0.7) 90%);
}

.cube-status-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--cyan-neon);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.cube-play-overlay-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(3, 7, 18, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.cube-play-overlay-btn:hover {
  background: var(--cyan-neon);
  color: #030712;
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Multiagent Engine Grid */
.multiagent-section {
  padding: 6.5rem 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 23, 0.7) 50%, transparent 100%);
}

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

.agent-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}

.agent-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyber);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.1);
}

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

.agent-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.agent-status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald-live);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.agent-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.agent-box p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.agent-metric-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-neon);
}


.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.brand-title span {
  color: var(--cyan-neon);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-neon);
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
  transition: width 0.25s var(--ease);
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.btn-header-wa:hover {
  background: #25D366;
  color: #030712;
  box-shadow: 0 0 20px var(--whatsapp-glow);
  transform: translateY(-2px);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25D366;
  animation: pulseGreenDot 2s infinite;
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.5rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 18, 36, 0.85);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem 0.35rem 0.5rem;
  margin-bottom: 1.6rem;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #030712;
  background: var(--cyan-neon);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.announcement-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #030A05;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-cta-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: #000;
}

.btn-cta-scanner {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(10, 18, 36, 0.9);
  border: 1px solid var(--border-cyber);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.btn-cta-scanner:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.6rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cred-item svg {
  color: var(--cyan-neon);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Institutional Video / 3D Showcase Card */
.video-showcase-box {
  position: relative;
  border: 1px solid var(--border-cyber);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.15);
}

.video-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(6, 11, 23, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ef4444; }
.dot-y { background: #eab308; }
.dot-g { background: #10b981; }

.frame-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-neon);
}

.video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.video-overlay-ctrls {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  z-index: 10;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--cyan-neon);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #fff;
}

.video-mode-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(6, 11, 23, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

/* ==========================================================================
   Metrics Counter Ribbon
   ========================================================================== */
.stats-ribbon {
  padding: 3rem 0;
  background: rgba(6, 11, 23, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0.8rem;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--cyan-neon);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px var(--cyan-glow);
}

.stat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Interactive Threat Scanner Kether_1
   ========================================================================== */
.scanner-section {
  padding: 6.5rem 0;
  position: relative;
}

.scanner-cockpit {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 45px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(20px);
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.terminal-box {
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(10, 18, 36, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-neon);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #A7F3D0;
  line-height: 1.7;
  height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-neon) transparent;
}

.log-line {
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.log-line.cyan { color: var(--cyan-neon); }
.log-line.warn { color: var(--amber-warn); }
.log-line.error { color: var(--rose-crit); }
.log-line.accent { color: var(--purple-neon); }

.scanner-controls {
  padding: 1.2rem;
  background: rgba(6, 11, 23, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 1rem;
}

.btn-scan-trigger {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--blue-cyber) 100%);
  color: #030712;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-scan-trigger:hover {
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-scan-reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-scan-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Scanner Results Dashboard */
.scanner-results {
  background: rgba(6, 11, 23, 0.85);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-display-box {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.8rem;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--cyan-neon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--cyan-glow);
  flex-shrink: 0;
}

.score-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-neon);
}

.score-desc h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.score-desc p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metrics-audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.audit-item .lbl {
  color: var(--text-muted);
}

.audit-item .val {
  font-weight: 600;
  color: #fff;
}

.audit-item .status-ok { color: var(--emerald-live); }
.audit-item .status-warn { color: var(--amber-warn); }
.audit-item .status-bad { color: var(--rose-crit); }

.export-wa-card {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.export-wa-card p {
  font-size: 0.82rem;
  color: #E2E8F0;
}

.btn-export-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #030712;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-export-wa:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Catalog of Specialized B2B Services
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  position: relative;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-cyber);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(0, 240, 255, 0.12);
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--cyan-subtle);
  border: 1px solid var(--border-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
  margin-bottom: 1.6rem;
  transition: all 0.25s var(--ease);
}

.service-card:hover .service-icon-wrap {
  background: var(--cyan-neon);
  color: #030712;
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: scale(1.05);
}

.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.service-body {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.btn-open-service {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-neon);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s;
}

.btn-open-service:hover {
  transform: translateX(4px);
  color: #fff;
}

/* ==========================================================================
   Downtime Loss & ROI Calculator
   ========================================================================== */
.roi-section {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 23, 0.7) 50%, transparent 100%);
}

.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.slider-group {
  margin-bottom: 2.2rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.slider-label-row span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.slider-value-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-cyber);
}

.cyber-range {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.cyber-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 15px var(--cyan-neon);
  cursor: pointer;
  transition: transform 0.15s;
}

.cyber-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-outcome-card {
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 2.4rem;
  text-align: center;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.outcome-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--rose-crit);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1.2rem;
}

.outcome-loss-val {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.outcome-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.btn-prevent-loss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #030712;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.btn-prevent-loss:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #000;
}

/* ==========================================================================
   About Leadership & Institutional Credibility
   ========================================================================== */
.about-section {
  padding: 6.5rem 0;
}

.about-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-bio h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.founder-credential-card {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.founder-avatar-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cyan-neon);
  background: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan-neon);
  box-shadow: 0 0 15px var(--cyan-glow);
  flex-shrink: 0;
}

.founder-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.founder-details .role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-neon);
}

.certifications-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-pill {
  background: rgba(6, 11, 23, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-pill svg {
  color: var(--cyan-neon);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cert-pill .cert-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.cert-pill .cert-auth {
  font-size: 0.78rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Intelligence Transmission (DCISE)
   ========================================================================== */
.dcise-banner {
  margin: 4rem 0 2rem;
  background: rgba(10, 18, 36, 0.6);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dcise-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--purple-neon));
}

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

.dcise-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple-neon);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dcise-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 6.5rem 0;
}

.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.25s;
}

.faq-card.open {
  border-color: var(--border-cyber);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.6rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.faq-arrow {
  color: var(--cyan-neon);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-card.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 1.6rem;
}

.faq-card.open .faq-panel {
  max-height: 400px;
  padding: 0 1.6rem 1.4rem 1.6rem;
}

/* ==========================================================================
   Contact & Direct Conversion Hub
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 11, 23, 0.85) 100%);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(0, 240, 255, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.direct-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.channel-card-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.channel-card-link:hover {
  border-color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.05);
  transform: translateX(6px);
}

.channel-card-link.wa-accent {
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.06);
}

.channel-card-link.wa-accent:hover {
  background: rgba(37, 211, 102, 0.15);
  box-shadow: 0 0 25px var(--whatsapp-glow);
}

.channel-icon-circ {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  flex-shrink: 0;
}

.channel-card-link.wa-accent .channel-icon-circ {
  background: #25D366;
  color: #030712;
}

.channel-data {
  display: flex;
  flex-direction: column;
}

.channel-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dark);
}

.channel-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Tactical Form */
.tactical-form {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
}

.cyber-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.cyber-input:focus {
  outline: none;
  border-color: var(--cyan-neon);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.cyber-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--blue-cyber) 100%);
  color: #030712;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.05rem 1.8rem;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 0.5rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #020409;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 340px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-dark);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--cyan-neon);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #030712;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
  color: #000;
}

/* Toast Message */
.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0B132B;
  color: #fff;
  border: 1px solid var(--cyan-neon);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--cyan-glow);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
}

.toast-box.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal Drawer for Service Details */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

.modal-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scanner-grid, .roi-grid, .about-layout, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .btn-header-wa span {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 0.9rem;
    border-radius: 50%;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .scanner-cockpit, .roi-card, .about-card-box, .contact-box {
    padding: 1.8rem 1.4rem;
  }
}


/* ==========================================================================
   RESPONSIVE v2 — header fluido + correção de overflow mobile (out/2026)
   ========================================================================== */

/* ---- Header: ajusta continuamente ao redimensionar ---- */
.nav-bar { gap: clamp(0.75rem, 1.6vw, 2rem); height: auto; min-height: 76px; }
.brand-wrapper { min-width: 0; flex-shrink: 0; gap: clamp(0.6rem, 1vw, 1rem); }
.brand-logo-img { width: clamp(40px, 3.4vw, 50px); height: clamp(40px, 3.4vw, 50px); }
.brand-title { font-size: clamp(1.1rem, 1.5vw, 1.4rem); white-space: nowrap; }
.brand-subtitle { font-size: clamp(0.6rem, 0.7vw, 0.68rem); white-space: nowrap; letter-spacing: 0.12em; }
nav[aria-label="Navegação Principal"] { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.nav-menu { gap: clamp(0.85rem, 1.5vw, 1.8rem); flex-wrap: nowrap; }
.nav-link { white-space: nowrap; font-size: clamp(0.82rem, 0.95vw, 0.92rem); }
.nav-cta-group { flex-shrink: 0; gap: 0.75rem; }
.btn-header-wa { white-space: nowrap; padding: 0.55rem clamp(0.8rem, 1.1vw, 1.25rem); font-size: clamp(0.8rem, 0.9vw, 0.88rem); min-height: 44px; }
.btn-header-wa .wa-ico { flex-shrink: 0; display: none; }
.btn-header-wa .wa-label-short { display: none; }
.btn-header-wa .live-pulse-dot { flex-shrink: 0; }
.mobile-toggle { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; }

/* O número fica no botão do hero e no flutuante; no topo (container de 1280px) cabe só "WhatsApp".
   Com o texto completo o menu invadia a marca e o botão em telas largas. */
.btn-header-wa .wa-label-full { display: none; }
.btn-header-wa .wa-label-short { display: inline; }

/* Abaixo de 900px: menu hambúrguer (com 4 itens no menu, cabe inteiro a partir daí) */
@media (max-width: 899px) {
  nav[aria-label="Navegação Principal"] { flex: 0 0 auto; }
  .site-header .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #030712; border-bottom: 1px solid var(--border-subtle);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-header .nav-menu.open { display: flex; }
  .site-header .nav-menu .nav-link { display: flex; align-items: center; min-height: 48px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .mobile-toggle { display: inline-flex; }
}

/* Celular: só ícone WhatsApp (o botão nunca fica vazio) */
@media (max-width: 768px) {
  .nav-bar { min-height: 68px; }
  .btn-header-wa span.wa-label, .btn-header-wa .live-pulse-dot { display: none !important; }
  .btn-header-wa .wa-ico { display: block; }
  .btn-header-wa { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .site-header .nav-menu { max-height: calc(100vh - 68px); }
  .floating-whatsapp span { display: none; }
}
@media (max-width: 400px) {
  .brand-subtitle { display: none; }
}

/* ---- Grids: nunca maiores que o container ---- */
.hero-grid > *, .scanner-grid > *, .services-grid > *, .contact-grid > *,
.multiagent-grid > *, .roi-grid > *, .about-layout > *, .stats-grid > *, .footer-grid > * { min-width: 0; }
.multiagent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .multiagent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero-grid, .scanner-grid, .roi-grid, .about-layout, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .multiagent-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
  .terminal-body, .log-line { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
  .contact-box h2, .contact-box a, .contact-box div, .channel-card-link { overflow-wrap: anywhere; }
  .contact-box h2 { font-size: clamp(1.5rem, 6.5vw, 2.2rem) !important; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions > a, .hero-actions > button { width: 100%; justify-content: center; text-align: center; }
  .btn-export-wa { white-space: normal; }
  /* espaço para o botão flutuante não cobrir conteúdo */
  footer { padding-bottom: 90px; }
}

/* Títulos fluidos */
.hero-heading { font-size: clamp(1.9rem, 4.2vw + 0.5rem, 3.8rem); overflow-wrap: anywhere; hyphens: auto; }
h2 { overflow-wrap: break-word; }

/* ---- Toque e legibilidade ---- */
@media (max-width: 768px) {
  a, button { -webkit-tap-highlight-color: transparent; }
  .service-card a, .footer-links a, .video-tab, .hero-media-tabs button, [class*="tab-btn"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Rede de segurança contra scroll lateral */
html { overflow-x: clip; }


/* Formulário e scanner: campos fluidos */
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-group { min-width: 0; }
.cyber-input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; font-size: max(16px, 0.95rem); }
.scanner-controls { flex-wrap: wrap; }
.btn-scan-trigger { min-width: 0; min-height: 44px; }
.btn-scan-reset { min-height: 44px; }
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: minmax(0, 1fr); }
  .scanner-controls > * { flex: 1 1 100%; }
}

/* ==========================================================================
   Seção de Portfólio Open-Core & Produtos de Referência (Techdim Google IA)
   ========================================================================== */
.portfolio-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: rgba(10, 18, 36, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 16px 36px rgba(0, 229, 255, 0.15), 0 0 20px rgba(124, 77, 255, 0.2);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060913;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00E5FF;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.portfolio-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.portfolio-desc {
  font-size: 0.92rem;
  color: var(--text-muted, #94A3B8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-tag {
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: #D8B4FE;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.portfolio-action {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

.btn-github-view {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(124, 77, 255, 0.18));
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-github-view:hover {
  background: linear-gradient(135deg, #00E5FF, #7C4DFF);
  color: #060913;
  border-color: #00E5FF;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.investor-cta-box {
  margin-top: 4.5rem;
  background: linear-gradient(135deg, rgba(10, 24, 52, 0.85), rgba(20, 15, 45, 0.9));
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md, 16px);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.investor-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00E5FF, #7C4DFF, #4285F4);
}

.investor-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.investor-cta-desc {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.investor-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   DESIGN v3 — refinamento UX/UI e responsividade total (out/2026)
   Camada final: sobrepõe as regras anteriores sem alterar a identidade visual.
   ========================================================================== */

:root {
  /* #64748B tinha contraste 4.2:1 no fundo escuro (abaixo do WCAG AA); #8391A7 tem 6.3:1 */
  --text-dark: #8391A7;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
}

.container { padding-left: var(--gutter); padding-right: var(--gutter); }

/* body com overflow-x: hidden (e html com clip) vira container de rolagem e anula o
   position: sticky — o menu sumia ao rolar. "clip" corta o vazamento lateral sem isso. */
body { overflow-x: clip; }

/* Com o header fixo, as âncoras do menu param abaixo dele (não atrás) */
section[id] { scroll-margin-top: 64px; }

/* ---- Header: tamanhos fixos ----
   O container trava em 1280px, mas marca/menu/botão cresciam em vw: em telas largas
   (1400px+) o menu passava da largura e invadia o logotipo e o botão WhatsApp. */
.nav-bar { min-height: 72px; gap: 1.5rem; }
.brand-wrapper { gap: 0.75rem; }
.brand-logo-img { width: 44px; height: 44px; }
.brand-meta { line-height: 1.15; gap: 3px; }
.brand-title { font-size: 1.25rem; }
.brand-subtitle { font-size: 0.62rem; letter-spacing: 0.12em; }
nav[aria-label="Navegação Principal"] { justify-content: flex-end; }
.nav-menu { gap: 1.5rem; }
.nav-link { font-size: 0.9rem; }
.btn-header-wa { font-size: 0.88rem; padding: 0.55rem 1.15rem; }

/* Menu completo só onde comprovadamente cabe; abaixo disso, hambúrguer.
   Com o menu enxuto (4 itens + carrinho + WhatsApp) ele cabe a partir de 900px. */
@media (max-width: 899px) {
  nav[aria-label="Navegação Principal"] { flex: 0 0 auto; }
  .site-header .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #030712; border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem var(--gutter) 1.25rem; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - 72px); overflow-y: auto;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
  }
  .site-header .nav-menu.open { display: flex; }
  .site-header .nav-menu .nav-link {
    display: flex; align-items: center; min-height: 52px; font-size: 1.02rem;
    color: var(--text-main); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-header .nav-menu .nav-link::after { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .nav-bar { min-height: 64px; }
  .brand-logo-img { width: 40px; height: 40px; }
  .brand-title { font-size: 1.1rem; }
  .site-header .nav-menu { max-height: calc(100dvh - 64px); }
}

/* ---- Hero ---- */
.hero-section { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 3.5rem); }
.hero-heading { font-size: clamp(2rem, 1.15rem + 3.3vw, 3.6rem); overflow-wrap: break-word; hyphens: manual; }
.hero-lead { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.12rem); }
.hero-announcement { max-width: 100%; }
.announcement-text { overflow-wrap: anywhere; }
.btn-cta-whatsapp, .btn-cta-scanner { min-height: 54px; justify-content: center; }

/* Logotipo 3D: a arte é quadrada (1024×1024) e era cortada num quadro 16:9 —
   a palavra TECHDIM ficava pela metade, atrás do botão "Assistir Vídeo". */
.video-viewport { aspect-ratio: auto; }
.cube-showcase-container { aspect-ratio: 1 / 1; }
.cube-showcase-img { object-fit: cover; }
.video-viewport > .video-element { aspect-ratio: 16 / 9; height: auto; }
.cube-hologram-glow { background: radial-gradient(circle at center, transparent 55%, rgba(3, 7, 18, 0.55) 100%); }
.cube-status-pill { top: 0.85rem; left: 0.85rem; max-width: calc(100% - 1.7rem); font-size: 0.68rem; }
.cube-status-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Os arquivos techdim-logo-video.mp4/.webm do repositório estão corrompidos (não tocam em
   nenhum navegador). Atalhos ocultos até o vídeo ser reenviado; a aba YouTube segue ativa. */
.cube-play-overlay-btn, #tabVideoLocal { display: none; }
.video-mode-tabs { flex-wrap: wrap; gap: 0.6rem 1rem; }
.video-mode-tabs > span { white-space: nowrap; }
.tab-btn { min-height: 36px; }
.frame-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 1rem; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual-col { width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero-announcement { border-radius: var(--radius-md); }
  .hero-credentials { gap: 0.85rem 1.5rem; }
}
@media (max-width: 480px) {
  .cta-num { display: none; }
  .hero-actions { gap: 0.85rem; margin-bottom: 2rem; }
}

/* ---- Métricas ---- */
.stat-val { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
@media (max-width: 768px) {
  .stats-ribbon { padding: 2rem 0; }
  .stats-grid { gap: 1.25rem 0.75rem; }
  .stat-item { padding: 0.4rem; }
}

/* ---- Ritmo vertical e títulos de seção ---- */
.scanner-section, .services-section, .portfolio-section, .multiagent-section,
.roi-section, .about-section, .faq-section, .contact-section, .blog-home { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.75rem); }
.section-head p { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem); }
.scanner-cockpit, .roi-card, .about-card-box, .contact-box { padding: clamp(1.25rem, 4vw, 3rem); }

/* ---- Scanner: terminal preenche a coluna (antes sobrava uma faixa preta vazia) ---- */
.terminal-body { flex: 1 1 auto; height: 0; min-height: 280px; }
.terminal-head { gap: 0.5rem 1rem; flex-wrap: wrap; }
.score-circle { width: 112px; height: 112px; }
.score-label { font-size: 0.55rem; line-height: 1.25; text-align: center; max-width: 84px; margin-top: 0.25rem; }
.audit-item { gap: 1rem; }
.audit-item .val { text-align: right; }
@media (max-width: 1024px) {
  .terminal-body { height: 300px; flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .scanner-cockpit { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .scanner-results { padding: 1.25rem; }
  .score-display-box { flex-direction: column; text-align: center; gap: 1rem; }
  .audit-item { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .audit-item .val { text-align: left; }
  .export-wa-card { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-export-wa { justify-content: center; min-height: 48px; }
}

/* ---- Serviços ---- */
.service-card { padding: clamp(1.5rem, 3vw, 2.4rem); }
.services-grid { gap: clamp(1.25rem, 2.5vw, 2rem); }

/* ---- Portfólio ----
   minmax(340px) estourava a largura em celulares de 360px; e 10 cards em 3 colunas
   deixavam 1 card sozinho na última linha — agora ele ocupa a linha inteira. */
.portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 0; }
.portfolio-body { padding: clamp(1.25rem, 2.5vw, 1.6rem); }
.btn-github-view { min-height: 48px; }
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; }
  .portfolio-card:last-child:nth-child(3n+1) .portfolio-img-wrapper { flex: 0 0 calc((100% - 4rem) / 3); aspect-ratio: auto; min-height: 260px; }
  .portfolio-card:last-child:nth-child(3n+1) .portfolio-img { position: absolute; inset: 0; }
  .portfolio-card:last-child:nth-child(3n+1) .portfolio-body { justify-content: center; padding: 2rem 2.5rem; }
  .portfolio-card:last-child:nth-child(3n+1) .portfolio-action { max-width: 320px; }
}

/* ---- Banner de investimento: os links não tinham estilo (azul escuro sobre azul escuro, ilegíveis) ---- */
.investor-cta-box { padding: clamp(1.5rem, 5vw, 3rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.investor-cta-title { font-family: var(--font-display); font-size: clamp(1.35rem, 0.95rem + 1.8vw, 2rem); line-height: 1.25; }
.investor-cta-desc { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem); }
.btn-primary-cyber, .btn-secondary-cyber {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.85rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-primary-cyber { background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--blue-cyber) 100%); color: #030712; }
.btn-primary-cyber:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--cyan-glow); }
.btn-secondary-cyber { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-cyber); color: #fff; }
.btn-secondary-cyber:hover { border-color: var(--cyan-neon); background: rgba(0, 240, 255, 0.08); transform: translateY(-2px); }
@media (max-width: 480px) {
  .investor-cta-actions > a { width: 100%; }
}

/* ---- Calculadora ---- */
.slider-label-row { gap: 0.75rem; flex-wrap: wrap; }
.roi-outcome-card { padding: clamp(1.4rem, 3vw, 2.4rem); }

/* ---- Sobre ---- */
.about-bio h3 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem); line-height: 1.2; }
@media (max-width: 480px) {
  .founder-credential-card { flex-direction: column; align-items: flex-start; }
  .dcise-banner { padding: 1.4rem; }
}

/* ---- FAQ: respostas longas eram cortadas em 400px no celular ---- */
.faq-btn { gap: 1rem; padding: 1.15rem clamp(1rem, 3vw, 1.6rem); font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem); }
.faq-panel { padding-left: clamp(1rem, 3vw, 1.6rem); padding-right: clamp(1rem, 3vw, 1.6rem); }
.faq-card.open .faq-panel { max-height: 1200px; padding-left: clamp(1rem, 3vw, 1.6rem); padding-right: clamp(1rem, 3vw, 1.6rem); }

/* ---- Blog: 6 posts em 3 colunas (antes 4 + 2, com buraco à direita) ---- */
@media (min-width: 900px) {
  .blog-home .blog-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Contato ---- */
.tactical-form { padding: clamp(1.25rem, 3vw, 2.4rem); }
.cyber-submit-btn { min-height: 52px; }

/* ---- Rodapé ---- */
.footer-nav a { display: inline-block; padding: 0.2rem 0; }
.footer-bar { gap: 1rem 2rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  footer { padding-bottom: 2.5rem; }
}

/* ---- WhatsApp flutuante: só aparece fora do hero/contato/rodapé (ver script.js) ---- */
.floating-whatsapp {
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.floating-whatsapp.fab-managed:not(.is-visible) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px) scale(0.92); }
@media (min-width: 769px) {
  .floating-whatsapp { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
}
@media (max-width: 768px) {
  .floating-whatsapp { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .floating-whatsapp .live-pulse-dot { display: none; }
}

/* ---- Modal de serviços: rolagem interna em telas baixas ---- */
.modal-card { max-height: calc(100dvh - 2rem); overflow-y: auto; padding: clamp(1.25rem, 4vw, 2.5rem); }

/* ==========================================================================
   ThreatScanner v2 — painel de diagnóstico real (ver scanner.js)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.score-circle { transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.score-circle[data-grade="ok"] { border-color: var(--emerald-live); box-shadow: 0 0 30px var(--emerald-glow); }
.score-circle[data-grade="warn"] { border-color: var(--amber-warn); box-shadow: 0 0 30px rgba(245, 158, 11, 0.35); }
.score-circle[data-grade="bad"] { border-color: var(--rose-crit); box-shadow: 0 0 30px rgba(244, 63, 94, 0.35); }
.log-line { word-break: normal; overflow-wrap: anywhere; }
.audit-item .lbl { flex-shrink: 0; }
.audit-item .val { overflow-wrap: anywhere; }
.btn-scan-trigger:disabled, .btn-speed-only:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.diag-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 1100px) {
  .diag-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.diag-card {
  background: rgba(6, 11, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.3s var(--ease);
}
.diag-card[data-state="ok"] { border-color: rgba(16, 185, 129, 0.35); }
.diag-card[data-state="warn"] { border-color: rgba(245, 158, 11, 0.35); }
.diag-card[data-state="bad"] { border-color: rgba(244, 63, 94, 0.5); }
.diag-card-head { display: flex; align-items: center; gap: 0.65rem; }
.diag-card-head svg { width: 20px; height: 20px; color: var(--cyan-neon); flex-shrink: 0; }
.diag-card-head h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.3; min-width: 0; }
.diag-pill {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}
.diag-card[data-state="running"] .diag-pill { color: var(--cyan-neon); border-color: var(--border-cyber); animation: diagPulse 1.2s ease-in-out infinite; }
.diag-card[data-state="ok"] .diag-pill { color: var(--emerald-live); border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.08); }
.diag-card[data-state="warn"] .diag-pill { color: var(--amber-warn); border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.diag-card[data-state="bad"] .diag-pill { color: var(--rose-crit); border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.1); }
@keyframes diagPulse { 50% { opacity: 0.45; } }

.diag-list { margin-top: 0.85rem; display: flex; flex-direction: column; }
.diag-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}
.diag-row:last-child { border-bottom: 0; }
.diag-row dt { color: var(--text-muted); }
.diag-row dd {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.diag-row[data-state="ok"] dd::before,
.diag-row[data-state="warn"] dd::before,
.diag-row[data-state="bad"] dd::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: 0.05em;
  background: var(--emerald-live);
}
.diag-row[data-state="warn"] dd::before { background: var(--amber-warn); }
.diag-row[data-state="bad"] dd::before { background: var(--rose-crit); }
.diag-row[data-state="bad"] dd { color: #FDA4AF; }

.speed-meters + .diag-list { margin-bottom: 1rem; }
.speed-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.speed-meter {
  background: var(--bg-terminal);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.speed-val { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; color: var(--cyan-neon); line-height: 1.1; font-variant-numeric: tabular-nums; }
.speed-unit { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.btn-speed-only {
  margin-top: auto;
  min-height: 44px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-xs);
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-speed-only:hover { background: rgba(0, 240, 255, 0.1); color: #fff; }

.diag-findings { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.diag-findings h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.diag-findings-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 0.75rem; }
.diag-finding {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.diag-finding strong { color: #fff; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.diag-finding strong::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--emerald-live); }
.diag-finding[data-level="warn"] { border-color: rgba(245, 158, 11, 0.3); }
.diag-finding[data-level="warn"] strong::before { background: var(--amber-warn); }
.diag-finding[data-level="bad"] { border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.05); }
.diag-finding[data-level="bad"] strong::before { background: var(--rose-crit); }

.scan-consent {
  flex-basis: 100%;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.scan-consent a { color: var(--cyan-neon); text-underline-offset: 2px; }

.diag-terms {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(6, 11, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  scroll-margin-top: 80px;
}
.diag-terms[open] { border-color: var(--border-cyber); }
.diag-terms summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.9rem clamp(1rem, 3vw, 1.4rem);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}
.diag-terms summary::-webkit-details-marker { display: none; }
.diag-terms summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--cyan-neon); flex-shrink: 0; }
.diag-terms[open] summary::after { content: '−'; }
.diag-terms-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 clamp(1rem, 3vw, 1.4rem) 1.2rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 95ch;
}
.diag-terms-body strong { color: var(--text-main); }

@media (max-width: 480px) {
  .diag-row { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .diag-row dd { text-align: left; }
}

/* ==========================================================================
   Redes sociais, links do rodapé e aviso de cookies (tracking.js)
   ========================================================================== */
.social-links { list-style: none; display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-links a:hover, .social-links a:focus-visible { color: var(--cyan-neon); border-color: var(--border-cyber); background: rgba(0, 240, 255, 0.06); }
.social-links svg { width: 18px; height: 18px; }

.footer-bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.footer-bar-links a:not([style]) { color: var(--text-dark); text-decoration: none; }
.footer-bar-links a:not([style]):hover { color: var(--cyan-neon); }
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-dark);
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--cyan-neon); }

.consent-banner {
  position: fixed;
  z-index: 1500;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  margin: 0 auto;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(6, 11, 23, 0.97);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.consent-banner p { font-size: 0.86rem; line-height: 1.55; color: var(--text-main); }
.consent-banner a { color: var(--cyan-neon); }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent-btn {
  min-width: 112px;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-cyber);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.consent-btn:hover { background: rgba(255, 255, 255, 0.06); }
.consent-btn-primary { background: var(--cyan-neon); border-color: var(--cyan-neon); color: #030712; }
.consent-btn-primary:hover { background: #fff; border-color: #fff; }
.consent-open .floating-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-actions > .consent-btn { flex: 1 1 0; }
}

/* ==========================================================================
   Loja (loja.html)
   ========================================================================== */
.loja { max-width: 1080px; padding-top: 2.5rem; padding-bottom: 4rem; }
.loja-topo h1 { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); line-height: 1.15; color: #fff; margin: 0.4rem 0 0.8rem; }
.loja-garantia { font-size: 0.9rem; color: var(--text-muted); margin: -0.25rem 0 1.25rem; }
.loja-garantia a { color: var(--cyan-neon); }
.loja-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.loja-filtro {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.loja-filtro[aria-pressed="true"] { color: var(--cyan-neon); border-color: var(--border-cyber); background: rgba(0, 240, 255, 0.08); }
.loja-lista { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.loja-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  scroll-margin-top: 90px;
  transition: border-color 0.2s;
}
.loja-item:hover, .loja-item:target { border-color: var(--border-cyber); }
.loja-item[hidden] { display: none; }
.loja-icone {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--cyan-subtle);
  border: 1px solid var(--border-cyber);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loja-icone svg { width: 26px; height: 26px; }
.loja-rotulo { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-neon); }
.loja-info h2 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; color: #fff; margin: 0.25rem 0 0.45rem; }
.loja-desc { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }
.loja-inclui { margin: 0.7rem 0 0 1.1rem; color: var(--text-main); font-size: 0.88rem; line-height: 1.6; }
.loja-inclui li { margin-bottom: 0.2rem; }
.loja-entrega { margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dark); }
.loja-acao { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; min-width: 180px; text-align: right; }
.loja-preco { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; }
.loja-preco-unidade { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.loja-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--blue-cyber) 100%);
  color: #030712;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.2s;
}
.loja-botao:hover { box-shadow: 0 0 22px var(--cyan-glow); transform: translateY(-1px); }
.loja-nota { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(6, 11, 23, 0.6); }
.loja-nota h2 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 0.6rem; }
.loja-nota p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }
.loja-nota a { color: var(--cyan-neon); }
.loja-agentes { margin-top: 1rem; }
@media (max-width: 720px) {
  .loja-item { grid-template-columns: 44px minmax(0, 1fr); padding: 1.2rem; gap: 1rem; }
  .loja-icone { width: 44px; height: 44px; }
  .loja-acao { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; text-align: left; }
}
@media (max-width: 420px) {
  .loja-acao { flex-direction: column; align-items: stretch; }
  .loja-botao { width: 100%; }
}

/* ==========================================================================
   SEO técnico / Core Web Vitals (out/2026)
   ========================================================================== */
.req { color: var(--amber-warn); }

/* Seções abaixo da primeira tela: o navegador só calcula layout e pintura quando
   estão para aparecer (Lighthouse: 1,3 s de "Style & Layout" no celular). */
.scanner-section, .services-section, .portfolio-section, .multiagent-section, .roi-section,
.about-section, .faq-section, .blog-home, .contact-section, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* No celular, desfoque de fundo só no header: nos cartões ele custa caro a cada quadro */
@media (max-width: 768px) {
  .stats-ribbon, .portfolio-card, .portfolio-category-badge, .cube-play-overlay-btn, .video-overlay-ctrls {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ==========================================================================
   Menu enxuto + carrinho da loja (out/2026)
   ========================================================================== */
/* Carrinho discreto: só o ícone, leva à loja (loja.html) */
.nav-cart {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  color: var(--text-muted); border: 1px solid var(--border-subtle);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.nav-cart:hover, .nav-cart:focus-visible {
  color: var(--cyan-neon); border-color: var(--border-cyber); background: var(--cyan-subtle);
}
.nav-cart[aria-current="page"] { color: var(--cyan-neon); border-color: var(--border-cyber); }

/* Título do hero um pouco menor: o texto novo ocupava 4 linhas no desktop */
.hero-heading { font-size: clamp(1.85rem, 1.05rem + 2.9vw, 3.1rem); }

/* Celular: marca + carrinho + WhatsApp + menu cabem até 320px. Abaixo de 480px o
   subtítulo da marca sai: entre 401 e 427px ele empurrava o botão do menu para fora da tela. */
@media (max-width: 480px) {
  .nav-bar { gap: 0.5rem; }
  .nav-cta-group { gap: 0.4rem; }
}
@media (max-width: 479px) {
  .brand-subtitle { display: none; }
}
@media (max-width: 359px) {
  .brand-logo-img { width: 36px; height: 36px; }
  .brand-wrapper { gap: 0.5rem; }
  .brand-title { font-size: 1rem; }
  .nav-cart, .btn-header-wa, .mobile-toggle { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
}

/* Contato criptografado (rodapé): e-mail Proton, Signal e Telegram, bem discretos */
.contato-seguro { list-style: none; display: flex; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; }
.contato-seguro a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  color: var(--text-dark); opacity: 0.75; transition: color 0.2s, opacity 0.2s;
}
.contato-seguro a:hover, .contato-seguro a:focus-visible { color: var(--cyan-neon); opacity: 1; }
.contato-seguro svg { width: 15px; height: 15px; }
.footer-bar .contato-seguro { margin: 0; }
