:root {
  --bg-midnight: #080809;
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --accent-gold: #D4AF37;
  --text-main: #FAFAF9;
  --text-muted: #A1A1AA;
  --border-light: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(212, 175, 55, 0.34);
}

body {
  background-color: var(--bg-midnight);
  color: var(--text-main);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 36rem),
    radial-gradient(circle at 12% 18%, rgba(34, 197, 94, 0.05), transparent 24rem),
    linear-gradient(180deg, #080809 0%, #0b0b0d 45%, #070708 100%);
  background-attachment: fixed;
}

/* Glassmorphism custom components */
.glass-panel {
  background: var(--surface-glass);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 20px -10px rgba(212, 175, 55, 0.15);
}

/* Premium Buttons & Links */
.premium-btn,
.premium-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.premium-btn:hover,
.premium-link:hover {
  transform: translateY(-2px);
}

.premium-btn.primary,
.premium-link.primary {
  background: var(--accent-gold);
  color: var(--bg-midnight);
  border-color: var(--accent-gold);
}

.premium-btn.primary:hover,
.premium-link.primary:hover {
  background: #c39e2e;
  border-color: #c39e2e;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.premium-btn.light,
.premium-link.light {
  background: var(--text-main);
  color: var(--bg-midnight);
  border-color: var(--text-main);
}

.premium-btn.light:hover,
.premium-link.light:hover {
  background: var(--accent-gold);
  color: var(--bg-midnight);
  border-color: var(--accent-gold);
}

/* Keyboard focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f3df98;
  outline-offset: 3px;
}

/* Custom gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #fff 0%, #f3df98 42%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FAQ Details details style */
details {
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

details[open] {
  border-bottom-color: var(--border-accent);
}

details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Hero signal/pulse animation */
.pulse-signal {
  position: relative;
  display: inline-block;
}

.pulse-signal::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  animation: pulse-out 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulse-out {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  100% {
    width: 140%;
    height: 140%;
    opacity: 0;
  }
}

/* Catálogo e Filtros de Objetivos */
.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-chip.active {
  background: var(--accent-gold);
  color: #080809;
  border-color: var(--accent-gold);
  box-shadow: 0 6px 18px -8px rgba(212, 175, 55, 0.5);
}

/* Transição visual suave para a filtragem de cards */
.catalog-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.catalog-card.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

/* Badges de Classificação Editorial */
.badge-classification {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.badge-ready {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
}

.badge-conceptual {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.badge-diagnostic {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* ============================================================
   TECH SHOWCASE (Catálogo de Soluções com Fundo Claro)
   ============================================================ */
.tech-showcase {
  --light-bg: #ffffff;
  --light-card: rgba(255, 255, 255, 0.78);
  --light-card-strong: #ffffff;
  --light-text: #0f172a;
  --light-muted: #475569;
  --light-line: rgba(15, 23, 42, 0.11);
  color: var(--light-text);
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 50% 30%, #ffffff 15%, rgba(255, 255, 255, 0) 85%),
    radial-gradient(circle, rgba(15, 23, 42, 0.12) 1px, transparent 1.5px),
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 45px 45px, 45px 45px, 45px 45px;
  background-position: 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  isolation: isolate;
}

/* Forçar cores do texto na seção clara do catálogo */
.tech-showcase h2,
.tech-showcase h3 {
  color: var(--light-text) !important;
}

.tech-showcase p,
.tech-showcase span:not(.badge-classification):not(.ph) {
  color: var(--light-muted) !important;
}

/* Chips de Filtro Claras */
.tech-showcase .filter-chip {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #475569 !important;
}

.tech-showcase .filter-chip:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  border-color: rgba(15, 23, 42, 0.28) !important;
  color: #0f172a !important;
}

.tech-showcase .filter-chip.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.8) !important;
}

/* Cards no catálogo claro */
.tech-showcase .catalog-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    var(--light-card) !important;
  border: 1px solid var(--light-line) !important;
  box-shadow: 0 16px 38px -30px rgba(15, 23, 42, 0.24) !important;
}

.tech-showcase .catalog-card:hover {
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 22px 42px -32px rgba(15, 23, 42, 0.34) !important;
  transform: translateY(-3px) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.74)),
    var(--light-card-strong) !important;
}

/* Botões premium dentro da seção clara */
.tech-showcase .premium-btn,
.tech-showcase .premium-link {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.tech-showcase .premium-btn:hover,
.tech-showcase .premium-link:hover,
.tech-showcase .premium-btn.primary,
.tech-showcase .premium-link.primary {
  color: #080809 !important;
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
}
