/* ===================================================
   ESCALA LEADS — Cases SEO Portfolio
   main.css — Estilos globais + Starfield + Cards
   =================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Paleta da marca */
  --brand-black:   #000000;
  --brand-dark:    #333333;
  --brand-light:   #E9E9F7;
  --brand-white:   #ffffff;

  --bg-deep:       #0a0a0a;
  --bg-mid:        #111111;
  --bg-card:       rgba(51, 51, 51, 0.45);
  --bg-card-hover: rgba(51, 51, 51, 0.7);

  /* Acents redefinidos com as cores da marca */
  --accent-primary: #E9E9F7;
  --accent-light:   #ffffff;
  --accent-mid:     #c8c8de;

  /* Mantém alias para compatibilidade */
  --accent-green:  #E9E9F7;
  --accent-blue:   #ffffff;
  --accent-purple: #c8c8de;

  --text-primary:  #ffffff;
  --text-secondary:#E9E9F7;
  --text-muted:    #888899;

  --border:        rgba(233, 233, 247, 0.12);
  --border-hover:  rgba(233, 233, 247, 0.45);

  --font:          'Outfit', sans-serif;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-card:   0 8px 40px rgba(0, 0, 0, 0.8);
  --shadow-glow:   0 0 60px rgba(233, 233, 247, 0.08);

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Starfield Canvas ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Shooting Stars (CSS layer) ---------- */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.shooting-star {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(200,220,255,0.9));
  opacity: 0;
}

/* 12 estrelas cadentes com tamanhos, ângulos e timings variados */
.shooting-star:nth-child(1)  { width: 220px; top:  8%; left: -10%; animation: shoot 5s linear 0.5s infinite; }
.shooting-star:nth-child(2)  { width: 300px; top: 18%; left: -10%; animation: shoot 4s linear 2.0s infinite; }
.shooting-star:nth-child(3)  { width: 180px; top:  3%; left: -10%; animation: shoot 6s linear 1.2s infinite; }
.shooting-star:nth-child(4)  { width: 260px; top: 35%; left: -10%; animation: shoot 3.5s linear 3.5s infinite; }
.shooting-star:nth-child(5)  { width: 200px; top: 55%; left: -10%; animation: shoot 7s linear 0.8s infinite; }
.shooting-star:nth-child(6)  { width: 280px; top: 12%; left: -10%; animation: shoot 4.5s linear 5.0s infinite; }
.shooting-star:nth-child(7)  { width: 240px; top: 25%; left: -10%; animation: shoot 5.5s linear 1.8s infinite; }
.shooting-star:nth-child(8)  { width: 190px; top: 45%; left: -10%; animation: shoot 3s   linear 4.2s infinite; }
.shooting-star:nth-child(9)  { width: 310px; top:  6%; left: -10%; animation: shoot 4s   linear 6.0s infinite; }
.shooting-star:nth-child(10) { width: 220px; top: 70%; left: -10%; animation: shoot 6s   linear 2.5s infinite; }
.shooting-star:nth-child(11) { width: 250px; top: 20%; left: -10%; animation: shoot 3.8s linear 7.5s infinite; }
.shooting-star:nth-child(12) { width: 170px; top: 60%; left: -10%; animation: shoot 5s   linear 9.0s infinite; }

@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(28deg);      opacity: 0; }
  5%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(115vw, 50vw) rotate(28deg); opacity: 0; }
}


/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.btn-cta {
  background: var(--brand-light);
  color: var(--brand-black) !important;
  font-weight: 700;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(233, 233, 247, 0.3);
  background: var(--brand-white) !important;
  color: var(--brand-black) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 10;
  padding: 100px 0 80px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(233, 233, 247, 0.08);
  border: 1px solid rgba(233, 233, 247, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--brand-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-brand {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-white) 60%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-white) 50%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  padding: 28px 40px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-light);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Logo Carousel (Ticker) */
.clients-carousel-wrap {
  width: 100%;
  max-width: 1050px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-carousel-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logoScroll 35s linear infinite;
}

.clients-carousel-wrap:hover .clients-carousel-track {
  animation-play-state: paused;
}

.carousel-client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

.carousel-client-item img {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.9) opacity(0.85);
  transition: all 0.3s ease;
}

.carousel-client-item:hover img {
  filter: brightness(1.25) opacity(1);
  transform: scale(1.1);
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Cases Section ---------- */
.cases-section {
  position: relative;
  z-index: 10;
  padding: 80px 0 100px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- Case Card ---------- */
.case-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233,233,247,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.case-card:hover::before { opacity: 1; }

.case-card-inner {
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 20px;
  height: 100%;
}

/* Status badge */
.card-status { display: flex; justify-content: flex-end; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.status-ativo {
  background: rgba(0, 210, 110, 0.13);
  color: #00d26a;
  border: 1px solid rgba(0, 210, 110, 0.35);
}
.status-inativo {
  background: rgba(51, 51, 51, 0.6);
  color: var(--text-muted);
  border: 1px solid rgba(233, 233, 247, 0.15);
}
.status-pausado {
  background: rgba(233, 233, 247, 0.08);
  color: var(--brand-light);
  border: 1px solid rgba(233, 233, 247, 0.2);
}

/* Logo wrap */
.card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px;
  overflow: hidden;
}
.card-logo {
  max-height: 72px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: var(--transition);
}
.case-card:hover .card-logo { transform: scale(1.05); filter: brightness(1.2); }

/* Card info */
.card-client-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-segment {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.card-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.highlight-pill {
  padding: 4px 12px;
  background: rgba(233, 233, 247, 0.08);
  border: 1px solid rgba(233, 233, 247, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-light);
}
/* Pill de palavra-chave destaque — fica em evidência */
.highlight-pill--keyword {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--brand-white);
  font-size: 0.74rem;
}

/* Card CTA */
.card-cta { margin-top: auto; }
.btn-see-case {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(233, 233, 247, 0.08);
  border: 1px solid rgba(233, 233, 247, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-light);
  width: 100%;
  justify-content: center;
  transition: var(--transition);
}
.case-card:hover .btn-see-case {
  background: var(--brand-light);
  color: var(--brand-black);
  border-color: var(--brand-light);
  gap: 12px;
}

/* ---------- Empty State ---------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
  overflow: hidden;
}
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233,233,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--brand-light);
  color: var(--brand-black);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--brand-white);
  box-shadow: 0 12px 40px rgba(233, 233, 247, 0.3);
}
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { height: 36px; width: auto; opacity: 0.7; margin: 0 auto; }
.footer-text { font-size: 0.85rem; color: var(--text-muted); }
.footer-location { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Nebula blobs ---------- */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(233,233,247,0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233,233,247,0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 60px 0 48px; }
  .hero-stats {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .stat-divider { width: 48px; height: 1px; }
  nav .nav-link:not(.btn-cta) { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .case-card-link { padding: 20px; }
}
