/* ==========================================================================
   JDS SEGURANÇA ELETRÔNICA — "SECURITY NETWORK"
   Sistema visual premium: grafite/preto profundo + branco + vermelho de
   destaque. Linguagem de central de monitoramento / cybersecurity de alto
   padrão. Rede de partículas no fundo, HUD, glassmorphism sutil, motion.
   ========================================================================== */

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

:root {
  /* Fundo do site — tema claro (identidade JDS) */
  --black: #f7f8fb;
  --graphite-950: #ffffff;
  --graphite-900: #f6f8fb;
  --graphite-800: #eef1f6;
  --graphite-700: #e2e6ee;
  --graphite-600: #aab1c0;
  --graphite-400: #6b7385;
  --graphite-200: #333c4d;

  /* Texto (invertido: escuro sobre fundo claro) */
  --white: #0b1220;
  --white-soft: #333c4d;

  /* Seções que permanecem escuras de propósito (hero com vídeo, CTA, menu) */
  --dark-surface: #05070d;
  --dark-surface-2: #0c1120;
  --dark-border: #1c253d;
  --dark-text: #f5f6f8;
  --dark-text-soft: #b0b8cc;

  /* Vermelho de destaque (identidade JDS) */
  --red: #e1293c;
  --red-bright: #ff3b4e;
  --red-deep: #9c1523;
  --red-glow: rgba(225, 41, 60, 0.5);

  /* Azul técnico (identidade JDS — usado em destaques alternados) */
  --blue-signal: #3a7bd5;
  --blue-deep: #1a3a7a;
  --blue-glow: rgba(58, 123, 213, 0.45);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  background-image:
    radial-gradient(1.4px 1.4px at 24px 24px, rgba(11, 18, 32, 0.06) 100%, transparent 100%),
    radial-gradient(55% 45% at 12% -5%, rgba(26, 58, 122, 0.05), transparent 60%),
    radial-gradient(45% 40% at 100% 20%, rgba(156, 21, 35, 0.04), transparent 65%);
  background-size: 48px 48px, auto, auto;
  background-attachment: fixed;
  color: var(--white-soft);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section[id] {
  scroll-margin-top: 90px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mono-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 41, 60, 0.2);
  animation: blink-dot 1.8s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}

.section-title {
  font-size: 32px;
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--graphite-200);
}

.section-sub {
  color: var(--graphite-200);
  font-size: 15.5px;
  max-width: 560px;
  line-height: 1.7;
}

.section-pad {
  padding: 90px 0;
  position: relative;
}

@media (min-width: 1024px) {
  .section-title { font-size: 46px; }
  .section-pad { padding: 130px 0; }
}

/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
}

.preloader-logo {
  position: relative;
  z-index: 2;
  width: min(58vw, 260px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88);
}

.preloader-ring {
  position: absolute;
  width: min(58vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--graphite-800);
  opacity: 0;
}

.preloader-ring::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--red);
  border-right-color: var(--red);
  animation: preloader-spin 1.1s linear infinite;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

.preloader-bar {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 2px;
  background: var(--graphite-800);
  overflow: hidden;
  opacity: 0;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: preload-fill 1.4s var(--ease) forwards 0.3s;
}

@keyframes preload-fill {
  to { transform: scaleX(1); }
}

.preloader.done {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .preloader-ring::before { animation: none; }
}

/* ==========================================================================
   CURSOR CUSTOMIZADO
   ========================================================================== */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  transition: opacity 0.2s;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.4px solid rgba(225, 41, 60, 0.55);
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft), border-color 0.25s, background 0.25s, opacity 0.2s;
}

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  background: rgba(225, 41, 60, 0.08);
  border-color: var(--red);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   REDE DE PARTÍCULAS (fundo global)
   ========================================================================== */

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--graphite-700);
  box-shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
}

/* Enquanto flutua sobre o vídeo escuro do hero, texto claro */
.navbar:not(.is-scrolled) .navbar-links a {
  color: rgba(255, 255, 255, 0.88);
}

.navbar:not(.is-scrolled) .navbar-links a:hover {
  color: #ffffff;
}

.navbar:not(.is-scrolled) .navbar-burger {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar:not(.is-scrolled) .navbar-burger span {
  background: #ffffff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .navbar-logo img {
    height: 38px;
    max-width: 150px;
  }
  .container-header, .navbar-inner {
    gap: 8px;
  }
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-logo-text strong {
  display: none;
}

.navbar-logo-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--red);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 34px;
}

