/* ==========================================================================
   RESET & VARIÁVEIS DE TEMA
   ========================================================================== */
:root {
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Paleta Dark Theme fiel ao Lovable */
  --bg-primary: #070709;
  --bg-secondary: #0e0e12;
  --bg-surface: #121217;
  --bg-card-hover: #16161d;
  
  --foreground: #f4f4f6;
  --foreground-muted: #8e8d9a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(191, 0, 255, 0.45);
  
  /* Roxo Elétrico Worth */
  --accent-primary: #bf00ff;
  --accent-hover: #673ee3;
  --accent-glow: rgba(191, 0, 255, 0.35);
  --accent-subtle: rgba(121, 82, 245, 0.12);
  
  --header-height: 76px;
  --container-max-w: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.border-b {
  border-bottom: 1px solid var(--border-color);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

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

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

/* ==========================================================================
   ÍCONES E TIPOGRAFIA AUXILIAR
   ========================================================================== */
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-accent {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-padding {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-lg {
  height: 56px;
  padding: 0 2rem;
  font-size: 0.95rem;
}

.btn-xl {
  height: 64px;
  padding: 0 2.25rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.btn-white {
  background-color: #ffffff;
  color: #000000;
}

.btn-white:hover {
  background-color: #e4e4e7;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   CABEÇALHO (HEADER)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  background-color: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.logo-box {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 0, 255, 0.45);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.brand-logo:hover .logo-box {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-sub {
  font-weight: 500;
  color: var(--foreground-muted);
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn {
  display: none;
}

.mobile-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .header-actions .btn {
    display: inline-flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(191, 0, 255, 0.28) 0%, rgba(7, 7, 9, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 60% 40%, black 15%, transparent 75%);
  pointer-events: none;
}

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

.hero-content {
  max-width: 900px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(191, 0, 255, 0.35);
  background-color: var(--accent-subtle);
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  box-shadow: 0 0 28px var(--accent-glow);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.hero-description {
  margin-top: 1.75rem;
  max-width: 650px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--foreground-muted);
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.hero-feature-bar {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-square {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 0, 255, 0.4);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground-muted);
}

/* ==========================================================================
   SEÇÃO SOBRE & PILARES (GRID)
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
  }
}

.lead-text {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--foreground);
}

.body-text {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground-muted);
}

.pillars-grid {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 1fr;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: 2.25rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.pillar-card:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 0, 255, 0.3);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
}

.pillar-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-muted);
}

.pillar-category {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.pillar-heading {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.pillar-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--foreground-muted);
}

/* ==========================================================================
   MATRIZ DE SOLUÇÕES (8 CARDS)
   ========================================================================== */
.solutions-header {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .solutions-header {
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
  }
  .solutions-intro {
    justify-self: end;
  }
}

.solutions-intro {
  font-size: 1.1rem;
  color: var(--foreground-muted);
}

.solutions-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-card {
  position: relative;
  min-height: 290px;
  padding: 1.75rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.solution-card:hover {
  background-color: var(--bg-card-hover);
}

.solution-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.solution-num {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--foreground-muted);
}

.solution-bottom h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.solution-bottom p {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--foreground-muted);
}

.solution-line {
  margin-top: 1.25rem;
  height: 2px;
  width: 32px;
  background-color: var(--accent-primary);
  transition: width 0.35s ease;
}

.solution-card:hover .solution-line {
  width: 100%;
}

/* ==========================================================================
   BANNER DE CONTATO / CTA
   ========================================================================== */
.cta-banner {
  position: relative;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
  border-top: 1px solid rgba(191, 0, 255, 0.4);
  border-bottom: 1px solid rgba(191, 0, 255, 0.4);
}

.cta-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .cta-container {
    grid-template-columns: 1fr auto;
    align-items: flex-end;
  }
}

.cta-kicker {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.cta-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 820px;
}

.cta-description {
  margin-top: 1.25rem;
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-primary);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--foreground-muted);
}

.footer-nav a:hover,
.footer-link-btn:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--foreground-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MODAL DE AGENDAMENTO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--foreground-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.modal-desc {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--foreground-muted);
}

.modal-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--foreground-muted);
}

.form-group input {
  height: 48px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--foreground);
  padding: 0 1rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--accent-primary);
}