/* ==============================================================
   Design System & Tokens
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Cores Baseadas na Identidade (Dark Violet & Phoenix) */
  --bg-dark: #080510;
  --bg-card: rgba(43, 26, 65, 0.2);
  --bg-card-hover: rgba(69, 41, 105, 0.4);
  
  --primary: #9457E3;
  --primary-glow: rgba(148, 87, 227, 0.4);
  --secondary: #D4A373; /* Tom champanhe/dourado das ramificações */
  --accent: #E2C2FF;
  
  --text-main: #FFFFFF;
  --text-muted: #A39BB0;
  --border-color: rgba(148, 87, 227, 0.2);
  
  /* Gradientes */
  --gradient-text: linear-gradient(90deg, #E2C2FF 0%, #9457E3 100%);
  --gradient-bg: radial-gradient(circle at 15% 50%, rgba(148,87,227,0.12), transparent 40%),
                 radial-gradient(circle at 85% 30%, rgba(212,163,115,0.08), transparent 40%);
                 
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ==============================================================
   Reset & Base setup
   ============================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==============================================================
   Tipografia
   ============================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==============================================================
   Layout & Container
   ============================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: 6rem 0;
}

/* ==============================================================
   Glassmorphism & Utilities
   ============================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
  box-shadow: 0 10px 40px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #7B42F6 0%, #9457E3 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(148, 87, 227, 0.6);
  transform: translateY(-2px) scale(1.02);
}

/* ==============================================================
   Components: Header
   ============================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(8, 5, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 1.2rem;
  /* Espaço reservado para o logo real */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

/* ==============================================================
   Components: Hero
   ============================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(148, 87, 227, 0.1);
  border: 1px solid var(--primary);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Glow orb in bg */
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(148,87,227,0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ==============================================================
   Components: Ecosystem Grid (7 Pilares)
   ============================================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
}

/* Fazer um dos pilares ocupar 2 colunas se sobrar espaço (Masonry-like) */
@media (min-width: 992px) {
  .ecosystem-card:nth-child(1),
  .ecosystem-card:nth-child(7) {
    grid-column: span 2;
  }
}

.ecosystem-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(148, 87, 227, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.8rem;
  border: 1px solid rgba(148, 87, 227, 0.3);
}

.ecosystem-card h3 {
  font-size: 1.4rem;
  color: #fff;
}

.ecosystem-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==============================================================
   Components: CTA Final
   ============================================================== */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-box {
  padding: 60px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(8,5,16,0) 100%);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ==============================================================
   Footer
   ============================================================== */
footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==============================================================
   Animations (Reveal on scroll)
   ============================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay staggered for grid */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }

/* ==============================================================
   Responsive Queries
   ============================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .ecosystem-card {
    grid-column: span 1 !important;
  }
  
  .cta-box h2 {
    font-size: 2rem;
  }
  
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  header {
    padding: 15px 0;
  }
  
  .logo-text {
    font-size: 1.3rem !important;
    white-space: nowrap;
  }
  
  .nav-container img {
    height: 35px !important;
  }
  
  .nav-container .btn {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
    white-space: nowrap;
  }
}
