/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0A0F1C 0%, #021B2F 50%, #045C94 100%);
  color: #D7F1FF;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== VARIÁVEIS ===== */
:root {
  --primary: #00B2FF;
  --secondary: #021B2F;
  --accent: #045C94;
  --light: #D7F1FF;
  --dark: #0A0F1C;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 178, 255, 0.15);
  --shadow-hover: 0 16px 48px rgba(0, 178, 255, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Breakpoints */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1200px;
}

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--light);
  transition: var(--transition);
  height: 100%;
  padding: 0.5rem 0;
}

.nav-logo {
  width: 45px;
  height: 35px;
  min-width: 45px;
  min-height: 35px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(0, 178, 255, 0.3));
  transition: transform 0.3s ease;
  /* Garantir que a imagem não seja distorcida */
  max-width: 100%;
}

/* Specific styling for logo with id="logo" */
#logo {
  width: 80px;
  height: 60px;
  min-width: 80px;
  min-height: 60px;
  max-height: 100%;
}

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

.nav-brand-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  gap: 2rem;
}

.nav-link {
  color: var(--light) !important;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

.btn-primary-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--light) !important;
}

.navbar-toggler {
  border: none;
  color: var(--light);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 178, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(4, 92, 148, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 178, 255, 0.05) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 178, 255, 0.1) 0%, 
    rgba(4, 92, 148, 0.05) 50%, 
    rgba(10, 15, 28, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  animation: fadeInUp 1s ease-out;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--light);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.8s both;
  align-items: center;
}

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

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(215, 241, 255, 0.7);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(215, 241, 255, 0.6);
  font-size: 0.8rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-indicator {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 1px;
  animation: scroll 2s ease-in-out infinite;
}

/* ===== BOTÕES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass);
  color: var(--light);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

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

/* ===== SEÇÕES ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(215, 241, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.solution-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.08);
}

.solution-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.solution-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--light);
  box-shadow: var(--shadow);
}

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light);
}

.solution-card p {
  color: rgba(215, 241, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.solution-features {
  list-style: none;
  margin-bottom: 2rem;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(215, 241, 255, 0.9);
  font-size: 0.9rem;
}

.solution-features i {
  color: var(--primary);
  font-size: 1rem;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.solution-link:hover {
  color: var(--light);
  gap: 0.75rem;
}

/* ===== PROCESS SECTION ===== */
.process {
  padding: 8rem 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
  align-items: start;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: -1;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--light);
}

.step-content p {
  color: rgba(215, 241, 255, 0.8);
  line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  max-width: 500px;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(215, 241, 255, 0.9);
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-item i {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--light);
}

.feature-item p {
  color: rgba(215, 241, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.5rem;
}

.card-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.card-info span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.card-message {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(215, 241, 255, 0.9);
  font-style: italic;
}

/* ===== PARTNER SECTION ===== */
.partner {
  padding: 8rem 0;
}

.partner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.partner-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(215, 241, 255, 0.9);
  margin-bottom: 2rem;
}

.partner-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(215, 241, 255, 0.9);
  font-size: 0.9rem;
}

.highlight-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

.partner-visual {
  display: flex;
  justify-content: center;
}

.partner-logo {
  width: 300px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--glass);
  padding: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

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

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(215, 241, 255, 0.9);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.method-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--light);
}

.method-info p {
  color: rgba(215, 241, 255, 0.8);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--light);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(215, 241, 255, 0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(215, 241, 255, 0.8);
  margin: 1rem 0;
  line-height: 1.6;
}

