:root {
  /* Dark Tech Premium Palette */
  --bg-core: #050505;
  --bg-surface: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  
  /* Primary Accent - Cyan/Neon Blue to look high-tech */
  --primary: #00e5ff;
  --primary-hover: #00b8d4;
  --primary-glow: rgba(0, 229, 255, 0.2);
  
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --radius-lg: 24px;
  --radius-md: 12px;
  
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 7vw, 6.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

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

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* Hero Canvas Background */
#hero-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #0a1518 0%, var(--bg-core) 60%);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

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

.logo {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text-primary); }

.menu-trigger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.link-arrow i { transition: transform 0.3s ease; }
.link-arrow:hover i { transform: translateX(5px); color: var(--primary); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

/* Plataforma Section */
.section-plataforma {
  padding: 10rem 0;
}

.plataforma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.plataforma-text p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(0,229,255,0.1) 0%, transparent 70%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0 340deg, var(--primary) 360deg);
  animation: rotate 10s linear infinite;
  opacity: 0.2;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.stat-card {
  padding: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-card h3 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Products/Solutions */
.section-produtos {
  padding: 10rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-header { margin-bottom: 5rem; max-width: 800px; }
.section-header p { color: var(--text-secondary); font-size: 1.3rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-core);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-image {
  height: 250px;
  background: #111;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

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

.card:hover .card-image img {
  transform: scale(1.05);
}

/* A subtle pattern overlay for card images + blue tint */
.card-image::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: rgba(0, 50, 150, 0.3); /* Blue overlay as requested */
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.card-content { padding: 3rem; display: flex; flex-direction: column; height: 100%; }
.card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.card-content h3 { margin-bottom: 1rem; }
.card-content p { color: var(--text-secondary); margin-bottom: 2rem; flex-grow: 1; }

.btn-saiba-mais {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0b5e20; /* Green button from the user image */
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  width: fit-content;
  transition: var(--transition);
}

.btn-saiba-mais i { width: 18px; height: 18px; }

.btn-saiba-mais:hover {
  background: #118a30;
  transform: translateY(-2px);
}

/* Contato */
.section-contato {
  padding: 12rem 0;
}

.contato-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.orcamento-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem;
}

.orcamento-form input, .orcamento-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  transition: var(--transition);
}

.orcamento-form input:focus, .orcamento-form textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.orcamento-form button { margin-top: 1rem; width: fit-content; }

/* Footer */
footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--text-secondary); }
.social-links a:hover { color: var(--text-primary); }

/* Animations & Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Mobile Menu overlay & Sidebar */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1002;
}

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

.mobile-nav {
  position: fixed;
  top: 0; right: -100%; width: 80%; max-width: 400px; height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--glass-border);
  z-index: 1003;
  padding: 6rem 3rem;
  transition: var(--transition);
}

.mobile-nav.active { right: 0; }

.close-menu {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; color: #fff; cursor: pointer;
}

.mobile-nav ul { display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav a { font-size: 1.5rem; font-family: 'Outfit'; font-weight: 600; }
.mobile-btn { color: var(--primary) !important; }

/* AI Assistant */
#fusel-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

#fusel-trigger {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--primary-glow);
  display: flex; justify-content: center; align-items: center;
  transition: var(--transition);
}

#fusel-trigger:hover { transform: scale(1.1); }

#fusel-chat {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  transform-origin: bottom right;
}

#fusel-chat.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.fusel-header {
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fusel-header strong { display: block; font-family: 'Outfit'; }
.fusel-header span { font-size: 0.8rem; color: var(--text-secondary); }
#close-fusel { background: none; border: none; color: #fff; cursor: pointer; }

.fusel-messages {
  height: 300px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  max-width: 85%;
}

.message.ai {
  background: rgba(255,255,255,0.05);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background: var(--primary);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.fusel-suggestions {
  padding: 0 1rem 1rem;
  display: flex; gap: 0.5rem; overflow-x: auto;
}

.suggestion-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.fusel-input-area {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.5rem;
}

#fusel-input {
  flex: 1;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1rem;
  border-radius: 100px;
  color: #fff;
  outline: none;
}

#send-fusel {
  background: var(--primary);
  color: #000;
  border: none;
  width: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; justify-content: center; align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .plataforma-grid, .contato-container { grid-template-columns: 1fr; gap: 4rem; }
  .footer-top { flex-direction: column; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links-wrapper { display: none; }
  .menu-trigger { display: block; }
  .orcamento-form { padding: 2rem; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}