.navbar-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--graphite-200);
  padding: 6px 0;
  transition: color 0.25s;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.navbar-links a:hover {
  color: var(--white);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  padding: 11px 22px;
  border-radius: 3px;
  border: 1px solid var(--white);
  transition: 0.3s var(--ease-soft);
}

.navbar-cta:hover {
  background: transparent;
  color: var(--white);
}

.navbar-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--graphite-700);
  border-radius: 3px;
}

.navbar-burger span {
  width: 16px;
  height: 1.4px;
  background: var(--white);
  margin: 0 auto;
  transition: 0.3s;
}

.navbar-burger.is-active span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.navbar-burger.is-active span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

@media (min-width: 960px) {
  .navbar-links, .navbar-cta { display: inline-flex; }
  .navbar-burger { display: none; }
}

/* Menu mobile — painel deslizante com backdrop */

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 488;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 360px);
  z-index: 490;
  background: var(--graphite-950);
  border-left: 1px solid var(--graphite-700);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.45s;
}

.mobile-menu.is-active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--graphite-700);
  background: rgba(11, 18, 32, 0.04);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg { width: 17px; height: 17px; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.is-active a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.11s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.21s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.26s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.31s; }
.mobile-menu a:nth-child(8) { transition-delay: 0.36s; }

.mobile-menu .btn-line {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease) 0.35s, transform 0.4s var(--ease) 0.35s;
}

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

@media (min-width: 960px) {
  .mobile-menu { display: none; }
}
/* ==========================================================================
   BOTÕES
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 15px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: 0.3s var(--ease-soft);
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-fill {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 0 0 rgba(225, 41, 60, 0.4);
}

.btn-fill:hover {
  background: var(--red-bright);
  box-shadow: 0 8px 28px rgba(225, 41, 60, 0.4);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  color: var(--white);
  border-color: var(--graphite-600);
}

.btn-line:hover {
  border-color: var(--white);
  background: rgba(11, 18, 32, 0.05);
}

/* Dentro de seções escuras (hero, CTA final) o contorno inverte para claro */
.hero .btn-line,
.final-cta .btn-line {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-line:hover,
.final-cta .btn-line:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* onda de clique */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(225, 41, 60, 0.28);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

.btn-fill .ripple {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blue-signal));
  z-index: 600;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--dark-surface);
  color: var(--dark-text);
}

.hero h1, .hero h2, .hero h3, .hero h4 {
  color: var(--dark-text);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.82) 0%, rgba(5, 7, 13, 0.6) 38%, rgba(5, 7, 13, 0.92) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 35%, black, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, black, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero-hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hud-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--dark-text-soft);
  border: 1px solid var(--dark-border);
  padding: 6px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.hud-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: blink-dot 1.8s ease-in-out infinite;
}

.hud-chip.is-blue .dot { background: var(--blue-signal); }

.hero-title {
  font-size: 42px;
  line-height: 1.08;
  margin-bottom: 22px;
  overflow: hidden;
}

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

.hero-title .line span {
  display: inline-block;
  will-change: transform;
}

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

.hero-sub {
  font-size: 16.5px;
  color: var(--dark-text-soft);
  max-width: 500px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-visual {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  z-index: 2;
  opacity: 0.9;
  display: none;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 41, 60, 0.14);
  border-radius: 50%;
}

