/* =====================================================
   ROOT VARIABLES
   ===================================================== */

:root {
  --primary: #0066ff;
  --primary-light: #0099ff;
  --accent: #7c3aed;
  --white: #ffffff;
  --text-primary: #f0f4f8;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --bg-dark: #020617;
  --bg-darker: #0f172a;
  --dark-border: #1e293b;
  --transition: all 0.3s ease;
  --radius: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0e27 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn-primary, .btn-secondary, .btn-header {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--dark-border);
}

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

.btn-header {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  font-size: 0.9rem;
  padding: 10px 24px;
}

.btn-header:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
}

.service-link:hover {
  gap: 12px;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  font-family: var(--font-display);
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-impact-text {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: center;
  padding: 30px 0;
}

.hero-impact-text h3 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.hero-impact-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* =====================================================
   SOBRE SECTION
   ===================================================== */

.sobre {
  padding: 100px 0;
  background: rgba(0, 102, 255, 0.02);
  border-top: 1px solid rgba(0, 102, 255, 0.1);
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.pillar-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(0, 102, 255, 0.1);
  padding: 40px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
}

.pillar-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(15, 23, 42, 0.7);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* =====================================================
   SERVIÇOS SECTION
   ===================================================== */

.servicos {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.service-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(0, 102, 255, 0.1);
  padding: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(15, 23, 42, 0.7);
}

.service-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 102, 255, 0.1);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.cta-section {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  padding: 60px 40px;
  border-radius: var(--radius);
  text-align: center;
}

.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cta-section .btn-primary {
  margin-top: 30px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 15px;
}

/* =====================================================
   RESULTADOS SECTION
   ===================================================== */

.resultados {
  padding: 100px 0;
  background: rgba(0, 102, 255, 0.02);
  border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(0, 102, 255, 0.1);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =====================================================
   TESTIMONIALS SLIDER
   ===================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0 40px;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(0, 102, 255, 0.15);
  padding: 40px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-5px);
}

.testimonial-stat-badge {
  display: inline-block;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-bottom: 12px;
  align-self: flex-start;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
}

.testimonial-stars i {
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0, 102, 255, 0.2);
  object-fit: cover;
  object-position: center;
}

.testimonial-author-info strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.testimonial-author-info span {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.testimonial-prev, .testimonial-next {
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.testimonial-prev:hover, .testimonial-next:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.testimonial-dot:hover {
  background: rgba(0, 102, 255, 0.3);
}

.testimonial-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* =====================================================
   CONTATO SECTION
   ===================================================== */

.contato {
  padding: 100px 0;
  background: rgba(0, 102, 255, 0.03);
  border-top: 1px solid rgba(0, 102, 255, 0.1);
}

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

.contato-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* =====================================================
   FLOATING CTA BUTTON
   ===================================================== */

.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
  transition: var(--transition);
  z-index: 500;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.floating-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 499;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--primary);
  background: rgba(0, 102, 255, 0.1);
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(0, 102, 255, 0.1);
  padding: 60px 0 20px;
  color: var(--text-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.social-links a:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 102, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.95);
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom: none;
    pointer-events: none;
  }

  .nav.active {
    max-height: 400px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--primary);
  }

  .btn-header {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .pillars-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .testimonials-controls {
    gap: 15px;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 90px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
