/* ========== RESET & VARIAVEIS ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #060609;
  --bg-secondary: #0c0c14;
  --bg-card: rgba(14, 14, 24, 0.65);

  --blue-cobalt: #2563eb;
  --green-emerald: #10b981;
  --purple-magenta: #a855f7;
  --cyan: #06b6d4;

  --gradient-main: linear-gradient(135deg, var(--blue-cobalt), var(--green-emerald));
  --gradient-alt: linear-gradient(135deg, var(--purple-magenta), var(--blue-cobalt));
  --gradient-glow: linear-gradient(135deg, var(--green-emerald), var(--purple-magenta));

  --text-primary: #f0f0f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --glass-bg: rgba(8, 8, 16, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  --section-padding: 7rem 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

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

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ========== ORBS DE FUNDO ========== */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-cobalt);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--purple-magenta);
  top: 40%;
  right: -15%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--green-emerald);
  bottom: -10%;
  left: 30%;
  animation-delay: -14s;
  animation-duration: 22s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ========== GRADIENTE TEXTO ========== */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--gradient-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

/* ========== ANIMACOES DE REVEAL ========== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1001;
}

.logo-stream {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tech {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s;
}

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

.btn-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cta:hover {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.5), 0 0 50px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), 0 0 60px rgba(16, 185, 129, 0.2);
  transform: translateY(-3px);
}

.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--purple-magenta);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
  transform: translateY(-3px);
  background: rgba(168, 85, 247, 0.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 3px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== MARQUEE TECNOLOGIAS ========== */
.tech-marquee {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
}

.tech-marquee::before,
.tech-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.tech-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-secondary), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-content span:hover {
  color: var(--green-emerald);
}

.marquee-dot {
  width: 4px !important;
  height: 4px;
  min-width: 4px;
  background: var(--glass-border);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SOLUCOES (CARDS GRID) ========== */
.solucoes {
  padding: var(--section-padding);
  position: relative;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(37, 99, 235, 0.12), transparent 40%);
  z-index: 0;
}

.card:hover .card-glow { opacity: 1; }

.card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem;
  height: 100%;
  transition: border-color 0.4s;
}

.card:hover .card-inner {
  border-color: rgba(37, 99, 235, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  background: var(--gradient-main);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.card-icon svg { width: 100%; height: 100%; color: #fff; }

.icon-alt { background: var(--gradient-alt); }
.icon-blue { background: linear-gradient(135deg, var(--cyan), var(--blue-cobalt)); }
.icon-gold { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: all 0.3s;
}

.card:hover .card-tag {
  background: rgba(16, 185, 129, 0.15);
}

.tag-alt {
  color: var(--purple-magenta);
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.15);
}

.card:hover .tag-alt { background: rgba(168, 85, 247, 0.15); }

.tag-blue {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
}

.card:hover .tag-blue { background: rgba(6, 182, 212, 0.15); }

.tag-gold {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
}

.card:hover .tag-gold { background: rgba(245, 158, 11, 0.15); }

/* ========== PROCESSO / TIMELINE ========== */
.processo {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: calc(50% + 20px);
  height: calc(100% + 3rem - 40px);
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-cobalt), var(--purple-magenta), var(--green-emerald));
  opacity: 0.3;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  position: absolute;
  left: -60px;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--blue-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-cobalt);
  transition: all 0.4s;
  z-index: 1;
}

.timeline-item:hover .timeline-number {
  background: var(--blue-cobalt);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transform: scale(1.15);
}