.footer-logo {
  width: 70px;
  height: 55px;
  min-width: 70px;
  min-height: 55px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(0, 178, 255, 0.3));
  transition: transform 0.3s ease;
  /* Garantir que a imagem não seja distorcida */
  max-width: 100%;
  max-height: 100%;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--light);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(215, 241, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

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

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(215, 241, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  max-width: 90vw;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow-hover);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

/* Mobile chat styles */
@media (max-width: 768px) {
  .chat-widget {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .chat-widget.show {
    transform: translateY(0);
  }
  
  .chat-fab {
    display: flex !important;
  }
}

.chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  position: relative;
}

/* Mobile chat header improvements */
@media (max-width: 768px) {
  .chat-header {
    padding: 1rem 1.25rem;
    /* Add drag handle for mobile */
    cursor: grab;
    user-select: none;
  }
  
  .chat-header::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
  
  .chat-header:active {
    cursor: grabbing;
  }
}

.chat-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.chat-status {
  font-size: 0.7rem;
  opacity: 0.8;
  display: block;
}

.chat-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1rem;
  /* Better touch interaction */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile button icon improvements */
@media (max-width: 768px) {
  .btn-icon {
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Mobile chat messages improvements */
@media (max-width: 768px) {
  .chat-messages {
    height: calc(70vh - 140px);
    min-height: 200px;
    padding: 0.75rem;
    /* Better touch scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Ensure proper scrolling */
    overflow-y: auto;
    scroll-behavior: smooth;
  }
}

.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  position: relative;
}

/* Mobile chat input improvements */
@media (max-width: 768px) {
  .chat-input {
    padding: 0.75rem;
    gap: 0.75rem;
    /* Better keyboard handling */
    position: sticky;
    bottom: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
  }
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Mobile input improvements */
@media (max-width: 768px) {
  .chat-input input {
    padding: 1rem 1.25rem;
    font-size: 16px;
    border-radius: 25px;
    /* Better touch target */
    min-height: 48px;
    /* Prevent zoom on focus */
    font-size: 16px;
    /* Better mobile experience */
    -webkit-appearance: none;
    appearance: none;
  }
  
  .chat-input input:focus {
    transform: none;
    box-shadow: 0 0 0 3px rgba(0, 178, 255, 0.2);
    outline: none;
  }
}

.chat-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input button {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

/* Mobile button improvements */
@media (max-width: 768px) {
  .chat-input button {
    padding: 1rem;
    border-radius: 50%;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Better touch target */
    touch-action: manipulation;
    /* Better mobile experience */
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
}

.chat-input button:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Better touch interaction */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile FAB improvements */
@media (max-width: 768px) {
  .chat-fab {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    /* Better touch target */
    min-width: 44px;
    min-height: 44px;
    /* Better mobile experience */
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 178, 255, 0.3);
  }
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ===== MENSAGENS DO CHAT ===== */
.message {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.message .bubble {
  padding: 0.875rem 1.125rem;
  border-radius: 20px;
  display: inline-block;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.message .bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile message improvements */
@media (max-width: 768px) {
  .message {
    margin-bottom: 0.75rem;
    gap: 0.25rem;
  }
  
  .message .bubble {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    -webkit-tap-highlight-color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .message.user {
    margin-left: 1rem;
  }
  
  .message.bot {
    margin-right: 1rem;
  }
  
  .message.user .bubble {
    border-radius: 18px 18px 3px 18px;
  }
  
  .message.bot .bubble {
    border-radius: 18px 18px 18px 3px;
  }
}

.message.user {
  justify-content: flex-end;
  margin-left: 2rem;
}

.message.user .bubble {
  background: linear-gradient(135deg, var(--primary) 0%, #0099CC 50%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 20px 20px 4px 20px;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 178, 255, 0.3);
  font-weight: 500;
}

.message.user .bubble::before {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: var(--accent);
  border-bottom: none;
  border-right: none;
}

.message.bot {
  justify-content: flex-start;
  margin-right: 2rem;
}

.message.bot .bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--light);
  backdrop-filter: blur(20px);
  border-radius: 20px 20px 20px 4px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.bot .bubble::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-left: none;
}

.bubble.typing {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-width: 60px;
  padding: 0.75rem 1rem;
  border-radius: 20px 20px 20px 4px;
  font-size: 0.9rem;
  backdrop-filter: blur(20px);
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

.bubble.typing::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -6px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-left: none;
}

.bubble.typing .typing-text {
  margin-right: 0.5rem;
  letter-spacing: 0.3px;
}

.bubble.typing .dot {
  width: 6px;
  height: 6px;
  margin: 0 1px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: blink 1.2s infinite;
}

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

@keyframes blink {
  0%, 20% { opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes messageSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message {
  animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.user {
  animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: 0.05s;
}

/* ===== CHAT DE EXEMPLO ===== */
.chat-example {
  margin-top: 2rem;
}

.chat-demo {
  background: linear-gradient(135deg, rgba(0, 178, 255, 0.1) 0%, rgba(4, 92, 148, 0.1) 100%);
  border: 1px solid rgba(0, 178, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.chat-demo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chat-demo-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.chat-demo-info h4 {
  margin: 0;
  color: var(--light);
  font-weight: 600;
}

.chat-demo-info .status {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.chat-demo-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chat-demo-messages .message {
  padding: 0.75rem 1rem;
  border-radius: 15px;
  max-width: 80%;
  animation: fadeInUp 0.5s ease;
}

.chat-demo-messages .user-message {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.chat-demo-messages .ai-message {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  align-self: flex-start;
  border: 1px solid rgba(0, 178, 255, 0.2);
}

.chat-demo-messages .message p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.chat-demo-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: fit-content;
}

.typing-indicator {
  display: flex;
  gap: 0.25rem;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .about-content,
  .partner-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-text {
    max-width: none;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-logo {
    width: 40px;
    height: 30px;
    min-width: 40px;
    min-height: 30px;
  }
  
  .footer-logo {
    width: 60px;
    height: 45px;
    min-width: 60px;
    min-height: 45px;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-logo {
    width: 35px;
    height: 25px;
    min-width: 35px;
    min-height: 25px;
  }
  
  .footer-logo {
    width: 50px;
    height: 35px;
    min-width: 50px;
    min-height: 35px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .solution-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .chat-widget {
    height: 80vh;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .btn-primary-nav {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
  }
}

/* ===== PERFORMANCE E ACESSIBILIDADE ===== */
.solution-card:hover {
  will-change: transform;
}

.btn-primary:hover {
  will-change: transform;
}

.chat-fab:hover {
  will-change: transform;
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .solution-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
  }
  
  .chat-fab:hover {
    transform: scale(1.05);
  }
  
  /* Optimize for touch devices */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Better focus indicators for mobile */
  .btn-icon:focus-visible,
  .chat-fab:focus-visible,
  .chat-input input:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .chat-widget {
    transition: none !important;
  }
  
  .message {
    animation: none !important;
  }
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.solution-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-title {
  text-rendering: optimizeLegibility;
}

.section-title {
  text-rendering: optimizeLegibility;
}

@keyframes smoothFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.solution-card {
  animation: smoothFade 0.6s ease-out;
}

.process-step {
  animation: smoothFade 0.8s ease-out;
}

.feature-item {
  animation: smoothFade 0.5s ease-out;
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.chat-fab:active {
  transform: scale(0.95);
}
