/*
 * LeadershipDNA™ Premium Style Guide
 * Vanilla CSS implementation with dynamic glassmorphism and keyframe animations
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette Tokens */
  --bg-dark: #030712;
  --bg-slate: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.5);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);
  
  --accent: #f59e0b;
  --accent-hover: #d97706;
  
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --text-light: #d1d5db;
  
  --border-card: rgba(255, 255, 255, 0.07);
  --border-focus: #3b82f6;
  
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.glass-interactive {
  composes: glass;
  transition: var(--transition);
}
.glass-interactive:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

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

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

/* Styling Components */
h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-gray);
  line-height: 1.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  color: var(--text-white);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-relative {
  position: relative;
}

.input-relative i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.input-field {
  width: 100%;
  background-color: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-card);
  color: var(--text-white);
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}
.input-relative .input-field {
  padding-left: 2.75rem;
}

/* Header & Footer */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-card);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray);
}
.nav-links a:hover {
  color: var(--primary);
}

footer.branded-footer {
  background-color: #02040a;
  border-top: 1px solid var(--border-card);
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.75rem;
}

/* Badge tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Keyframe animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Accordion for FAQ */
.accordion-item {
  margin-bottom: 1rem;
}
.accordion-header {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: none;
  color: var(--text-white);
  cursor: pointer;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
  opacity: 0;
  padding: 0 1.25rem;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.accordion-icon {
  transition: transform 0.3s;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Tab Systems */
.tabs-navigation {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: none;
  border: 1px solid var(--border-card);
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.02);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Alerts */
.alert-box {
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  display: flex;
  gap: 0.5rem;
}
.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}
