/*
Theme Name: Agentes IA Prontos
Theme URI: https://agentesia.autoiaexpert.com.br
Author: Lucas Freitas
Author URI: https://autoiaexpert.com.br
Description: Tema WordPress moderno para landing page de agentes IA com n8n. Design tech, mobile-first, otimizado para conversão.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agentes-ia
Tags: landing-page, one-column, custom-colors, custom-menu, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: linear-gradient(135deg, #0a0118 0%, #1a0a2e 50%, #0f0520 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* =====================
   CSS VARIABLES (Design System)
   ===================== */
:root {
  /* Core Colors */
  --background: #0a0118;
  --foreground: #f5f5f7;
  --card-bg: linear-gradient(135deg, rgba(26, 10, 46, 0.6) 0%, rgba(15, 5, 32, 0.8) 100%);
  --card-border: rgba(138, 92, 246, 0.2);
  
  /* Tech Colors */
  --primary: #8b5cf6;
  --primary-glow: #a78bfa;
  --primary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-glow: #22d3ee;
  --success: #10b981;
  --success-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-rgb: 239, 68, 68;
  
  /* Text Colors */
  --muted: #9ca3af;
  --muted-foreground: #6b7280;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 20px 40px -10px rgba(139, 92, 246, 0.3);
  --glow-primary: 0 0 30px rgba(139, 92, 246, 0.5);
  --glow-accent: 0 0 30px rgba(6, 182, 212, 0.5);
}

/* =====================
   CONTAINER SYSTEM
   ===================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--foreground);
}

/* =====================
   SECTION COMPONENT
   ===================== */
.section {
  padding: 4rem 0;
  position: relative;
}

.section--alternate {
  background: rgba(26, 10, 46, 0.3);
}

.section--highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.section--pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* =====================
   BUTTON SYSTEM
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: var(--primary-foreground);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn--primary:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
  border-color: rgba(139, 92, 246, 0.4);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
  }
}

.btn--glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* =====================
   CARD SYSTEM
   ===================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.4);
}

.card--feature {
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.card--feature:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* =====================
   BADGE COMPONENT
   ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge--primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge--accent {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-glow);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* =====================
   GRID SYSTEM
   ===================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================
   TEXT UTILITIES & EFFECTS
   ===================== */
.text-center {
  text-align: center;
}

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

.glow-text-primary {
  color: var(--primary-glow);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.glow-text-accent {
  color: var(--accent-glow);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
}

.glow-text-success {
  color: var(--success);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
}

.price-highlight {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* =====================
   SPACING UTILITIES
   ===================== */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* =====================
   FLEXBOX UTILITIES
   ===================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* =====================
   RESPONSIVE UTILITIES
   ===================== */
.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.aspect-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.aspect-video img,
.aspect-video iframe,
.aspect-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   LIST STYLES
   ===================== */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-disc {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.list-disc li {
  margin-bottom: 0.5rem;
}

/* =====================
   FAQ COMPONENT
   ===================== */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary-glow);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--background);
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
}

footer p {
  color: var(--muted);
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* =====================
   MOBILE OPTIMIZATIONS
   ===================== */
@media (max-width: 767px) {
  .section {
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  .btn--large {
    width: 100%;
    padding: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .grid {
    gap: 1rem;
  }
}

/* =====================
   ACCESSIBILITY
   ===================== */
@media (prefers-contrast: high) {
  :root {
    --card-border: rgba(139, 92, 246, 0.8);
    --primary: #a78bfa;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================
   PRINT STYLES
   ===================== */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .btn,
  footer,
  .faq-question {
    display: none;
  }
}