/**
 * Agena Landing Page - Custom Styles
 * 
 * Design System based on "Deep Tech" aesthetic
 * Colors: Deep Space (primary), Ciano (accent), White (text)
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Primary - Azul Estelar (Deep Space) */
  --color-primary: #0a0f1a;
  --color-primary-light: #141b2d;
  --color-primary-dark: #050810;
  
  /* Accent - Ciano de Performance */
  --color-accent: #00d4ff;
  --color-accent-light: #4de8ff;
  --color-accent-dark: #00a8cc;
  
  /* Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0aec0;
  --color-text-muted: #718096;
  
  /* Metallic */
  --color-silver: #c0c5ce;
  --color-silver-dark: #8892a0;
  
  /* Status */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #141b2d 50%, #0a0f1a 100%);
  --gradient-accent: linear-gradient(90deg, #00d4ff 0%, #4de8ff 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);
  
  /* Spacing */
  --section-padding: 5rem;
  --container-max-width: 1280px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
html {
  scroll-behavior: smooth;
}

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

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* ============================================
   Typography
   ============================================ */
.font-display {
  font-family: var(--font-display);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Glassmorphism Components
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--gradient-accent);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 9999px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   Header Styles
   ============================================ */
.header-transparent {
  background: transparent;
}

.header-solid {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-gradient {
  background: var(--gradient-hero);
}

/* Constellation/Grid Background Pattern */
.constellation-bg {
  position: relative;
}

.constellation-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  pointer-events: none;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ============================================
   Agent Cards
   ============================================ */
.agent-card {
  transition: all var(--transition-normal);
}

.agent-card:hover {
  transform: translateY(-8px);
}

.agent-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: scale(1.02);
}

.pricing-card.popular {
  border: 2px solid var(--color-accent);
  position: relative;
}

.pricing-card.popular::before {
  content: 'Mais Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--color-primary);
  padding: 4px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   Form Styles
   ============================================ */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
  padding-right: 3rem;
}

/* ============================================
   Animations
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Glow Animation */
.glow-effect {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent);
  }
  100% {
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent), 0 0 30px var(--color-accent);
  }
}

/* Float Animation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

/* Pulse Animation for Logo */
.pulse-animation {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
  }
}

/* ============================================
   Badge Styles
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.badge-preview {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-launch {
  background: var(--gradient-accent);
  color: var(--color-primary);
}

/* ============================================
   Mobile Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.floating-cta.visible {
  opacity: 1;
}

.floating-cta a {
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

@media (max-width: 768px) {
  .floating-cta {
    display: block;
  }
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   Loading States
   ============================================ */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Success/Error States
   ============================================ */
.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* ============================================
   How It Works Section - Steps Timeline
   ============================================ */

/* Desktop Step Cards */
.step-card {
  position: relative;
  text-align: center;
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  transition: all var(--transition-normal);
}

.step-number-highlight {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.step-icon-highlight {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

.step-card:hover .step-icon {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.step-card-highlight {
  border-color: rgba(0, 212, 255, 0.3) !important;
  background: rgba(0, 212, 255, 0.05) !important;
}

/* Mobile Step Cards */
.step-card-mobile {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.step-number-mobile {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  z-index: 10;
  transition: all var(--transition-normal);
}

.step-number-mobile-highlight {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.step-number-mobile-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #10b981;
}

.step-icon-mobile {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
}

.step-icon-mobile-highlight {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

.step-icon-mobile-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.step-card-mobile-highlight {
  border-color: rgba(0, 212, 255, 0.3) !important;
  background: rgba(0, 212, 255, 0.05) !important;
}

/* Stagger animation delay for step 5 */
.stagger-5 { transition-delay: 0.5s; }
