/* HEXAD DESIGN SYSTEM v1.0
   Extracted from Command Center v5
   Use across all HQ ecosystem properties
   ========================================== */

:root {
  /* AI Colors */
  --claude: #a16207;
  --gpt: #047857;
  --gemini: #1d4ed8;
  --grok: #b91c1c;
  --deepseek: #6d28d9;
  --human: #a21caf;
  
  /* Core Palette */
  --bg-primary: #030406;
  --bg-secondary: #060810;
  --bg-tertiary: #0a0c12;
  
  /* Text */
  --text-primary: rgba(255, 255, 255, 0.85);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.25);
  --text-subtle: rgba(255, 255, 255, 0.12);
  
  /* Glass Effects */
  --glass-bg: rgba(5, 7, 10, 0.65);
  --glass-bg-solid: rgba(3, 5, 8, 0.8);
  --glass-border: rgba(255, 255, 255, 0.03);
  --glass-border-hover: rgba(255, 255, 255, 0.06);
  
  /* Accents */
  --accent-primary: linear-gradient(135deg, var(--claude), var(--human), var(--deepseek));
  --accent-gold: #d97706;
  --accent-success: #059669;
  --accent-danger: #dc2626;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(162, 28, 175, 0.15);
  
  /* Typography */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-slow: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 8% 16%, rgba(161, 98, 7, 0.025) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 84%, rgba(109, 40, 217, 0.025) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(162, 28, 175, 0.012) 0%, transparent 55%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.gradient-text {
  background: var(--accent-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selection */
::selection {
  background: rgba(162, 28, 175, 0.22);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* Links */
a {
  color: var(--claude);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--human);
}

/* Glass Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-solid {
  background: var(--glass-bg-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--claude), var(--human));
  color: white;
  box-shadow: 0 4px 16px rgba(162, 28, 175, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(162, 28, 175, 0.35);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #030406;
  font-weight: 600;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217, 119, 6, 0.35);
  color: #030406;
}

/* Cards */
.card {
  background: var(--glass-bg-solid);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.card-highlight {
  border-color: var(--human);
  box-shadow: 0 0 30px rgba(162, 28, 175, 0.1);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

/* Grid */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Spacing */
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Text utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.02); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes wave {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 0.15; }
  100% { transform: translateX(100%); opacity: 0; }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-breathe { animation: breathe 5s ease-in-out infinite; }
.animate-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* Wave line (top border accent) */
.wave-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.wave-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--human) 35%, var(--claude) 65%, transparent 100%);
  animation: wave 14s ease-in-out infinite;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
  color: #030406;
}

.badge-ftp {
  background: linear-gradient(135deg, var(--human), var(--deepseek));
  color: white;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--human);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--human); }

/* Footer */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-3xl);
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-ftp {
  font-size: 1rem;
  font-weight: 600;
  color: var(--human);
  margin-bottom: var(--space-md);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
}
