/**
 * ==============================================================================
 * HEATHENDOM — SISTEMA VISUAL E DESIGN SYSTEM
 * Estética: Dark Nordic Luxury / Obsidian & Sacred Gold
 * ==============================================================================
 */

:root {
  --bg-deep: #08090d;
  --bg-surface: #0e1118;
  --bg-card: rgba(18, 22, 32, 0.75);
  --bg-card-hover: rgba(24, 30, 44, 0.9);
  --border-subtle: rgba(212, 175, 55, 0.14);
  --border-glow: rgba(212, 175, 55, 0.38);
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f5d77f;
  --accent-gold-dark: #997a15;
  --accent-glow: rgba(212, 175, 55, 0.25);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==============================================================================
   BACKGROUND RUNAS & AURORA
   ============================================================================== */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(30, 58, 138, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(180, 83, 9, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-runes {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.8em;
  color: rgba(212, 175, 55, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==============================================================================
   HEADER
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 9, 13, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-rune {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(8, 9, 13, 0.8));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold-light);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  color: var(--accent-gold-light);
}

.nav-ext {
  color: var(--accent-gold);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-glow:hover {
  background: var(--accent-gold);
  color: #08090d;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero-section {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.24);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 22px;
}

.gold-gradient {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #e2b94f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 38px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #d4af37 0%, #b89123 100%);
  color: #08090d;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.32);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.48);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==============================================================================
   STATS SECTION
   ============================================================================== */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 17, 24, 0.55);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  padding: 16px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==============================================================================
   PROJECTS SECTION
   ============================================================================== */
.projects-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Filtros */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(18, 22, 32, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(212, 175, 55, 0.4);
}

.filter-btn.active {
  background: var(--accent-gold);
  color: #08090d;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

/* Grid de Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
}

.project-featured {
  border-color: rgba(212, 175, 55, 0.32);
  background: linear-gradient(180deg, rgba(28, 34, 50, 0.75) 0%, rgba(14, 17, 24, 0.85) 100%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-gold {
  background: rgba(212, 175, 55, 0.18);
  color: var(--accent-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.card-body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card-text {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.65;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition);
}

.card-link-btn:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==============================================================================
   ABOUT SECTION
   ============================================================================== */
.about-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 17, 24, 0.4);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.sacral-box {
  background: linear-gradient(135deg, rgba(28, 34, 50, 0.8) 0%, rgba(14, 17, 24, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sacral-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sacral-rune {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--accent-gold);
}

.sacral-box-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #ffffff;
}

.sacral-box p {
  font-style: italic;
  font-size: 15.5px;
  color: #e2e8f0;
  line-height: 1.7;
  margin-bottom: 22px;
}

.sacral-meta {
  font-size: 13px;
  color: var(--accent-gold);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 14px;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06070a;
  padding: 70px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-about {
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 380px;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.link-col ul {
  list-style: none;
}

.link-col li {
  margin-bottom: 10px;
}

.link-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.link-col a:hover {
  color: var(--accent-gold-light);
}

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

.footer-blessing {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* ==============================================================================
   RESPONSIVIDADE
   ============================================================================== */
@media (max-width: 900px) {
  .hero-title { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .hero-description { font-size: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
