/* ==========================================================================
   ARTO BRAND DESIGN SYSTEM - STYLE SHEET
   Paleta: Preto Profundo (#050505), Dourado Metálico (#D4AF37), Branco e Cinza
   ========================================================================== */

/* 1. VARIÁVEIS DE DESIGN SYSTEM */
:root {
  --bg-dark-raw: #050505;
  --bg-dark-card: #0F0F0F;
  --bg-dark-hover: #161616;
  
  --gold-primary: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #C5A059 50%, #B8860B 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-soft-border: rgba(212, 175, 55, 0.12);
  
  --text-primary: #FFFFFF;
  --text-secondary: #9E9E9E;
  --text-muted: #666666;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
  
  --container-width: 1200px;
}

/* 2. RESET E CONFIGURAÇÕES GLOBAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark-raw);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark-raw);
  line-height: 1.6;
}

/* Barra de rolagem customizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-raw);
}
::-webkit-scrollbar-thumb {
  background: #252525;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* 3. TIPOGRAFIA & UTILITÁRIOS */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-soft-border);
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* 4. BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000000;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.03);
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border: 1px solid var(--gold-soft-border);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.btn-nav:hover {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
}

/* 5. Sleek Sticky Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
  height: 65px;
}

.logo-link {
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
  color: var(--gold-primary);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-dark-raw);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  z-index: 999;
  transform: translateY(-150%);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 0.8rem;
}

.mobile-btn {
  text-align: center;
  background: var(--gold-gradient);
  color: #000000;
  padding: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  border-bottom: none;
}

/* 6. HERO SECTION */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  min-height: 100vh; /* Ocupa do topo à base da tela */
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 2; /* Fica acima do vídeo absoluto */
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual-empty {
  position: relative;
  min-height: 440px; /* Mantém o mesmo espaçamento vertical da coluna */
  pointer-events: none;
}

/* Container do Vídeo Absoluto (Cobre do topo à base na direita) */
.hero-media-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* Metade direita da tela */
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz o vídeo cobrir de ponta a ponta sem distorcer */
  display: block;
}

/* Degradê da esquerda para a direita (preto para transparente) */
.hero-media-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, 
    var(--bg-dark-raw) 0%, 
    rgba(5, 5, 5, 0.95) 15%,
    rgba(5, 5, 5, 0.5) 45%, 
    transparent 100%
  );
  pointer-events: none;
}

/* 7. PILLARS / BENEFÍCIOS */
.pillars {
  background-color: var(--bg-dark-card);
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pillars-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar-card {
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--gold-soft-border);
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pillar-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.pillar-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 8. SERVICES SECTION */
.services {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-subtitle {
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  position: relative;
  background: var(--bg-dark-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(212, 175, 55, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.5s ease;
  opacity: 0;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-soft-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.08);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* Proporção vertical perfeita para Instagram, TikTok e UGC */
  overflow: hidden;
  background-color: #0b0b0b;
}

.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Garante que cabeças e rostos nunca sejam cortados */
  transition: var(--transition-smooth);
}

.service-img.img-center {
  object-position: center center;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Estilo para o fallback do SaaS no grid */
.saas-fallback-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1b1b1b 0%, #0c0c0c 100%);
  color: var(--gold-primary);
  gap: 1rem;
}

.saas-fallback-graphic i {
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.saas-fallback-graphic span {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 9. ABOUT SECTION */
.about {
  padding: 100px 0;
  background-color: var(--bg-dark-card);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.profile-img-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  z-index: 2;
  position: relative;
}

.profile-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.08); /* Aumenta 8% para empurrar e ocultar a marca do Google na base */
  transform-origin: top center; /* Mantém o topo ancorado */
  filter: grayscale(10%) contrast(105%);
}

.frame-border {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-primary);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.profile-frame:hover .frame-border {
  transform: translate(-8px, -8px);
}

.about-content {
  max-width: 600px;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
}

.stat-box {
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.2;
}

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

/* 10. CALL TO ACTION (CTA) */
.cta-section {
  padding: 100px 0 120px;
  background-color: var(--bg-dark-raw);
}

.cta-card {
  position: relative;
  background: radial-gradient(circle at top right, #1a1a1a 0%, #0e0e0e 100%);
  border-radius: 12px;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.cta-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 3rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-item i {
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.contact-item a:hover {
  color: var(--text-primary);
}

/* 11. FOOTER */
.footer {
  background: #020202;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

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

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

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-container {
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-container {
    gap: 3rem;
  }
}

@media (max-width: 991px) {
  .nav-links {
    display: none; /* Esconde em tablets/mobiles */
  }
  
  .mobile-toggle {
    display: block; /* Mostra o hambúrguer */
  }
  
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    padding-top: 130px;
    padding-bottom: 60px;
    position: relative !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
    width: 100%;
    position: relative;
    z-index: 2;
  }
  
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1;
    width: 100%;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-top: auto !important;
    margin-bottom: 2rem !important;
    color: #ffffff !important;
  }
  
  .hero-actions {
    justify-content: center;
    gap: 1rem;
  }

  .hero-visual-empty {
    display: none;
  }

  .hero-media-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin-top: 0 !important;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .hero-media-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
      rgba(5, 5, 5, 0.85) 0%, 
      rgba(5, 5, 5, 0.4) 35%, 
      rgba(5, 5, 5, 0.4) 65%, 
      rgba(5, 5, 5, 0.95) 100%
    ) !important;
    pointer-events: none;
  }

  .hero-video-bg {
    transform: scale(0.68) !important;
    transform-origin: center center !important;
  }

  .navbar.scrolled + .mobile-menu {
    top: 65px;
  }

  .mobile-menu {
    top: 80px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.25);
    padding: 2.5rem 2rem;
  }

  .mobile-link {
    transition: var(--transition-fast);
  }

  .mobile-link:hover {
    color: var(--gold-primary);
    padding-left: 5px;
  }
  
  .pillars-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-visual {
    order: 2;
  }
  
  .about-content {
    margin: 0 auto;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .cta-inner h2 {
    font-size: 2.2rem;
  }
  
  .contact-methods {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* --- EFEITO REVEAL SUAVE (Sem alteração no layout) --- */
.reveal-on-load {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-load.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Atraso suave na revelação do vídeo */
.hero-visual.reveal-on-load {
  transition-delay: 0.15s;
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para pilares, serviços e estatísticas (staggered delay) */
.pillars-container .pillar-card:nth-child(1) { transition-delay: 0.1s; }
.pillars-container .pillar-card:nth-child(2) { transition-delay: 0.2s; }
.pillars-container .pillar-card:nth-child(3) { transition-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.3s; }

.about-stats .stat-box:nth-child(1) { transition-delay: 0.1s; }
.about-stats .stat-box:nth-child(2) { transition-delay: 0.2s; }
.about-stats .stat-box:nth-child(3) { transition-delay: 0.3s; }

