/* ============================================================
   IERAHKWA SOVEREIGN DESIGN SYSTEM v6.0.0
   Ierahkwa Ne Kanienke Government and its successors
   Enhanced vibrant theme — Zero external dependencies
   NOTE: This file OVERRIDES ierahkwa.css — load AFTER it
   ============================================================ */

/* --- Enhanced Variables --- */
:root {
  --accent-purple: #a855f7;
  --accent-blue: #6366f1;
  --accent-indigo: #818cf8;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;
  --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --gradient-hero: linear-gradient(135deg, #080d18 0%, #1e1b4b 25%, #172554 50%, #1e1b4b 75%, #080d18 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 27, 75, 0.35), rgba(23, 37, 84, 0.25));
  --gradient-nav: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.25), transparent);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 12px 40px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
  --border-subtle: rgba(99, 102, 241, 0.15);
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Override glows with purple/indigo tones */
  --glow-sm: 0 0 12px rgba(99, 102, 241, 0.3), 0 0 4px rgba(168, 85, 247, 0.4);
  --glow-md: 0 0 24px rgba(99, 102, 241, 0.4), 0 0 8px rgba(168, 85, 247, 0.5);
  --glow-lg: 0 0 48px rgba(99, 102, 241, 0.5), 0 0 16px rgba(168, 85, 247, 0.6);
}

/* --- Enhanced Keyframes --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(99, 102, 241, 0.2); }
  33% { border-color: rgba(168, 85, 247, 0.35); }
  66% { border-color: rgba(236, 72, 153, 0.25); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.2); }
  50% { box-shadow: 0 0 28px rgba(168,85,247,0.35); }
}

/* --- Body: gradient background --- */
body {
  font-family: var(--font-body);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 15px;
}

/* --- Typography: modern fonts + gradient headings --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  text-shadow: none;
}

h1 {
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

h2 {
  background: linear-gradient(135deg, #e2e8f0 0%, #a5b4fc 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* --- Links --- */
a {
  color: #818cf8;
  text-shadow: none;
}
a:hover {
  color: #c084fc;
  text-shadow: none;
}

/* --- Navigation: gradient bottom line --- */
.nav-sovereign {
  background: rgba(8, 13, 24, 0.85);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.nav-sovereign::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-nav);
  pointer-events: none;
}

.nav-sovereign .nav-brand {
  font-family: var(--font-body);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.nav-sovereign .nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  text-shadow: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-sovereign .nav-links a:hover,
.nav-sovereign .nav-links a.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  text-shadow: none;
}

.nav-sovereign .menu-toggle {
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent-purple);
}

/* --- Hero Section: vivid gradient --- */
.hero-section {
  background: var(--gradient-hero);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  padding: 6rem 2rem 5rem;
}

.hero-section::before {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  animation: gradientShift 15s ease-in-out infinite;
  background-size: 200% 200%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.hero-section h1 {
  text-shadow: none;
}

.hero-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-shadow: none;
}

/* --- Badges: softer colors --- */
.badge {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.25);
  text-shadow: none;
  font-family: var(--font-body);
}

.badge--gold { text-shadow: none; }
.badge--danger { text-shadow: none; }
.badge--cyan { text-shadow: none; }

/* --- Stat Cards: glassmorphism + gradient numbers --- */
.stat-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-number {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.6rem;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.stat-card .stat-label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: none;
}

/* --- Card Grid --- */
.card-grid {
  gap: 1.5rem;
}

/* --- Feature Cards: glass + animated top border --- */
.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
  z-index: 1;
}

.feature-card::after {
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  box-shadow: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card .card-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.feature-card h3 {
  color: #e2e8f0;
  font-family: var(--font-body);
  font-weight: 600;
  text-shadow: none;
}

.feature-card p {
  font-family: var(--font-body);
  text-shadow: none;
}

/* --- Buttons: gradient + scale hover --- */
.btn-sovereign {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  text-shadow: none;
  text-transform: none;
}

.btn-sovereign:hover {
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #7c7cf7, #a78bfa);
  filter: none;
}

.btn-sovereign--outline {
  background: transparent;
  color: #a5b4fc;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  box-shadow: none;
}

.btn-sovereign--outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.6);
}

/* --- Footer: gradient fade --- */
.footer-sovereign {
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(180deg, var(--bg-primary, #0a0e17), #060a14);
  font-family: var(--font-body);
  text-shadow: none;
}

.footer-sovereign .sovereignty-statement {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 1.5px;
}

/* --- Section --- */
.section-title {
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* --- Section Panels --- */
.sec-panel, .section-panel {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.sec-panel:hover, .section-panel:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-card);
}

.sec-panel h2, .sec-panel h3, .section-panel h2, .section-panel h3 {
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* --- Scrollbar: gradient --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6366f1, #a855f7); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #818cf8, #c084fc); }

/* --- Neon utilities: keep green but enhance --- */
.neon-green { text-shadow: var(--glow-sm); }
.neon-gold { text-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
.neon-cyan { text-shadow: 0 0 12px rgba(0, 229, 255, 0.4); }
.neon-red { text-shadow: 0 0 12px rgba(248, 113, 113, 0.4); }

/* --- Mobile nav override --- */
@media (max-width: 768px) {
  .nav-sovereign .nav-links {
    background: rgba(8, 13, 24, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  }
}

/* --- Print: clean gradient text --- */
@media print {
  h1, h2, h3, .sovereignty-statement, .stat-number, .section-title, .nav-brand {
    -webkit-text-fill-color: #000;
    background: none;
    color: #000;
  }
}
