/* ========================================
   Pagi IA SEO - CSS Puro
   Versão HTML/CSS/JS do site
======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Variables (Cores e Configurações)
======================================== */
:root {
  /* Cores Base */
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(215, 50%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 50%, 15%);
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(215, 50%, 25%);
  --muted: hsl(210, 30%, 94%);
  --muted-foreground: hsl(215, 20%, 50%);
  --border: hsl(214, 32%, 91%);
  
  /* Cores Azuis */
  --blue-50: hsl(214, 100%, 97%);
  --blue-100: hsl(214, 95%, 93%);
  --blue-200: hsl(213, 97%, 87%);
  --blue-400: hsl(213, 94%, 68%);
  --blue-500: hsl(217, 91%, 60%);
  --blue-600: hsl(221, 83%, 53%);
  --blue-700: hsl(224, 76%, 48%);
  
  /* Cores dos Planos */
  --starter: hsl(142, 76%, 36%);
  --starter-light: hsl(142, 72%, 94%);
  --pro: hsl(217, 91%, 60%);
  --pro-light: hsl(214, 100%, 97%);
  --enterprise: hsl(24, 95%, 53%);
  --enterprise-light: hsl(38, 100%, 95%);
  --ultra: hsl(271, 91%, 65%);
  --ultra-light: hsl(270, 100%, 98%);
  
  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(224, 76%, 48%) 50%, hsl(226, 71%, 40%) 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, hsl(217, 91%, 60%, 0.3), transparent);
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 hsl(215, 50%, 15%, 0.05);
  --shadow-md: 0 4px 6px -1px hsl(215, 50%, 15%, 0.1), 0 2px 4px -2px hsl(215, 50%, 15%, 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(215, 50%, 15%, 0.1), 0 4px 6px -4px hsl(215, 50%, 15%, 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(215, 50%, 15%, 0.1), 0 8px 10px -6px hsl(215, 50%, 15%, 0.1);
  --shadow-glow: 0 0 40px hsl(217, 91%, 60%, 0.3);
  
  /* Bordas */
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Utilities
======================================== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.glass {
  background-color: hsl(0, 0%, 100%, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ========================================
   Header
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(214, 32%, 91%, 0.5);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}

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

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--foreground);
}

.header-ctas {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.3s ease-out;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 0.5rem 0;
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-xl {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background-color: var(--blue-600);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-hero {
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md), 0 0 30px hsl(217, 91%, 60%, 0.3);
}

.btn-hero:hover {
  box-shadow: var(--shadow-lg), 0 0 40px hsl(217, 91%, 60%, 0.4);
  filter: brightness(1.1);
}

/* Botões dos Planos */
.btn-starter {
  background-color: var(--starter);
  color: white;
}

.btn-starter:hover {
  filter: brightness(1.1);
}

.btn-pro {
  background-color: var(--pro);
  color: white;
}

.btn-pro:hover {
  filter: brightness(1.1);
}

.btn-enterprise {
  background-color: var(--enterprise);
  color: white;
}

.btn-enterprise:hover {
  filter: brightness(1.1);
}

.btn-ultra {
  background-color: var(--ultra);
  color: white;
}

.btn-ultra:hover {
  filter: brightness(1.1);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Hero Section
======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
}

.hero-blob-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: hsl(213, 94%, 68%, 0.2);
  border-radius: 50%;
  filter: blur(64px);
}

.hero-blob-2 {
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: hsl(221, 83%, 53%, 0.1);
  border-radius: 50%;
  filter: blur(64px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(var(--foreground) 1px, transparent 1px), 
                    linear-gradient(90deg, var(--foreground) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1rem;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--blue-100);
  border: 1px solid var(--blue-200);
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.hero-badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--blue-500);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot-core {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--blue-600);
}

.hero-badge-text {
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

/* Headline */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Benefits */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}

.hero-benefit svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--starter);
}

.hero-benefit span {
  font-weight: 500;
}

/* CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-ctas .btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
}

.hero-ctas .btn-hero:hover svg {
  transform: translateX(4px);
}

/* Stats */
.hero-stats {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.hero-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--background), transparent);
}

/* ========================================
   Pricing Section
======================================== */
.pricing {
  padding: 5rem 1rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.pricing-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* Cards Grid */
.pricing-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card Base */
.pricing-card {
  position: relative;
  background-color: var(--card);
  border-radius: calc(var(--radius) + 8px);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-200);
}

.pricing-card-inner {
  padding: 1.5rem;
}

/* Popular Card */
.pricing-card.popular {
  border-color: var(--pro);
  box-shadow: 0 0 30px hsl(217, 91%, 60%, 0.3);
}

.pricing-card.popular .pricing-card-inner {
  padding-top: 3.5rem;
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-hero);
  padding: 0.5rem;
  text-align: center;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.popular-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Plan Header */
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.plan-tag svg {
  width: 1rem;
  height: 1rem;
}

.plan-tag.starter {
  background-color: var(--starter-light);
  color: var(--starter);
}

.plan-tag.pro {
  background-color: var(--pro-light);
  color: var(--pro);
}

.plan-tag.enterprise {
  background-color: var(--enterprise-light);
  color: var(--enterprise);
}

.plan-tag.ultra {
  background-color: var(--ultra-light);
  color: var(--ultra);
}

/* Price */
.plan-price {
  margin-bottom: 1rem;
}

.plan-price-value {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.plan-price-period {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.plan-installment {
  color: var(--ultra);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.plan-installment.enterprise {
  color: var(--enterprise);
}

.plan-installment.pro {
  color: var(--pro);
}

.plan-installment.starter {
  color: var(--starter);
}

.plan-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Features */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.plan-feature-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.plan-feature-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.plan-feature-icon.starter {
  background-color: var(--starter-light);
  color: var(--starter);
}

.plan-feature-icon.pro {
  background-color: var(--pro-light);
  color: var(--pro);
}

.plan-feature-icon.enterprise {
  background-color: var(--enterprise-light);
  color: var(--enterprise);
}

.plan-feature-icon.ultra {
  background-color: var(--ultra-light);
  color: var(--ultra);
}

.plan-feature-icon.disabled {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.plan-feature-content {
  flex: 1;
  min-width: 0;
}

.plan-feature-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.plan-feature-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.plan-feature-value.disabled {
  color: var(--muted-foreground);
}

/* Plan CTA */
.plan-cta {
  margin: 1.5rem 0;
}

/* Pricing Footer */
.pricing-footer {
  margin-top: 4rem;
  text-align: center;
}

.pricing-footer p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* ========================================
   Footer
======================================== */
.footer {
  background-color: var(--foreground);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  background-color: var(--primary);
}

.footer-brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.footer-tagline {
  color: hsl(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: hsl(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 0;
  border-top: 1px solid hsl(0, 0%, 100%, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: hsl(0, 0%, 100%, 0.5);
}

/* ========================================
   Responsive
======================================== */
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .header-ctas {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-benefits {
    gap: 1.5rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-stat-value {
    font-size: 2.25rem;
  }
  
  .pricing-title {
    font-size: 3rem;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .pricing-card.popular {
    transform: scale(1.05);
  }
  
  .pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
  }
}

/* ========================================
   Animations
======================================== */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

