@import url('./_tokens.css');
@import url('./breadcrumb.css');

:root {
  /* Dark Cyber Premium Theme Palette */
  --bg-main: #06080F;
  --bg-surface: #0A0D1A;
  --bg-card: rgba(16, 20, 36, 0.65);
  --bg-card-hover: rgba(20, 25, 45, 0.8);
  
  --primary: #6B46FF;
  --primary-light: #8A63F8;
  --secondary: #4A90E2;
  --accent: #00D4AA;
  
  --text-main: #FFFFFF;
  --text-muted: #A0AEC0;
  --text-accent: #8A63F8;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(107, 70, 255, 0.35);
  --border-focus: #8A63F8;
  
  --success: #10873a;
  --success-light: #2ecc71;
  --danger: #d42020;
  --danger-light: #e74c3c;
  --warning: #f59e0b;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Utils */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 20px rgba(107, 70, 255, 0.25);
  --shadow-glow-lg: 0 0 35px rgba(107, 70, 255, 0.2), 0 0 70px rgba(107, 70, 255, 0.08);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  /* Layout Grid & Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

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

*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(circle at 15% 50%, rgba(107, 70, 255, 0.04) 0%, transparent 45%),
                    radial-gradient(circle at 85% 30%, rgba(74, 144, 226, 0.04) 0%, transparent 45%),
                    radial-gradient(circle at 50% 80%, rgba(0, 212, 170, 0.02) 0%, transparent 40%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-pad {
  padding: var(--space-xl) 0;
}

.text-gradient {
  background: linear-gradient(135deg, #8A63F8 0%, #4A90E2 50%, #00D4AA 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  font-weight: 700; 
  line-height: 1.25; 
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-sm);
  color: #FFFFFF;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

.section-title.center,
.section-subtitle.center {
  text-align: center;
  margin-inline: auto;
}

/* Navigation & Mega Menu */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: var(--space-sm) 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
}

