/* css/style-global.css */

/* ================================================
   VARIÁVEIS
   ================================================ */
:root {
  --bg:           #0a0a12;
  --bg-card:      #0f0f1c;
  --bg-card-hover:#131325;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(124, 58, 237, 0.3);
  --purple:       #7c3aed;
  --purple-light: #a78bfa;
  --purple-dim:   rgba(124, 58, 237, 0.12);
  --purple-glow:  rgba(124, 58, 237, 0.25);
  --text-primary: #f0eeff;
  --text-muted:   #9d9ab0;
  --text-faint:   #6b6880;
  --silver:       #C0C0C0;
  /* legados mantidos para compatibilidade com outros arquivos CSS */
  --primary-color: #7c3aed;
  --accent-color:  #ff6f61;
  --metallic-silver: #C0C0C0;
  --bg-light: #ffffff;
  --text-light: #1a1a1a;
  --bg-dark: #121212;
  --text-dark: #f0f0f0;
}

/* ================================================
   RESET / BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  background-image:
    url('https://www.transparenttextures.com/patterns/stardust.png'),
    linear-gradient(to bottom, #0d0c1e, #0a0a12);
  background-repeat: repeat;
  background-size: 300px, cover;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

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

/* ================================================
   TIPOGRAFIA GLOBAL
   ================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Outfit', sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ================================================
   BOTÕES
   ================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 28px var(--purple-glow);
}
.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 0 44px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* legado */
.btn-cta {
  background-color: var(--purple);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  display: inline-block;
}
.btn-cta:hover { background-color: #6d28d9; }

button, a.button {
  background-color: var(--purple);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}
button:hover, a.button:hover { background-color: #6d28d9; }

/* ================================================
   HERO
   ================================================ */
.hero-section {
  position: relative;
  padding: 100px 40px 80px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-20%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--purple-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--purple-light) 20%, var(--purple) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-faint);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat-num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ================================================
   SEÇÕES GENÉRICAS
   ================================================ */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.section-title-new {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

/* título legado — mantido para outras páginas */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================
   BENTO GRID — SERVIÇOS
   ================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}
.bento-card:hover::before { opacity: 1; }

.bento-featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  border-color: rgba(124, 58, 237, 0.18);
  background: linear-gradient(140deg, #12102a 0%, var(--bg-card) 100%);
}

.bento-icon {
  width: 46px;
  height: 46px;
  background: var(--purple-dim);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--purple-light);
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.bento-featured h3 { font-size: 24px; }

.bento-card p {
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.7;
  font-weight: 300;
}

.bento-tag {
  display: inline-block;
  background: var(--purple-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 20px;
  letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
}

/* ================================================
   DIFERENCIAIS
   ================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.diff-item {
  background: var(--bg);
  padding: 32px 24px;
  transition: background 0.2s;
}
.diff-item:hover { background: var(--bg-card); }

.diff-icon {
  font-size: 22px;
  color: var(--purple-light);
  display: block;
  margin-bottom: 14px;
}

.diff-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.diff-item p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.65;
}

/* ================================================
   SOBRE — STRIP
   ================================================ */
.about-strip {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding: 80px 40px;
}

.about-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 28px;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
}

/* ================================================
   DEPOIMENTOS
   ================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.tcard:hover {
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.tcard-quote {
  font-size: 40px;
  color: rgba(124, 58, 237, 0.35);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 12px;
}

.tcard-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 300;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tcard-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.tcard-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.tcard-role {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  position: relative;
  margin: 0 40px 80px;
  background: linear-gradient(135deg, #12102a 0%, #1a1030 50%, var(--bg-card) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 64px 56px;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  max-width: 400px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================================================
   CARDS LEGADOS (mantidos para outras páginas)
   ================================================ */
.card {
  background: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--silver);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
  max-width: 240px;
  margin: 1rem auto;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.card i  { display: block; font-size: 3rem; margin-bottom: 1.5rem; color: var(--purple); }
.card h3 { font-size: 1.5rem; color: white; margin-bottom: 1rem; }
.card p  { font-size: 1rem; color: var(--silver); }

.card-modern {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out, background 0.3s ease;
}
.card-modern:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.12); }
.card-modern i  { font-size: 3rem; color: var(--purple); margin-bottom: 15px; display: block; }
.card-modern h3 { font-size: 1.4rem; font-weight: bold; color: #fff; margin-bottom: 10px; }
.card-modern p  { font-size: 1rem; color: #ccc; }

.section-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  margin: 0 auto;
  padding: 2rem;
}

.section-about-modern,
.section-projects-modern {
  background: rgba(0, 0, 0, 0.1);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}
.testimonial-card p    { font-size: 1.2rem; color: white; }
.testimonial-card span { display: block; margin-top: 1rem; font-style: italic; color: var(--silver); }

.testimonials-container,
.clients-container-modern {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.testimonial-card-modern,
.client-card-modern {
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 30%;
}
.testimonial-card-modern:hover,
.client-card-modern:hover { transform: scale(1.05); }
.testimonial-text   { font-size: 1.2rem; color: #fff; margin-bottom: 15px; }
.testimonial-author { font-size: 1rem; color: #ccc; font-style: italic; }

.client-image       { border-radius: 50%; width: 70px; height: 70px; margin-bottom: 15px; }
.client-name        { font-size: 1.2rem; color: #fff; margin-bottom: 10px; display: block; }
.client-description { font-size: 1rem; color: #ccc; }

.client-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.client-card img  { border-radius: 50%; max-width: 80px; margin-bottom: 1rem; }
.client-card p    { font-size: 1rem; color: var(--silver); }
.client-card span { font-size: 1.2rem; color: white; }

.card-about {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}
.card-about h3 { font-size: 1.5rem; color: white; margin-bottom: 1rem; }
.card-about p  { font-size: 1rem; color: var(--silver); }

/* ================================================
   WHATSAPP FLUTUANTE
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float i { font-size: 1.8rem; color: #fff; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ================================================
   BOTÃO FLUTUANTE / AÇÕES
   ================================================ */
.botao-flutuante {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  text-align: center;
}

.btn-flutuante {
  background-color: #4C1D95;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn-flutuante:hover { background-color: #6b2a96; transform: scale(1.1); }

.botoes-acoes {
  display: none;
  position: absolute;
  bottom: 70px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  gap: 8px;
}
.botoes-acoes a {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.botoes-acoes a:hover { background-color: #6b2a96; transform: scale(1.1); }
.botao-flutuante.active .botoes-acoes { display: flex; }

/* ================================================
   ANIMAÇÕES
   ================================================ */
@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; }

/* ================================================
   RESPONSIVIDADE
   ================================================ */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-featured {
    grid-column: 1;
    grid-row: auto;
  }
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    margin: 0 20px 60px;
    padding: 44px 32px;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-section  { padding: 72px 20px 60px; }
  .home-section  { padding: 60px 20px; }
  .hero-title    { font-size: 36px; }
  .hero-stats    { gap: 28px; }
  .diff-grid     { grid-template-columns: 1fr; }
  .about-strip   { padding: 60px 20px; }
  .cta-banner    { margin: 0 16px 48px; padding: 36px 24px; }
  .section-cards { grid-template-columns: 1fr; }
  .testimonials-container,
  .clients-container-modern { flex-direction: column; }
  .testimonial-card-modern,
  .client-card-modern { width: 100%; }

  .whatsapp-float { padding: 10px; bottom: 15px; right: 15px; }
  .botoes-acoes a { font-size: 1rem; padding: 6px; }
  .botoes-acoes   { bottom: 60px; }
}