.radar-ring.r2 { inset: 60px; border-color: rgba(255, 255, 255, 0.08); }
.radar-ring.r3 { inset: 120px; border-color: rgba(225, 41, 60, 0.1); }
.radar-ring.r4 { inset: 180px; border-color: rgba(255, 255, 255, 0.06); }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(225, 41, 60, 0.28) 22deg, transparent 46deg);
  animation: radar-spin 5s linear infinite;
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.radar-dot.is-blue {
  background: var(--blue-signal);
  box-shadow: 0 0 10px var(--blue-glow);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-scroll-cue span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dark-text-soft);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: var(--dark-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scroll-cue 2.2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

@media (min-width: 1024px) {
  .hero-visual { display: block; }
  .hero-title { font-size: 68px; }
  .hero-sub { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .scroll-line::after, .hud-chip .dot { animation: none; }
}

/* ==========================================================================
   "TECNOLOGIA QUE TRABALHA ENQUANTO VOCÊ DORME" — conceito
   ========================================================================== */

.concept-strip {
  background: #203396;
  border-top: 1px solid #203396;
  border-bottom: 1px solid #203396;
}

.concept-strip h1, .concept-strip h2, .concept-strip h3, .concept-strip h4 {
  color: #ffffff;
}

.concept-strip .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

.concept-strip .section-title em {
  color: rgba(255, 255, 255, 0.55);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.concept-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.concept-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.concept-number .unit {
  font-size: 22px;
  color: var(--red-bright);
}

.concept-item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  max-width: 260px;
}

@media (min-width: 768px) {
  .concept-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   SERVIÇOS — lista interativa
   ========================================================================== */

.services-list {
  border-top: 1px solid var(--graphite-800);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr 24px;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--graphite-800);
  cursor: pointer;
  transition: padding 0.35s var(--ease);
  overflow: hidden;
}

.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(225, 41, 60, 0.09), transparent 60%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.service-row.is-open::before,
.service-row:hover::before {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite-400);
  position: relative;
  z-index: 1;
}

.service-main {
  position: relative;
  z-index: 1;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.service-title-row h3 {
  font-size: 18px;
  font-weight: 500;
  transition: color 0.25s;
}

.service-row:hover .service-title-row h3,
.service-row.is-open .service-title-row h3 {
  color: var(--red);
}

.service-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.service-row.is-open .service-desc {
  max-height: 120px;
}

.service-desc p {
  padding-top: 10px;
  font-size: 13.5px;
  color: var(--graphite-200);
  max-width: 520px;
}

.service-arrow {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--graphite-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}

.service-arrow svg {
  width: 11px;
  height: 11px;
  transition: transform 0.35s var(--ease);
}

.service-row.is-open .service-arrow {
  background: var(--red);
  border-color: var(--red);
}

.service-row.is-open .service-arrow svg {
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .service-row { grid-template-columns: 70px 1fr 24px; padding: 28px 8px; }
  .service-title-row h3 { font-size: 22px; }
}
/* ==========================================================================
   TOTEM DE SEGURANÇA — hotspots interativos
   ========================================================================== */

.totem-section {
  border-top: 1px solid var(--graphite-800);
}

.totem-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.totem-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.totem-img-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--graphite-700);
}

.totem-img-wrap img {
  width: 100%;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: rgba(225, 41, 60, 0.25);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.hotspot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(225, 41, 60, 0.4);
  animation: hotspot-pulse 2.2s ease-out infinite;
}

@keyframes hotspot-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.totem-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.totem-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--graphite-800);
  border-radius: 6px;
  transition: 0.3s var(--ease);
  cursor: pointer;
}

.totem-feature.is-active,
.totem-feature:hover {
  border-color: var(--red);
  background: rgba(225, 41, 60, 0.05);
}

.totem-feature .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 2px;
}

.totem-feature h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--white);
}

.totem-feature p {
  font-size: 13px;
  color: var(--graphite-200);
}

@media (min-width: 900px) {
  .totem-layout { grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
  .totem-img-wrap { max-width: 380px; }
}

/* ==========================================================================
   CÂMERAS — interface de monitoramento
   ========================================================================== */

.cameras-section {
  border-top: 1px solid var(--graphite-800);
}

.monitor-frame {
  border: 1px solid var(--graphite-700);
  border-radius: 8px;
  background: var(--graphite-950);
  overflow: hidden;
  margin-top: 50px;
}

.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--graphite-800);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--graphite-400);
  letter-spacing: 0.06em;
}

.monitor-bar .live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
}

.monitor-bar .live-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink-dot 1.4s ease-in-out infinite;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--graphite-800);
}

.monitor-cell {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--graphite-950);
}

.monitor-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08) brightness(0.92);
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.monitor-cell:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.1) brightness(1);
}

.monitor-cell-label {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(6, 7, 8, 0.55);
  padding: 4px 8px;
  border-radius: 3px;
}

.monitor-cell-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
}

.monitor-cell-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(6,7,8,0.85), transparent);
  padding: 20px 4px 4px;
}

@media (min-width: 768px) {
  .monitor-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   INTELBRAS
   ========================================================================== */

.intelbras-section {
  border-top: 1px solid var(--graphite-800);
}

.intelbras-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.intelbras-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--graphite-700);
  position: relative;
}