nav.scrolled {
  padding: 12px 5%;
  background-color: rgba(6, 8, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFFFFF;
}

.logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

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

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(6, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 998;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links .nav-link {
    font-size: 1.3rem;
    padding: 12px 0;
  }

  .nav-links .btn {
    font-size: 1rem;
    padding: 14px 28px;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, 
.nav-link.active {
  color: #FFFFFF;
}

.nav-link i {
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown / Mega Menu container */
.mega-menu {
  position: absolute;
  top: 100%;
  left: -150px;
  transform: translateY(15px);
  width: 650px;
  max-width: calc(100vw - 10%);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 999;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mega-menu-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
  grid-column: span 2;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.mega-menu-item {
  display: flex;
  gap: 15px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mega-menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mega-menu-icon {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.mega-menu-content h5 {
  font-size: 0.95rem;
  color: #FFF;
  margin-bottom: 4px;
}

.mega-menu-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    padding: 20px 0;
    box-shadow: none;
    background: transparent;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mega-menu-title {
    grid-column: span 1;
    text-align: center;
  }
}

/* Badges */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(107, 70, 255, 0.25);
  background: rgba(107, 70, 255, 0.04);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #6B46FF 0%, #4A90E2 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(107, 70, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* WhatsApp Floating & Back to Top */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
}

.whatsapp-notification {
  background: rgba(10, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  animation: floatNotification 3s ease infinite;
  pointer-events: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.whatsapp-notification.visible {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-notification strong {
  color: #25D366;
  display: block;
}

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

.whatsapp-float {
  background-color: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1EBE5D;
}

.back-to-top {
  position: fixed;
  bottom: 105px;
  right: 35px;
  background: rgba(10, 13, 26, 0.8);
  color: var(--primary-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  z-index: 1000;
}

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

.back-to-top:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}

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

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.hero-graphic-container {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Efeito Glow Cards */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px var(--space-md);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.glow-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(107, 70, 255, 0.15);
}

.glow-card:hover::after {
  opacity: 1;
}

/* Service Card Específico */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-list {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.service-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-link {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  text-decoration: underline;
  gap: 10px;
}

/* Timeline Metodologia */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  transition: var(--transition);
  position: relative;
}

.timeline-step:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(107, 70, 255, 0.2);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  transition: var(--transition);
}

.timeline-step:hover .step-number {
  color: var(--primary-light);
}

.timeline-step h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  padding-right: 40px;
}

.timeline-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Diferenciais Cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diff-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.diff-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(107, 70, 255, 0.08);
  border: 1px solid rgba(107, 70, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 20px;
  transition: var(--transition);
}

.diff-card:hover .diff-icon-wrap {
  background: rgba(107, 70, 255, 0.18);
  color: #FFF;
  box-shadow: 0 0 20px rgba(107, 70, 255, 0.3);
}

.diff-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats / Credenciais Bar */
.stats-bar {
  background: rgba(10, 13, 26, 0.8);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Team Grid & Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 20px;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  background-color: var(--bg-surface);
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-align: center;
  min-height: 38px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.team-social {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.team-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.team-social-link:hover {
  color: #FFFFFF;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Testimonials / Carrossel */
.testimonials-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(107, 70, 255, 0.15);
  position: absolute;
  top: -30px;
  left: -15px;
}

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

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2px;
}

.testimonial-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-surface);
}

.testimonial-author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  color: var(--primary-light);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

/* Forms & Portal de Privacidade */
.portal-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-section {
  margin-bottom: 24px;
}

.form-section.full-width {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-section.full-width {
    grid-column: span 1;
  }
}

.premium-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.premium-label i {
  color: var(--primary-light);
}

.premium-input {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.premium-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.premium-input.invalid {
  border-color: var(--danger-light) !important;
  box-shadow: 0 0 10px rgba(212, 32, 32, 0.15) !important;
}

.premium-input.valid {
  border-color: rgba(46, 204, 113, 0.5) !important;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 6px;
  display: block;
}

/* Custom Select Dropdowns */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.custom-select:hover {
  border-color: var(--primary-light);
}

.custom-select.open {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow);
}

.custom-select-arrow {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(10, 13, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-lg);
  max-height: 250px;
  overflow-y: auto;
}

.custom-select.open + .custom-options {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.custom-option {
  padding: 14px 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.custom-option:hover,
.custom-option.selected {
  background-color: rgba(107, 70, 255, 0.12);
  color: #FFFFFF;
  border-left-color: var(--primary-light);
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(10, 13, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left-color: var(--accent);
}

.toast.error {
  border-left-color: var(--danger-light);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast.success .toast-icon {
  color: var(--accent);
}

.toast.error .toast-icon {
  color: var(--danger-light);
}

/* Legal Pages indices & breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: #FFFFFF;
}

.breadcrumb-separator {
  font-size: 0.75rem;
}

.termos-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 992px) {
  .termos-layout {
    grid-template-columns: 1fr;
  }
}

.termo-indice-wrapper {
  position: sticky;
  top: 120px;
}

.termo-indice {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.termo-indice h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.termo-indice ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.termo-indice a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
}

.termo-indice a:hover,
.termo-indice a.active {
  color: #FFFFFF;
  border-left-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.02);
}

.termo-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.termo-content h3 {
  font-size: 1.25rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.termo-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Simulador Risco ANPD & Outros Simuladores */
.simulator-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px var(--space-md);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.sim-header {
  text-align: center;
  margin-bottom: 35px;
}

.sim-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.sim-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 10px rgba(107, 70, 255, 0.4);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sim-step {
  display: none;
}

.sim-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.sim-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.sim-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sim-option-btn {
  width: 100%;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-option-btn:hover {
  background: rgba(107, 70, 255, 0.08);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.sim-results {
  display: none;
  text-align: center;
  animation: scaleUp 0.4s ease;
}

.sim-results.active {
  display: block;
}

.sim-score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 4px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
}

.sim-score-val {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.sim-score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 5px;
}

.sim-risk-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.sim-risk-badge.high {
  background: rgba(212, 32, 32, 0.15);
  border: 1px solid var(--danger);
  color: #ff6b6b;
}

.sim-risk-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--warning);
  color: #fbbf24;
}

.sim-risk-badge.low {
  background: rgba(16, 135, 58, 0.15);
  border: 1px solid var(--success-light);
  color: #51cf66;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer styling */
footer {
  padding: 80px 0 40px;
  background: #04050A;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 20px;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-contact p {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact a {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Responsive Visibility */
.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-flex !important;
  }
}

/* Accessibility settings */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
