/* =========================================================================
   H2L Technology - HIGH IMPACT DARK MODE (Premium Industrial-Tech)
   Adaptação para Identidade Visual: Preto e Verde Neon
   ========================================================================= */

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

:root {
  /* Colors - True Dark Mode */
  --bg-color: #050b14; /* Profundo, tom noturno corporativo */
  --text-primary: #f8fafc; /* Branco afiado */
  --text-secondary: #94a3b8; /* Cinza metálico */
  
  --primary-navy: #0f172a; 
  
  /* Gradientes e Acentos - Verde Neon da H2L */
  --accent-primary: #10b981; /* Verde esmeralda base */
  --accent-primary-hover: #059669;
  --accent-neon: #00ff66; /* Verde Neon do Logo */

  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(148, 163, 184, 0.15);

  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --max-width: 1400px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Box Shadow Glows */
  --border-radius: 6px;
  --glow-sm: 0 0 10px rgba(0, 255, 102, 0.2);
  --glow-md: 0 0 20px rgba(0, 255, 102, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Base
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-color);
  /* Fundo "Tech Dots" industrial (pontos perfurados) */
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: center top;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fundo Dinâmico Animado (Orbs) */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
  animation: floatOrb 25s ease-in-out infinite alternate;
}

body::before {
  width: 700px;
  height: 700px;
  background: rgba(16, 185, 129, 0.15); /* Accent primary */
  top: -10%;
  left: -15%;
}

body::after {
  width: 600px;
  height: 600px;
  background: rgba(0, 255, 102, 0.1); /* Accent neon */
  bottom: -15%;
  right: -10%;
  animation-duration: 35s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -100px) scale(1.1); }
  66% { transform: translate(-50px, -50px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Noise overlay para visual ultra-premium (Film Grain) */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================================
   Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-center { text-align: center; }

/* O Gradiente "Premium" no texto animado (Shimmer Effect) */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-neon) 50%, var(--accent-primary) 90%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s linear infinite;
}

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

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: var(--spacing-sm);
  font-weight: 400;
}

/* =========================================================================
   Layout
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Bolha decorativa de fundo flutuante */
.bg-flare {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-neon));
  color: #000; /* Contraste agressivo de alta perfomance */
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
  filter: brightness(1.2);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
  background-color: rgba(0, 255, 102, 0.1);
  border-color: var(--accent-neon);
}

/* =========================================================================
   Navbar (Dark Premium Blur)
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(5, 11, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-links a:hover {
  color: var(--accent-neon);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.ticket-link {
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent-neon);
  border-radius: var(--border-radius);
  color: var(--accent-neon);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.ticket-link:hover {
  background-color: var(--accent-neon);
  color: #050b14;
  box-shadow: var(--glow-sm);
}

.mobile-menu-btn { display: none; }

/* =========================================================================
   Hero Section - Dark High Impact
   ========================================================================= */
.hero {
  padding-top: calc(100px + var(--spacing-xl));
  padding-bottom: calc(var(--spacing-xl) * 1.5);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-lg);
  align-items: center;
  min-height: 100vh;
  position: relative;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Pill Badge Ultra-Moderno */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--accent-neon);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0,255,102,0.1);
  backdrop-filter: blur(10px);
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.hero-visual {
  position: relative;
  border-radius: var(--border-radius);
}

/* Glow animado no fundo da imagem */
.hero-glow-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(0, 255, 102, 0.1) 40%, rgba(5, 11, 20, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulseBlob 5s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulseBlob {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; filter: blur(5px); }
}

.hero-visual img {
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08); /* Linha de requinte */
}

/* =========================================================================
   Metrics Banner
   ========================================================================= */
.metrics-banner {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  padding: var(--spacing-lg) 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}

.metric-item h3 {
  font-size: 3.5rem;
  margin-bottom: 0.2rem;
}

.metric-item p {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* =========================================================================
   Products Section
   ========================================================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

/* Glassmorphism Dark Cards */
.product-card {
  background: gradient(linear, left top, right bottom, from(rgba(255,255,255,0.02)), to(rgba(255,255,255,0.005)));
  background-color: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2);
  border-color: rgba(0, 255, 102, 0.4);
}

.product-image {
  height: 220px;
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transform: translateZ(20px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img {
  opacity: 1;
  transform: scale(1.08);
}

.product-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transform: translateZ(30px);
}

.product-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: #fff;
}

.product-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  flex-grow: 1;
}

.product-features {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--spacing-sm);
  margin-top: auto;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.product-link {
  margin-top: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-neon);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Overlay para tornar o card inteiro clicável */
.full-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  transform: translateZ(60px); /* Sempre acima do conteúdo 3D */
}

.product-link:hover { text-shadow: 0 0 8px rgba(0, 255, 102, 0.6); }

/* =========================================================================
   Footer Overlay Dark
   ========================================================================= */
.footer {
  background: #020408;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  max-width: 320px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-links ul li a:hover { color: var(--accent-neon); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* =========================================================================
   Hero Image Animations (Subtle Light Pulse)
   ========================================================================= */
.pulse-light-image {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: subtlePulse 4s ease-in-out infinite alternate;
}

@keyframes subtlePulse {
  0% { 
    filter: brightness(1) contrast(1); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
  }
  100% { 
    filter: brightness(1.15) contrast(1.05); 
    box-shadow: 0 25px 50px -12px rgba(0, 255, 102, 0.15); 
  }
}



/* =========================================================================
   Solutions Tabs Navigation Bar
   ========================================================================= */
.solutions-tabs {
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  z-index: 900;
}

.solution-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.solution-tab:hover {
  color: var(--accent-neon);
  border-color: rgba(0, 255, 102, 0.25);
  background: rgba(0, 255, 102, 0.05);
}

.solution-tab.active {
  color: #000;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-neon));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.35);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hidden-mobile { display: none !important; }

  .container { padding: 0 var(--spacing-sm); } /* Mais espaço horizontal na tela */

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(100px + var(--spacing-md));
    min-height: auto;
  }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1.1rem; margin-left: auto; margin-right: auto; }
  
  .hero-actions { 
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-actions .btn { width: 100%; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(5, 11, 20, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md) 0;
    gap: var(--spacing-sm);
    z-index: 999;
    text-align: center;
  }
  .mobile-menu-btn { display: block; color: #fff; background: none; font-size: 2.2rem; border: none; cursor: pointer; }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  .metric-item h3 { font-size: 2.5rem; }

  .product-image { height: 180px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: var(--spacing-md); }
  .footer-brand p { margin: 1rem auto; }
  
  .section-header h2 { font-size: 2.2rem; }
}
