/**
 * Exaustech - Sistema de Monitoramento Inteligente
 * Arquivo de Estilos Principal
 * Versão: 2.0
 * Data: Novembro 2025
 */

/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   VARIÁVEIS CSS - PALETA DE CORES
   ======================================== */
:root {
  /* 🎨 Paleta Principal – Exaustech - Modo Claro */
  --primary-orange: #ff6a00;
  --primary-orange-dark: #e55300;
  --primary-orange-light: #ffb300;
  --primary-yellow: #ffd43b;
  --brand-orange: #e74c1b;
  --brand-gray: #e5e5e5;
  --primary-black: #000000;
  --primary-white: #ffffff;

  /* Tons neutros para modo claro */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #6a6a6a;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #efefef;
  --border-color: rgba(229, 83, 0, 0.15);
  --shadow-color: rgba(229, 83, 0, 0.1);

  /* Estados */
  --hover-bg: rgba(255, 106, 0, 0.1);
  --active-bg: rgba(255, 106, 0, 0.2);

  /* Gradientes */
  --gradient-primary: linear-gradient(
    135deg,
    #e55300 0%,
    #ff6a00 35%,
    #ffb300 70%,
    #ffd43b 100%
  );
  --gradient-hover: linear-gradient(
    135deg,
    #ffd43b 0%,
    #ffb300 30%,
    #ff6a00 65%,
    #e55300 100%
  );

  /* Mapeamento de compatibilidade */
  --blue: var(--primary-orange);
  --blue-dark: var(--primary-orange-dark);
  --blue-light: #fff5ed;
  --yellow: var(--primary-yellow);
  --yellow-600: var(--primary-orange-light);
  --black-strong: var(--primary-black);
  --gray: var(--text-secondary);
  --white: var(--primary-white);
  --black: var(--primary-black);
  --dark-gray: var(--text-primary);
  --medium-gray: var(--text-secondary);
  --light-gray: var(--bg-secondary);
  --primary-blue: var(--primary-orange);
  --secondary-yellow: var(--primary-yellow);
  --bs-blue: var(--primary-orange);
  --bs-yellow: var(--primary-yellow);
  --primary-gold: var(--primary-orange);
  --primary-gold-dark: var(--primary-orange-dark);
  --primary-gold-light: var(--primary-orange-light);
}

/* Modo Escuro */
[data-theme="dark"] {
  --primary-orange: #ff6a00;
  --primary-orange-dark: #e55300;
  --primary-orange-light: #ffb300;
  --primary-yellow: #ffd43b;
  --brand-orange: #e74c1b;
  --brand-gray: #e5e5e5;

  /* Tons neutros escuros */
  --text-primary: #e5e5e5;
  --text-secondary: #b8b8b8;
  --text-tertiary: #888888;
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #1a1a1a;
  --border-color: rgba(255, 106, 0, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Estados */
  --hover-bg: rgba(255, 106, 0, 0.15);
  --active-bg: rgba(255, 106, 0, 0.25);

  --blue-light: #1a0a00;
}

/* ========================================
   ESTILOS GERAIS
   ======================================== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

header.scrolled {
  box-shadow: 0 4px 8px var(--shadow-color);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  padding: 5px 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-orange);
}

nav a:hover::after {
  width: 100%;
}

/* Dark Mode Toggle */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 20px;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--primary-orange);
  transform: rotate(20deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Nav controls (menu + theme) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger -> X animation */
.menu-toggle {
  width: 44px;
  height: 40px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0.6);
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Header CTA */
.header-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(229, 83, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(229, 83, 0, 0.22);
}
/* Dropdown "Mais" */
.more-dropdown {
  position: relative;
}
.more-toggle {
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}
.more-toggle:focus {
  outline: 2px solid var(--primary-orange);
  border-radius: 6px;
}
.more-toggle {
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.more-toggle:hover {
  color: var(--primary-orange);
}
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 0;
  display: none;
  z-index: 2000;
}
.dropdown li {
  list-style: none;
}
.dropdown li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
}
.dropdown li a:hover {
  background: var(--bg-secondary);
}
.more-dropdown.open .dropdown {
  display: block;
}