.timeline-item:nth-child(2) .timeline-number { border-color: var(--purple-magenta); color: var(--purple-magenta); }
.timeline-item:nth-child(2):hover .timeline-number { background: var(--purple-magenta); color: #fff; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }

.timeline-item:nth-child(3) .timeline-number { border-color: var(--green-emerald); color: var(--green-emerald); }
.timeline-item:nth-child(3):hover .timeline-number { background: var(--green-emerald); color: #fff; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }

.timeline-item:nth-child(4) .timeline-number { border-color: var(--cyan); color: var(--cyan); }
.timeline-item:nth-child(4):hover .timeline-number { background: var(--cyan); color: #fff; box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); }

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.4s;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateX(8px);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== POR QUE A STREAM ========== */
.por-que {
  padding: var(--section-padding);
  position: relative;
}

.por-que-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.por-que-content .section-title { text-align: left; }

.por-que-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

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

.features-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateX(6px);
  color: var(--text-primary);
}

.feature-check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-check svg {
  width: 14px;
  height: 14px;
  color: var(--green-emerald);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.4s;
}

.stat-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  letter-spacing: 0.3px;
}

/* ========== TERMINAL ========== */
.terminal-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.terminal {
  max-width: 750px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #08080f;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.4s;
}

.terminal:hover {
  box-shadow: 0 20px 80px rgba(37, 99, 235, 0.1), 0 30px 100px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: opacity 0.3s;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

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

.terminal-body {
  padding: 1.5rem;
  min-height: 160px;
}

.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
  color: var(--green-emerald);
}

.terminal-prompt {
  color: var(--purple-magenta);
  margin-right: 10px;
  user-select: none;
}

.terminal-cursor {
  animation: blink 1s step-end infinite;
  color: var(--green-emerald);
}

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

/* ========== CONTATO / CTA ========== */
.contato {
  padding: var(--section-padding);
  text-align: center;
}

.contato-wrapper {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem 2rem;
  overflow: hidden;
}

.contato-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contato-wrapper .section-title { position: relative; z-index: 1; }
.contato-wrapper .section-subtitle { position: relative; z-index: 1; }

.contato-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

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

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
  display: inline-block;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--blue-cobalt);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.footer-email {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: color 0.3s;
}

.footer-email:hover { color: var(--green-emerald); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
  .por-que-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .por-que-content .section-title { text-align: center; }
  .por-que-content { text-align: center; }
  .features-list { align-items: center; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .cursor-glow { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.active { right: 0; }
  .nav-cta { display: none; }

  .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .timeline { padding-left: 50px; }
  .timeline-item::before { left: -34px; top: 34px; height: calc(100% + 3rem - 34px); }
  .timeline-number { left: -50px; width: 34px; height: 34px; font-size: 0.7rem; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  :root { --section-padding: 4.5rem 0; }

  .hero-buttons,
  .contato-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .contato-wrapper { padding: 3rem 1.5rem; }

  .chat-widget {
    width: calc(100% - 1rem) !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    max-height: 85vh !important;
    border-radius: 16px !important;
  }
}

/* ========== CHAT WIDGET ========== */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  color: #fff;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6), 0 0 50px rgba(16, 185, 129, 0.3);
}

.chat-fab.open .fab-icon-chat { display: none; }
.chat-fab.open .fab-icon-close { display: block; }
.chat-fab .fab-icon-close { display: none; }

.chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue-cobalt);
  animation: fabPulse 2s ease-out infinite;
}

.chat-fab.open .chat-fab-pulse { display: none; }

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chat-widget {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 400px;
  max-height: 550px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.chat-header-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
}

.chat-header-status {
  font-size: 0.72rem;
  color: var(--green-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  gap: 0.6rem;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.welcome-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.welcome-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 300px;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chat-message {
  display: flex;
  max-width: 85%;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.message-bubble {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chat-message.bot .message-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-message.bot .message-bubble p {
  margin: 0 0 0.5rem;
}

.chat-message.bot .message-bubble p:last-child {
  margin-bottom: 0;
}

.chat-message.bot .message-bubble strong {
  color: #fff;
  font-weight: 600;
}

.chat-message.bot .message-bubble em {
  color: var(--text-secondary);
  font-style: italic;
}

.chat-message.bot .message-bubble ol,
.chat-message.bot .message-bubble ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
}

.chat-message.bot .message-bubble li {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.chat-message.bot .message-bubble li strong {
  color: #fff;
}

.chat-message.bot .message-bubble code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--green-emerald);
}

.chat-message.bot .message-bubble pre {
  margin: 0.5rem 0;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow-x: auto;
}

.chat-message.bot .message-bubble pre code {
  background: none;
  padding: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chat-message.user .message-bubble {
  background: var(--gradient-main);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot .message-bubble.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.8rem 1.2rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(8, 8, 16, 0.6);
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input-area input::placeholder {
  color: var(--text-muted);
}

.chat-input-area input:focus {
  border-color: var(--blue-cobalt);
}

#chatSend {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s;
}

#chatSend:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transform: scale(1.05);
}

#chatSend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 1.2rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.cookie-link {
  color: var(--blue-cobalt);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s;
}

.cookie-link:hover {
  color: var(--green-emerald);
}

.cookie-details {
  display: none;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}

.cookie-details.visible {
  display: block;
}

.cookie-details p {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--gradient-main);
  color: #fff;
}

.cookie-btn-accept:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.cookie-btn-essential:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-text p {
    font-size: 0.8rem;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}
