/* ==========================================================================
   THE CEO VAULT - Main Design System & CSS Variables
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-darkest: #07080d;
  --bg-primary: #0b0d14;
  --bg-secondary: #121522;
  --bg-tertiary: #191d2e;
  --bg-card: rgba(18, 21, 34, 0.85);
  --bg-card-hover: rgba(26, 31, 50, 0.95);
  --bg-overlay: rgba(7, 8, 13, 0.85);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-active: rgba(245, 158, 11, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* Accents */
  --gold-primary: #f59e0b;
  --gold-hover: #d97706;
  --gold-light: #fbbf24;
  --gold-glow: 0 0 20px rgba(245, 158, 11, 0.35);
  
  --cyan-primary: #06b6d4;
  --cyan-glow: 0 0 20px rgba(6, 182, 212, 0.35);
  
  --purple-primary: #8b5cf6;
  --purple-glow: 0 0 20px rgba(139, 92, 246, 0.35);

  --green-primary: #10b981;
  --red-primary: #ef4444;

  /* Badges Tier Colors */
  --tier-bronze: #cd7f32;
  --tier-bronze-bg: rgba(205, 127, 50, 0.18);
  --tier-silver: #cbd5e1;
  --tier-silver-bg: rgba(203, 213, 225, 0.18);
  --tier-gold: #f59e0b;
  --tier-gold-bg: rgba(245, 158, 11, 0.18);
  --tier-hof: #a855f7;
  --tier-hof-bg: rgba(168, 85, 247, 0.22);
  --tier-legend: #ec4899;
  --tier-legend-bg: rgba(236, 72, 153, 0.22);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0d14;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img, svg, video, canvas {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #15192a 0%, var(--bg-darkest) 75%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-primary);
}

/* Text Gradient Accents */
.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header .badge-tag {
  margin-bottom: 0.75rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 680px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header p {
    font-size: 0.98rem;
  }

  .vault-card {
    min-width: 0;
  }

  .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns: 1fr 1fr 1fr"],
  form div[style*="grid-template-columns: 1fr 1fr"],
  .modal-content div[style*="grid-template-columns: 1fr 1fr"],
  .modal-content div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(2rem, 12vw, 2.75rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 1.9rem); }
  h3 { font-size: clamp(1.1rem, 6vw, 1.35rem); }

  .container {
    padding: 0 0.875rem;
  }

  .section {
    padding: 3rem 0;
  }

  .badge-tag,
  .brand-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
