@import url('../brand/programando-solucoes-tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* Reset e Configurações Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--ps-font-sans);
  background-color: var(--ps-bg-canvas);
  color: var(--ps-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--ps-bg-canvas);
  color: var(--ps-text-body);
  transition: background-color var(--ps-transition-normal), color var(--ps-transition-normal);
}

/* Utilitários Flex & Grid */
.container-ps {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid-cols-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Background Gradients & Effects */
.bg-mesh-dark {
  background-color: #172837;
  background-image: 
    radial-gradient(at 10% 20%, rgba(38, 61, 83, 0.7) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(245, 184, 46, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(56, 189, 248, 0.06) 0px, transparent 50%);
}

.bg-mesh-card {
  background: linear-gradient(135deg, rgba(38, 61, 83, 0.6) 0%, rgba(31, 52, 72, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-mesh-card:hover {
  border-color: rgba(245, 184, 46, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 184, 46, 0.15);
  transform: translateY(-3px);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Tipografia Estilizada */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ps-font-brand);
  color: var(--ps-text-heading);
  letter-spacing: -0.015em;
  font-weight: 700;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFDF5A 0%, #F5B82E 50%, #E2A622 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan-accent {
  color: #38bdf8;
}

/* Componentes Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ps-color-gold-base);
  color: #172837;
  font-family: var(--ps-font-brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--ps-radius-md);
  text-decoration: none;
  transition: all var(--ps-transition-fast);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(245, 184, 46, 0.3);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--ps-color-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(38, 61, 83, 0.6);
  color: #ffffff;
  font-family: var(--ps-font-brand);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--ps-radius-md);
  text-decoration: none;
  transition: all var(--ps-transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: rgba(53, 82, 110, 0.8);
  border-color: rgba(245, 184, 46, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Badges e Tags */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 184, 46, 0.12);
  color: #f5b82e;
  border: 1px solid rgba(245, 184, 46, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.badge-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

/* Navbar Sticky */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(23, 40, 55, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--ps-transition-normal);
}

/* Mobile Nav Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
}

.mobile-menu-drawer.active {
  display: flex;
}

/* Cards & Vitrines */
.feature-card {
  transition: all 0.25s ease-in-out;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* Code Snippet Box */
.code-box {
  font-family: var(--ps-font-mono);
  background: #0d1721;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  overflow-x: auto;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-glow {
  animation: pulseGlow 6s infinite ease-in-out;
}