.intelbras-media img {
  width: 100%;
  display: block;
  filter: saturate(0.9);
}

.intelbras-media::after {
  content: 'INTELBRAS';
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.intelbras-text p {
  color: var(--graphite-200);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .intelbras-layout { grid-template-columns: 1fr 1fr; gap: 70px; }
}

/* ==========================================================================
   MAPA DE PERNAMBUCO
   ========================================================================== */

.map-section {
  border-top: 1px solid var(--graphite-800);
  text-align: center;
}

.map-wrap {
  position: relative;
  max-width: 620px;
  margin: 56px auto 0;
}

.map-wrap svg {
  width: 100%;
  height: auto;
}

.pe-outline {
  fill: rgba(11, 18, 32, 0.025);
  stroke: var(--graphite-600);
  stroke-width: 1.2;
}

.pe-sweep-line {
  stroke: var(--red);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 8;
  animation: dash-move 3s linear infinite;
  opacity: 0.7;
}

@keyframes dash-move {
  to { stroke-dashoffset: -140; }
}

.map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.map-point-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 41, 60, 0.18);
  position: relative;
}

.map-point-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(225, 41, 60, 0.5);
  animation: hotspot-pulse 2.4s ease-out infinite;
}

.map-point--minor {
  cursor: pointer;
  z-index: 1;
}

.map-point--minor .map-point-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-signal);
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
}

.map-point--minor .map-point-dot::before {
  border-color: rgba(58, 123, 213, 0.5);
  inset: -4px;
}

.map-point--flip {
  flex-direction: column-reverse;
}

.map-point-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: rgba(10, 12, 15, 0.85);
  border: 1px solid var(--graphite-700);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.map-point-label--minor {
  font-size: 8px;
  padding: 2px 7px;
  color: rgba(255, 255, 255, 0.75);
  border-color: var(--graphite-800);
  background: rgba(10, 12, 15, 0.72);
}

@media (max-width: 640px) {
  .map-point-label {
    font-size: 8px;
    padding: 2px 6px;
  }
  .map-point-label--minor {
    font-size: 6.5px;
    padding: 1.5px 5px;
  }
  .map-point-dot {
    width: 7px;
    height: 7px;
  }
  .map-point--minor .map-point-dot {
    width: 5px;
    height: 5px;
  }
}

/* ==========================================================================
   PROJETOS / APLICAÇÕES
   ========================================================================== */

.projects-section {
  border-top: 1px solid var(--graphite-800);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 50px;
}

.project-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--graphite-800);
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 0.7s var(--ease), filter 0.5s;
}

.project-tile:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(0.95);
}

.project-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,7,8,0.9) 0%, rgba(6,7,8,0.15) 55%, transparent 100%);
  z-index: 1;
}

.project-tile-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
}

.project-tile-label .mono-tag { margin-bottom: 6px; }

.project-tile-label h3 {
  font-size: 19px;
  color: #ffffff;
}

@media (min-width: 700px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   SIMULADOR INTERATIVO
   ========================================================================== */

.simulator-section {
  border-top: 1px solid var(--graphite-800);
}

.simulator-panel {
  margin-top: 50px;
  border: 1px solid var(--graphite-700);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.015);
  padding: 28px 20px;
}

.sim-steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.sim-steps-bar .step-pip {
  flex: 1;
  height: 2px;
  background: var(--graphite-700);
  position: relative;
  overflow: hidden;
}

.sim-steps-bar .step-pip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.sim-steps-bar .step-pip.is-filled::after {
  transform: scaleX(1);
}

.sim-step { display: none; }
.sim-step.is-active { display: block; animation: sim-fade 0.4s var(--ease); }

@keyframes sim-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-step-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sim-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sim-option {
  border: 1px solid var(--graphite-700);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  transition: 0.25s var(--ease);
  background: transparent;
}

.sim-option svg {
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  color: var(--graphite-200);
  transition: color 0.25s;
}

.sim-option span {
  display: block;
  font-size: 13px;
  color: var(--graphite-200);
  font-weight: 500;
}

.sim-option:hover {
  border-color: var(--graphite-400);
}

.sim-option.is-selected {
  border-color: var(--red);
  background: rgba(225, 41, 60, 0.07);
}

