/* ==========================================================================
   CSS PRINCIPAL - PORTAL AC GUIMARÃES SISTEMAS LTDA
   ========================================================================== */

/* Cores e Variáveis Customizadas */
:root {
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-glow: #131b2e;
  
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);

  --pink: #ec4899;
  --pink-glow: rgba(236, 72, 153, 0.4);

  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(14, 19, 31, 0.65);
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;
}

/* Reset e Configurações Básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-glow);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Canvas de Fundo */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: all;
  opacity: 0.6;
}

/* Utilitários de Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.w-full { width: 100%; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Glassmorphism base */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.logo-img {
  height: 52px;
  border-radius: 4px;
  object-fit: contain;
}

.logo-glow {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  filter: blur(8px);
  opacity: 0.7;
}

.logo-text {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.logo-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

/* Hero Visual Console */
.hero-visual .visual-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.visual-header {
  background: rgba(14, 19, 31, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

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

.visual-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.visual-body {
  padding: 24px;
  font-size: 0.85rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(7, 9, 14, 0.95);
}

.visual-body .line {
  word-break: break-all;
}

.text-blue { color: #3b82f6; }
.text-green { color: var(--green); }
.text-yellow { color: #f59e0b; }
.text-purple { color: var(--purple); }

.blink-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Services Section */
.services-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255,255,255,0.15);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

.sec-blue { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.sec-purple { background: rgba(168, 85, 247, 0.1); color: var(--purple); }
.sec-pink { background: rgba(236, 72, 153, 0.1); color: var(--pink); }
.sec-green { background: rgba(16, 185, 129, 0.1); color: var(--green); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.service-list li i {
  width: 16px;
  height: 16px;
}

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

/* Scan Tool Section */
.scan-section {
  padding: 80px 0;
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 48px;
  align-items: center;
}

.scan-info h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.scan-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.scan-console {
  background: #04060a;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.console-header {
  background: rgba(14, 19, 31, 0.8);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

#console-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.console-btn-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.console-btn-circle.green { background-color: var(--green); }

.console-body {
  padding: 24px;
  height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.log-line {
  color: var(--text-secondary);
  line-height: 1.4;
}

.log-success { color: var(--green); }
.log-warning { color: var(--pink); }
.log-info { color: var(--cyan); }

.console-progress-container {
  height: 4px;
  background: rgba(255,255,255,0.05);
  position: relative;
}

.console-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.1s linear;
}

/* Calculator Section */
.calculator-section {
  padding: 100px 0;
}

.calculator-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 48px;
}

.calc-inputs h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  position: relative;
  padding-left: 40px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255,255,255,0.1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.label-content {
  display: flex;
  flex-direction: column;
}

.label-content strong {
  font-size: 0.95rem;
}

.label-content .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sliders */
.range-group {
  margin-bottom: 24px;
}

.range-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-wrapper input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: transform 0.1s ease;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan);
  min-width: 100px;
  text-align: right;
}

/* Calculator Results */
.calc-results {
  background: rgba(79, 70, 229, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-results h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.result-box {
  margin-bottom: 24px;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 16px 0 24px 0;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text strong {
  font-size: 0.95rem;
}

.contact-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-form-wrapper {
  padding: 40px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.form-group select option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* Footer */
footer {
  background: #030509;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.brand-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-links-group span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-flex a {
  color: var(--cyan);
  text-decoration: none;
}

/* Responsividade (Mobile e Tablet) */
@media (max-width: 1024px) {
  .hero-grid,
  .scan-grid,
  .calculator-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.6rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