/* On mobile, show nav full width and hide header CTA (nav includes contact) */
@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
  .more-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    padding-left: 12px;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: var(--gradient-hover);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Em modo escuro, garantir contraste ajustando a cor do texto da hero */
[data-theme="dark"] .hero {
  color: var(--text-primary);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Ícone decorativo dentro da hero: entre o background (::before) e o texto */
.hero-decor {
  position: absolute;
  left: 50%;
  top: -50%;
  transform: translateX(-50%);
  width: 490px;
  max-width: 70%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0; /* abaixo do texto, mas acima do background (::before) porque .hero-content tem z-index:1 */
}

/* Garantir que os elementos de texto fiquem acima do decor */
.hero-content > :not(.hero-decor) {
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .hero-decor {
    width: 180px;
    top: 6%;
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Imagens de exemplo usadas em cards (instalação, etc.) */
.example-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px var(--shadow-color);
  margin-bottom: 12px;
  background: var(--bg-primary);
}

.feature-card .example-image {
  max-height: 280px;
  object-fit: cover;
}

/* ========================================
   HERO LOGO
   ======================================== */
#hero-logo {
  display: block;
  margin: 0 auto 18px;
  max-width: 260px;
  width: 50%;
  height: auto;
}

@media (min-width: 768px) {
  #hero-logo {
    width: 320px;
    margin-bottom: 22px;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

/* Botão outline - estilo padrão (modo claro) */
.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: var(--white);
  transform: translateY(-3px);
}

/* Overrides para modo escuro */
[data-theme="dark"] .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--white);
  color: var(--primary-orange);
  transform: translateY(-3px);
}

.btn-1outline {
  color: var(--white);
  border-color: var(--white);
}

.btn-1outline:hover {
  background: var(--white);
  color: var(--primary-orange);
  transform: translateY(-3px);
}

.toggle-btn {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: var(--hover-bg);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.toggle-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-orange);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-submit:hover {
  background: var(--gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.6);
  animation: ripple 600ms linear;
  pointer-events: none;
}

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

/* ========================================
   SECTIONS
   ======================================== */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-primary);
}

/* Features Section */
.features {
  padding: 80px 20px;
  background: transparent;
}

/* Permitir posicionamento absoluto de marcas-d'água dentro das seções */
.features,
footer,
header {
  position: relative;
}

/* Estilos gerais para ícones decorativos (marca-d'água) */
.decor-icon {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  user-select: none;
  filter: saturate(0%);
}

/* Header: pequeno ícone à direita */
.decor-header {
  top: 12%;
  right: 4%;
  width: 140px;
  max-width: 30%;
}

/* Features: marca-d'água grande atrás do conteúdo */
.decor-features {
  left: 8%;
  top: 6%;
  width: 420px;
  max-width: 50%;
  opacity: 0.1;
}

/* Footer: centralizada, invertida em tamanho menor */
.decor-footer {
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 360px;
  max-width: 60%;
  opacity: 0.08;
}

