/* ==========================================================================
   AS GRANDES TRADIÇÕES — ARTES DO SUL (tradicoes.artesdosul.com)
   Design System: Cyber-Growth / Spiritual Wisdom Dark Luxury
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 21, 32, 0.75);
  --bg-card-hover: rgba(22, 31, 48, 0.9);
  --bg-glass: rgba(10, 15, 24, 0.85);
  --bg-accent-glass: rgba(217, 119, 6, 0.08);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #fbbf24;
  
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --amber: #d97706;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --rose: #f43f5e;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 158, 11, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);
  
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.15);
  --shadow-cyan-glow: 0 0 35px rgba(6, 182, 212, 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: blur(16px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  background: 
    radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

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

a:hover {
  color: #fde047;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   STICKY NAV HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(7, 9, 14, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--gold-glow);
  color: #fff;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-nav-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #ea580c 100%);
  color: #000 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
  border: none;
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.35;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.2) contrast(1.1);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(7, 9, 14, 0.4) 0%, 
    rgba(7, 9, 14, 0.8) 60%, 
    var(--bg-dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(8px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #fde047 70%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  line-height: 1.7;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0.8;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.stat-card.cyan::before { background: var(--cyan); }
.stat-card.cyan:hover { border-color: var(--border-cyan); box-shadow: var(--shadow-cyan-glow); }
.stat-card.emerald::before { background: var(--emerald); }
.stat-card.purple::before { background: var(--purple); }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-top: 0.15rem;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ==========================================================================
   GLOBAL SEARCH & FILTERS BAR
   ========================================================================== */
.controls-bar {
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.controls-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.search-box input {
  width: 100%;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem 0.65rem 2.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  background: rgba(22, 30, 46, 1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.filter-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.filter-chip.active {
  background: var(--gold);
  color: #07090e;
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section-wrapper {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  background: var(--bg-accent-glass);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   CONVERGÊNCIAS (10 PONTOS ÉTICOS)
   ========================================================================== */
.convergence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.75rem;
}

.convergence-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.convergence-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.point-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.card-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.convergence-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.convergence-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.golden-rule-matrix {
  margin-top: 1rem;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
}

.rule-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-tradition {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
}

.rule-source {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.rule-quote {
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.45;
}

/* ==========================================================================
   TRADIÇÕES CENTRAIS & COMPLEMENTARES (CARDS HUMANIZADOS)
   ========================================================================== */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.tradition-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tradition-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.tradition-header {
  padding: 1.75rem 1.75rem 1rem 1.75rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tradition-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tradition-symbol {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tradition-name-wrap h3 {
  font-size: 1.45rem;
  color: #ffffff;
}

.tradition-origin {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.15rem;
}

.population-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.human-impact-banner {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 1.75rem 1rem 1.75rem;
  font-size: 0.88rem;
  color: #fef08a;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

.tradition-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.gift-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.gift-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gift-text {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.45;
}

.gift-example {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.narrative-text {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.concepts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.concept-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.concept-chip:hover {
  background: var(--gold);
  color: #07090e;
  border-color: var(--gold);
}

.tradition-footer {
  padding: 1rem 1.75rem;
  background: rgba(10, 15, 24, 0.7);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-card-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-card-action:hover {
  color: #ffffff;
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   TENSÕES, CRÍTICAS E AUTOCRÍTICA RIGOROSA
   ========================================================================== */
.tensions-table-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.tensions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tensions-table th {
  background: rgba(20, 28, 45, 0.9);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.tensions-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  vertical-align: top;
  line-height: 1.6;
}

.tensions-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tensions-table tr:last-child td {
  border-bottom: none;
}

.badge-tradition-table {
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.critical-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.takeaway-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(15, 21, 32, 0.85) 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.takeaway-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.takeaway-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.6;
}

/* ==========================================================================
   HABIT TRACKER & DAILY PRACTICE (GROWTH CHECKLIST)
   ========================================================================== */
.habit-tracker-container {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.tracker-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tracker-score-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.circular-progress {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circular-progress::after {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0d131f;
}

.progress-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.tracker-meta h4 {
  font-size: 1.25rem;
  color: #ffffff;
}

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

.habits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.habit-item {
  background: rgba(9, 14, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.habit-item:hover {
  background: rgba(18, 26, 42, 0.9);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.habit-item.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.habit-checkbox {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.3);
}

.habit-item.completed .habit-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #07090e;
}

.habit-checkbox::after {
  content: '✓';
  font-size: 0.9rem;
  font-weight: 900;
  display: none;
}

.habit-item.completed .habit-checkbox::after {
  display: block;
}

.habit-details h5 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.habit-item.completed .habit-details h5 {
  text-decoration: line-through;
  color: #94a3b8;
}

.habit-origin-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.habit-action-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ==========================================================================
   POPULAÇÃO AFETADA & IMPACTO GLOBAL HUMANIZADO
   ========================================================================== */
.demographics-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
}

.demographics-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .demographics-chart-grid {
    grid-template-columns: 1fr;
  }
}

.demo-bar-item {
  margin-bottom: 1.25rem;
}

.demo-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.demo-bar-title {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-bar-count {
  font-family: var(--font-mono);
  color: var(--gold);
}

.demo-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.demo-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold) 0%, #ea580c 100%);
  transition: width 1s ease-out;
}

.demo-bar-fill.cyan { background: linear-gradient(90deg, var(--cyan) 0%, #3b82f6 100%); }
.demo-bar-fill.emerald { background: linear-gradient(90deg, var(--emerald) 0%, #059669 100%); }
.demo-bar-fill.purple { background: linear-gradient(90deg, var(--purple) 0%, #ec4899 100%); }

.demo-narrative-card {
  background: rgba(10, 16, 26, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.demo-narrative-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.demo-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: #fef08a;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==========================================================================
   GLOSSÁRIO INTERATIVO VIVO
   ========================================================================== */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.glossary-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

.glossary-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.glossary-term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.glossary-term {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.glossary-tradition {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.glossary-definition {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.btn-copy-term {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem;
  transition: color var(--transition-fast);
}

.btn-copy-term:hover {
  color: var(--gold);
}

/* ==========================================================================
   BIBLIOTECA & REFERÊNCIAS
   ========================================================================== */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.library-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.library-card h4 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.book-list {
  list-style: none;
}

.book-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #cbd5e1;
}

.book-item:last-child {
  border-bottom: none;
}

.book-title {
  font-weight: 600;
  color: #ffffff;
}

.book-author {
  color: var(--text-gold);
}

/* ==========================================================================
   FOOTER BRANDED
   ========================================================================== */
.site-footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem 0;
  position: relative;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-info {
  max-width: 420px;
}

.footer-brand-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-brand-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav-col h5 {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.signature {
  font-family: var(--font-mono);
}

.signature a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   FLOATING GO-TO-TOP & TOAST
   ========================================================================== */
.gotop-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-active);
  color: var(--gold);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.gotop-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gotop-btn:hover {
  background: var(--gold);
  color: #07090e;
  transform: translateY(-4px) scale(1.05);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  z-index: 10000;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.tracker-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-tracker-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-tracker-action:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: #ffffff;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: rgba(7, 9, 14, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  border-left: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-links a {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition-fast);
}

.mobile-drawer-links a:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .controls-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .filter-chips {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .filter-chip {
    white-space: nowrap;
  }
  
  .tensions-table-wrapper {
    overflow-x: auto;
  }
  
  .tensions-table {
    min-width: 650px;
  }
  
  .habit-tracker-container {
    padding: 1.5rem;
  }
}
