/* ═══════════════════════════════════════════════════
   ELEVATE9 COMMAND HUB OS — Unified Design System
   ═══════════════════════════════════════════════════ */

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

:root {
  /* Core Palette */
  --bg-deep: #0a0a0a;
  --bg-primary: #111111;
  --bg-surface: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --bg-elevated: #222222;
  
  /* Gold System */
  --gold-primary: #c9a84c;
  --gold-light: #e4cc7a;
  --gold-dim: #8b7635;
  --gold-muted: #5a4d2a;
  --gold-subtle: #2a2418;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-glow-strong: rgba(201, 168, 76, 0.3);
  
  /* Text */
  --text-primary: #f0ebe0;
  --text-secondary: #9a9488;
  --text-tertiary: #5e5a52;
  --text-on-gold: #0a0a0a;
  
  /* Status */
  --status-active: #4ade80;
  --status-warning: #fbbf24;
  --status-urgent: #ef4444;
  
  /* Borders */
  --border-subtle: rgba(201, 168, 76, 0.08);
  --border-default: rgba(201, 168, 76, 0.15);
  --border-hover: rgba(201, 168, 76, 0.3);
  --border-active: rgba(201, 168, 76, 0.5);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3), 0 0 1px rgba(201,168,76,0.1);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.5), 0 0 2px rgba(201,168,76,0.2);
  --shadow-featured: 0 4px 40px rgba(0,0,0,0.6), 0 0 80px rgba(201,168,76,0.05);
  --shadow-glow: 0 0 30px rgba(201,168,76,0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ── Background Texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(201,168,76,0.012) 40px,
      rgba(201,168,76,0.012) 41px
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(201,168,76,0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(201,168,76,0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-2xl);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-glow),
    transparent
  );
}

.nav-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-primary);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 20px var(--gold-glow);
}

.logo:hover {
  color: var(--gold-light);
  text-shadow: 0 0 30px var(--gold-glow-strong);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Containers ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    var(--gold-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold-primary) 50%,
    var(--gold-dim) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero .tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-tertiary);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--text-on-gold);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

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

/* ── Section Titles ── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: var(--gold-subtle);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--status-active);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: var(--status-warning);
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-urgent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 var(--space-lg);
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* ── Utilities ── */
.text-gold { color: var(--gold-primary); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