@media (max-width: 900px) {
  .decor-header {
    width: 80px;
    right: 6%;
    top: 6%;
    opacity: 0.08;
  }
  .decor-features {
    display: none; /* esconder em telas pequenas para não atrapalhar leitura */
  }
  .decor-footer {
    width: 180px;
    bottom: 4%;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 0.35s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.feature-card:hover {
  transform: translateY(-12px) rotateX(6deg) rotateY(-4deg);
  box-shadow: 0 24px 60px rgba(11, 11, 11, 0.12);
  border-color: var(--primary-orange);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-orange);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* About Section */
.about-section {
  padding: 80px 20px;
  background: transparent;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Visualizador 3D */
.model-3d-viewer {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.model-3d-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-orange);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Objectives Section */
.objectives-section {
  padding: 80px 20px;
  background: transparent;
}

.objectives-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-secondary);
  backdrop-filter: blur(6px);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.objective-item:hover {
  transform: translateX(10px);
  box-shadow: 0 6px 20px var(--shadow-color);
  border-color: var(--primary-orange);
}

.objective-icon {
  color: var(--primary-orange);
  font-size: 1.5rem;
  min-width: 30px;
}

.objective-item strong {
  color: var(--primary-orange);
}

/* How it Works Section */
.how-works-section {
  padding: 80px 20px;
  background: transparent;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.step-card {
  position: relative;
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.step-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.step-card h3 {
  margin: 30px 0 15px;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 60px 20px;
  background: var(--gradient-primary);
  color: var(--white);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.stat-item .unit {
  font-size: 1.1rem;
  margin-left: 6px;
  opacity: 0.9;
  vertical-align: top;
  font-weight: 600;
}

.stat-desc {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
  font-size: 0.95rem;
}

.stat-text {
  font-size: 2.4rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.stat-item h3[data-count] {
  transition: all 0.6s ease;
  will-change: opacity, transform;
}

/* Team Section */
.team-section {
  padding: 80px 20px;
  background: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px var(--shadow-color);
  border-color: var(--primary-orange);
}

.team-member h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.team-member span {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-orange);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   INSTALLATION SECTION
   ======================================== */
.installation-section .topologies-grid {
  margin-top: 20px;
}

.topology-card {
  background: var(--bg-secondary);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  text-align: left;
  border: 1px solid var(--border-color);
}

.topology-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.topology-card p {
  color: var(--text-secondary);
}

.topo-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.topo-svg .link,
.topo-svg .link2 {
  stroke-dasharray: 12 6;
  animation: dash 3s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -36;
  }
}

.svg-tooltip {
  position: fixed;
  background: rgba(11, 11, 11, 0.95);
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

.packet-bubble {
  fill: #fff;
  stroke: none;
  r: 6;
  opacity: 0.95;
  filter: drop-shadow(0 6px 10px rgba(11, 11, 11, 0.12));
}

/* Installation Tabs */
.install-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px auto 8px;
  max-width: 1000px;
}

.compare-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.compare-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.compare-card small {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
}

.compare-card ul {
  margin-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 12px;
  flex-wrap: wrap;
}

.install-tab {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.install-tab.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary-orange);
}

.install-panel {
  display: none;
}

.install-panel.active {
  display: block;
}

.install-panel .card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.install-panel h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.install-panel ul {
  color: var(--text-secondary);
  margin-left: 1.2rem;
  line-height: 1.8;
}

.install-note {
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 80px 20px;
  background: transparent;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 14px 40px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: linear-gradient(
    90deg,
    var(--primary-black),
    var(--primary-orange-dark)
  );
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

footer p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
}

.social-links a:hover {
  background: var(--primary-orange);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

/* ========================================
   SERVER POPUP / IFRAME
   ======================================== */
.server-popup {
  display: none;
}
.server-popup[aria-hidden="false"] {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.server-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.server-popup-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1260px, 96%);
  height: min(820px, 90%);
  background: var(--bg-primary);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.server-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(
    90deg,
    rgba(229, 83, 0, 0.06),
    rgba(255, 106, 0, 0.02)
  );
}
.server-popup-content iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.server-popup .btn {
  padding: 6px 10px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .server-popup-content {
    width: 96%;
    height: 88%;
  }
  .server-popup-header h3 {
    font-size: 1rem;
  }
}

.floating-cta .btn {
  box-shadow: 0 8px 30px var(--shadow-color);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 145px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--shadow-color);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  font-weight: 700;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px var(--shadow-color);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 900px) {
  .topologies-grid {
    grid-template-columns: 1fr !important;
  }

  .topo-svg {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Accordion para cards em mobile */
  .features-grid {
    display: block;
  }

  .feature-card {
    margin-bottom: 18px;
    padding: 18px 16px;
  }

  .feature-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .feature-card h3::after {
    content: "\25BE";
    display: inline-block;
    margin-left: 12px;
    transition: transform 0.35s ease;
    font-size: 0.9rem;
    color: var(--primary);
  }

  .feature-card.open h3::after {
    transform: rotate(180deg);
  }

  .feature-card .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .feature-card.open .card-content {
    max-height: 800px;
  }
}
