/**
 * VixShield Design Tokens
 * ========================
 * CSS custom properties extracted from the live codebase.
 *
 * REQUIRED: Import this file on EVERY page via:
 *   <link rel="stylesheet" href="/css/vixshield-tokens.css">
 *
 * DO NOT hardcode hex colors in page CSS — use these tokens.
 * Last updated: 2026-04-22
 */

:root {

  /* ── Brand Green (Primary) ────────────────────────────────────── */
  --green:           #00C853;
  --green-bright:    #00E060;       /* hover states, gradient start */
  --green-dim:       rgba(0, 200, 83, 0.13);
  --green-glow:      rgba(0, 200, 83, 0.2);
  --green-glow-sm:   rgba(0, 200, 83, 0.06);
  --accent:          #00C853;       /* alias for --green */
  --accent-glow:     rgba(0, 200, 83, 0.15);

  /* ── Gold (Premium / Platinum Tier) ──────────────────────────── */
  --gold:            #D4AF37;
  --gold-light:      #F0CF5A;       /* gradient top */
  --gold-dim:        rgba(212, 175, 55, 0.12);
  --gold-border:     rgba(212, 175, 55, 0.35);
  --gold-shadow:     0 0 20px rgba(212, 175, 55, 0.15);

  /* ── Red (Alerts / Errors) ────────────────────────────────────── */
  --red:             #FF1744;
  --red-dim:         rgba(255, 23, 68, 0.13);

  /* ── Orange (Disclaimers / Warnings) ─────────────────────────── */
  --orange:          #FFAA33;
  --orange-dim:      rgba(255, 170, 51, 0.08);
  --orange-border:   rgba(255, 170, 51, 0.2);

  /* ── Background System ────────────────────────────────────────── */
  --bg-primary:      #0A1F3D;       /* main page background */
  --bg-card:         #0F2744;       /* card surfaces */
  --bg-elevated:     #162E50;       /* elevated elements, hover states */
  --bg-deep:         #081629;       /* deep shadows, gradient endpoints */

  /* nav-global variables (injected by nav-global.js — mirrored here) */
  --vx-bg:           #0A0E17;       /* navigation dark background */
  --vx-surface:      #0F1B2D;       /* nav surface panels */
  --vx-overlay:      rgba(5, 10, 20, 0.8);  /* modal/drawer backdrop */

  /* ── Text Hierarchy ───────────────────────────────────────────── */
  --text-primary:    #F0F4F8;       /* headings, main content */
  --text-secondary:  #94AAC0;       /* body text, descriptions */
  --text-dim:        #4E6680;       /* muted, disabled, fine print */

  /* nav-global text aliases */
  --vx-text:         #F0F4F8;       /* = --text-primary */
  --vx-muted:        #8899AA;       /* nav/footer links */
  --vx-dim:          #4E6680;       /* = --text-dim */

  /* ── Border Colors ────────────────────────────────────────────── */
  --border:          #1A3355;       /* standard borders everywhere */
  --border-bright:   #234472;       /* hover/focus emphasized borders */
  --vx-border:       #1A3355;       /* nav-global alias */

  /* ── Shadows ──────────────────────────────────────────────────── */
  --navy-shadow:     0 8px 32px rgba(5, 15, 35, 0.6);
  --card-shadow:     0 8px 32px rgba(5, 15, 35, 0.5);
  --card-shadow-hover: 0 8px 32px rgba(5, 15, 35, 0.5), 0 0 20px rgba(0, 200, 83, 0.06);
  --btn-shadow:      0 4px 20px rgba(0, 200, 83, 0.3);
  --btn-shadow-hover: 0 6px 28px rgba(0, 200, 83, 0.45);

  /* ── Border Radius Scale ──────────────────────────────────────── */
  --radius-xs:       4px;           /* micro elements */
  --radius-sm:       6px;           /* badges, small inputs */
  --radius-md:       8px;           /* buttons, small cards */
  --radius-lg:       12px;          /* standard cards */
  --radius-xl:       18px;          /* feature cards */
  --radius-2xl:      20px;          /* pricing cards */
  --radius-pill:     30px;          /* pill badges, tags */

  /* ── Spacing Scale ────────────────────────────────────────────── */
  --space-xs:        0.25rem;       /* 4px */
  --space-sm:        0.5rem;        /* 8px */
  --space-md:        1rem;          /* 16px */
  --space-lg:        1.5rem;        /* 24px */
  --space-xl:        2rem;          /* 32px */
  --space-2xl:       3rem;          /* 48px */
  --space-3xl:       4rem;          /* 64px */
  --space-section:   6rem;          /* section vertical padding */

  /* ── Container ────────────────────────────────────────────────── */
  --container-max:   1200px;
  --container-pad:   2rem;

  /* ── Font Families ────────────────────────────────────────────── */
  --font-body:       'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:    'Inter', 'Space Grotesk', sans-serif;
  --font-brand:      'Space Grotesk', -apple-system, sans-serif;
  --font-mono:       'Space Grotesk', monospace;

  /* ── Transitions ──────────────────────────────────────────────── */
  --transition-fast: 0.15s ease;
  --transition-std:  0.2s ease;
  --transition-slow: 0.3s ease;

  /* ── Z-Index Scale ─────────────────────────────────────────────── */
  --z-base:          0;
  --z-content:       1;
  --z-float:         10;
  --z-dropdown:      100;
  --z-nav:           1000;
  --z-nav-dropdown:  1002;
  --z-drawer-overlay: 1100;
  --z-drawer:        1101;
  --z-bottom-nav:    9999;
  --z-modal:         10000;

}

/* ────────────────────────────────────────────────────────────────────
   BASE RESETS (applied when this file is imported)
──────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ────────────────────────────────────────────────────────────────────
   BODY DEFAULTS
──────────────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile: padding for PWA bottom nav */
@media (max-width: 900px) {
  body {
    padding-bottom: 70px;
  }
}

/* ────────────────────────────────────────────────────────────────────
   SUBTLE GRID BACKGROUND (apply to body or a fixed ::before)
──────────────────────────────────────────────────────────────────── */

.vx-grid-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 200, 83, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 83, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: var(--z-base);
}

/* ────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
──────────────────────────────────────────────────────────────────── */

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
}

/* Section spacing */
.section {
  padding: var(--space-section) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Section label / eyebrow text */
.section-label {
  display: inline-block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  margin-bottom: 1rem;
}

/* Standard card */
.vx-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  transition:
    border-color var(--transition-slow),
    box-shadow var(--transition-slow),
    transform var(--transition-std);
}

.vx-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.vx-card-featured {
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow: 0 8px 40px rgba(0, 200, 83, 0.1);
}

/* Primary CTA button */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #051A08;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--btn-shadow);
  transition: transform var(--transition-std), box-shadow var(--transition-std);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

/* Outline login button */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-std), color var(--transition-std);
}

.btn-outline:hover {
  background: var(--green);
  color: #051A08;
}

/* Badge base */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.badge-green {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.badge-gold {
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
}

.badge-red {
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

/* Disclaimer block */
.vx-disclaimer-block {
  background: var(--orange-dim);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: var(--orange);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Radial glows */
.vx-glow-green {
  background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.06) 0%, transparent 65%);
  position: absolute;
  pointer-events: none;
}

.vx-glow-gold {
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  position: absolute;
  pointer-events: none;
}

/* Separator line */
.vx-sep {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