.sim-option.is-selected svg,
.sim-option.is-selected span {
  color: var(--white);
}

.sim-option.is-selected svg { color: var(--red); }

.sim-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--graphite-800);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s;
}

.sim-check-row:hover { border-color: var(--graphite-600); }

.sim-check-row.is-selected {
  border-color: var(--red);
  background: rgba(225, 41, 60, 0.06);
}

.sim-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--graphite-600);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-check-row.is-selected .sim-check-box {
  background: var(--red);
  border-color: var(--red);
}

.sim-check-box svg {
  width: 11px;
  height: 11px;
  color: var(--black);
  opacity: 0;
  transform: scale(0.6);
  transition: 0.2s;
}

.sim-check-row.is-selected .sim-check-box svg {
  opacity: 1;
  transform: scale(1);
}

.sim-check-row span {
  font-size: 14px;
  color: var(--white-soft);
}

.sim-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--graphite-800);
  gap: 12px;
  min-height: 44px;
}

.sim-back,
.sim-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 3px;
  background: transparent;
  transition: 0.25s var(--ease-soft);
}

.sim-back svg, .sim-next svg { width: 15px; height: 15px; }

.sim-back {
  color: var(--graphite-200);
  border: 1px solid var(--graphite-700);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sim-back.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sim-back:hover {
  color: var(--white);
  border-color: var(--graphite-400);
}

.sim-next {
  color: var(--white);
  border: 1px solid var(--red);
  background: rgba(225, 41, 60, 0.08);
  margin-left: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sim-next.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sim-next:hover {
  background: var(--red);
}

.sim-summary {
  text-align: center;
  padding: 10px 0 4px;
}

.sim-summary p {
  color: var(--graphite-200);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 24px;
}

.sim-summary-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.sim-summary-chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--graphite-700);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--white-soft);
}

@media (min-width: 700px) {
  .simulator-panel { padding: 40px; }
  .sim-options { grid-template-columns: repeat(4, 1fr); }
  .sim-checklist { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */

.about-section {
  border-top: 1px solid var(--graphite-800);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-text p {
  color: var(--graphite-200);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-pillar svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-pillar h4 {
  font-size: 14.5px;
  color: var(--white);
  margin-bottom: 3px;
}

.about-pillar p {
  font-size: 13px;
  color: var(--graphite-200);
}

@media (min-width: 900px) {
  .about-layout { grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
}

/* ==========================================================================
   MANUTENÇÃO
   ========================================================================== */

.maintenance-section {
  border-top: 1px solid var(--graphite-800);
}

.maintenance-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.maintenance-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--graphite-700);
}

.maintenance-media img {
  width: 100%;
  display: block;
  filter: saturate(0.85) brightness(0.9);
}

.scan-line-overlay {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 12px var(--red-glow);
  animation: scan-vert 3.4s ease-in-out infinite;
}

@keyframes scan-vert {
  0%, 100% { top: 4%; }
  50% { top: 92%; }
}

.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 30px;
}

.maintenance-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--white-soft);
}

.maintenance-list li svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .maintenance-layout { grid-template-columns: 1fr 1fr; gap: 70px; }
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.final-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background: var(--dark-surface);
  color: var(--dark-text);
  border-top: 1px solid var(--dark-border);
}

.final-cta h1, .final-cta h2, .final-cta h3, .final-cta h4 {
  color: var(--dark-text);
}

.final-cta-title {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.final-cta p {
  color: var(--dark-text-soft);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 38px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (min-width: 1024px) {
  .final-cta-title { font-size: 64px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--graphite-800);
  padding: 60px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand strong {
  display: none;
}

.footer-col p {
  color: var(--graphite-400);
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-400);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--white-soft);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--graphite-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-social a img { width: 18px; height: 18px; object-fit: contain; }
.footer-social a svg { width: 17px; height: 17px; color: var(--white-soft); flex-shrink: 0; }

.footer-social a:hover {
  border-color: var(--red);
  background: rgba(225, 41, 60, 0.08);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--graphite-800);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--graphite-400);
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */

.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fb855;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(31, 184, 85, 0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.float-whatsapp img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.float-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1fb855;
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .float-whatsapp::before { animation: none; }
}

/* ==========================================================================
   REVEAL GENÉRICO (fallback sem GSAP)
   ========================================================================== */

.reveal-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}