:root {
  /* Paleta profissional moderna */
  --bg-deep: #0a0f1a;
  --bg-surface: #0d1321;
  --bg-elevated: #111827;
  
  /* Cores primárias - Azul elétrico profissional */
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.15);
  
  /* Cores secundárias - Verde água para CTAs */
  --accent-500: #10b981;
  --accent-600: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  /* Cores de estado */
  --warning: #f59e0b;
  --error: #ef4444;
  --success: #22c55e;
  
  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  /* Bordas */
  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-default: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.20);
  
  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, 
    var(--bg-deep) 0%, 
    #0f172a 25%,
    #1e293b 50%,
    #0f172a 75%,
    var(--bg-deep) 100%
  );
  
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, 
    var(--primary-glow) 0%, 
    transparent 70%
  );
  
  --gradient-accent: radial-gradient(ellipse 60% 40% at 80% 50%, 
    var(--accent-glow) 0%, 
    transparent 60%
  );
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px -10px var(--primary-glow);
  --shadow-accent: 0 0 30px -8px var(--accent-glow);
  
  /* Tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Espaçamento */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* Reset e base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    var(--gradient-glow),
    var(--gradient-accent);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Topbar - Glassmorphism */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 19, 33, 0.8);
  border-bottom: 1px solid var(--border-default);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  height: 64px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
}

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

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md), 0 0 20px -5px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 30px -5px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md), 0 0 20px -5px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 30px -5px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--text-primary);
  background: var(--primary-glow);
}

.btn-dark {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-dark:hover {
  border-color: var(--accent-500);
  background: var(--accent-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-glow);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  color: var(--primary-500);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: var(--space-lg);
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Chips */
.chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.chip::before {
  content: '✓';
  color: var(--accent-500);
  font-weight: 700;
}

/* Cards - Glassmorphism */
.card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-header::before {
  content: '';
  width: 3px;
  height: 1.25rem;
  background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
}

/* Code Card */
.code-card {
  background: rgba(10, 15, 26, 0.8);
  border-color: var(--border-strong);
}

.code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: var(--space-lg);
  overflow-x: auto;
  white-space: pre;
}

.code .keyword { color: var(--primary-500); }
.code .string { color: var(--accent-500); }
.code .comment { color: var(--text-muted); }

/* Sections */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, 
    transparent 0%,
    rgba(17, 24, 39, 0.4) 50%,
    transparent 100%
  );
}

/* Grid */
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Features */
.feature {
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* Bullets */
.bullets {
  display: grid;
  gap: var(--space-md);
}

.bullet {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

/* Demo Card */
.demo-card {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.demo-form {
  padding: var(--space-xl);
}

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: stretch;
}

@media (max-width: 480px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.small {
  font-size: 0.8125rem;
}

.out {
  margin-top: var(--space-lg);
  min-height: 200px;
  max-height: 400px;
  overflow: auto;
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.demo-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.price-card.featured {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.price-card.featured:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow), var(--shadow-accent);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
}

.price-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.price-card.featured .price-title {
  color: var(--primary-500);
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.list li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.list li::before {
  content: '✓';
  color: var(--accent-500);
  font-weight: 700;
}

.list li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--space-md);
  max-width: 800px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  list-style: none;
  transition: background 0.2s ease;
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary-500);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item > div {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item code {
  background: var(--bg-deep);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--primary-500);
}

/* CTA Section */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
}

@media (max-width: 640px) {
  .cta {
    flex-direction: column;
    text-align: center;
  }
}

.cta h2 {
  margin-bottom: var(--space-sm);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-default);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

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

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* Utilidades */
.muted {
  color: var(--text-secondary);
}

.code-card .muted {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Seleção */
::selection {
  background: var(--primary-500);
  color: white;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 4px rgba(37, 211, 102, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 6px rgba(37, 211, 102, 0.15);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-elevated);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Animação de pulso no botão WhatsApp */
@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 4px rgba(37, 211, 102, 0.1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.05);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* Responsividade do botão WhatsApp */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}
