/**
 * Mavvrixx Design System v1.0
 * Canonical shared CSS — single source of truth for all Mavvrixx web surfaces
 * Canonized: 2026-05-23 | Approved by: Ron Tal, Founder & CEO
 *
 * Sections:
 *  1  Design Tokens (CSS custom properties)
 *  2  Reset & Base
 *  3  Typography Scale
 *  4  Layout Utilities
 *  5  Navigation Component
 *  6  Hero Sections
 *  7  Card Components
 *  8  Button Components
 *  9  Badge / Pill Components
 * 10  Form Components
 * 11  Section Backgrounds
 * 12  Dividers & Separators
 * 13  Callout / Alert Components
 * 14  Footer Component
 * 15  Transparency Block (Movement Design)
 * 16  IndieScore Ring (reusable)
 * 17  Print Utilities
 */

/* ============================================================
   SECTION 1 — DESIGN TOKENS
   ============================================================ */

:root {
  /* Brand colours */
  --blue: #1a3a6b;
  --blue-mid: #1e4480;
  --blue-light: #e8eef7;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --gold-bg: #fdf8ec;
  --navy: #0d1b2a;
  --navy-light: #152437;

  /* Surface colours (light mode) */
  --white: #ffffff;
  --surface: #f8f9fc;
  --surface-raised: #ffffff;

  /* Text */
  --text-primary: #0f1f3d;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Borders */
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}


/* ============================================================
   SECTION 2 — RESET & BASE
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}


/* ============================================================
   SECTION 3 — TYPOGRAPHY SCALE
   ============================================================ */

.text-xs   { font-size: 12px; line-height: 1.5; }
.text-sm   { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.6; }
.text-lg   { font-size: 18px; line-height: 1.5; }
.text-xl   { font-size: 20px; line-height: 1.4; }
.text-2xl  { font-size: 24px; line-height: 1.3; }
.text-3xl  { font-size: 30px; line-height: 1.2; }
.text-4xl  { font-size: 36px; line-height: 1.15; }
.text-5xl  { font-size: 48px; line-height: 1.1; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.text-blue  { color: var(--blue); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff; }

.italic    { font-style: italic; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }


/* ============================================================
   SECTION 4 — LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section    { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .container, .container-sm, .container-lg {
    padding: 0 var(--space-4);
  }
}


/* ============================================================
   SECTION 5 — NAVIGATION COMPONENT
   ============================================================ */

/* Standard Mavvrixx nav — dark sticky */
.mav-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 64px;
  display: flex;
  align-items: center;
}

.mav-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.mav-nav-logo img {
  height: 28px;
}

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

.mav-nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.mav-nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.mav-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.mav-nav-cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 768px) {
  .mav-nav-links {
    display: none;
  }
}

/* Light nav variant (for light-bg pages) */
.mav-nav.light {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
}

.mav-nav.light .mav-nav-links a {
  color: var(--text-secondary);
}

.mav-nav.light .mav-nav-links a:hover {
  color: var(--blue);
}


/* ============================================================
   SECTION 6 — HERO SECTIONS
   ============================================================ */

/* Dark hero (movement/dramatic) */
.hero-dark {
  background: var(--navy);
  color: white;
  padding: var(--space-16) 0;
  text-align: center;
}

.hero-dark h1 {
  color: white;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-dark .hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.hero-dark .hero-eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* Light hero */
.hero-light {
  background: var(--surface);
  padding: var(--space-16) 0;
  text-align: center;
}

.hero-light h1 {
  color: var(--blue);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-light .hero-sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.hero-light .hero-eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}


/* ============================================================
   SECTION 7 — CARD COMPONENTS
   ============================================================ */

/* Base card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

/* Gold-accented card */
.card-gold {
  border-top: 3px solid var(--gold);
}

/* Blue-accented card */
.card-blue {
  border-top: 3px solid var(--blue);
}

/* Left-border card (stat/highlight) */
.card-left-gold {
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.card-left-blue {
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Stat card */
.stat-card {
  text-align: center;
}

.stat-card .stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Feature card */
.feature-card .feature-icon {
  font-size: 32px;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}


/* ============================================================
   SECTION 8 — BUTTON COMPONENTS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-mid); color: white; }

.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); color: white; }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: white; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: white; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); background: var(--border); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================
   SECTION 9 — BADGE / PILL COMPONENTS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-gold  { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold); }
.badge-blue  { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue); }
.badge-green { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }

.badge-live {
  background: #f0fdf4;
  color: #15803d;
}

.badge-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* NVIDIA Inception badge */
.nvidia-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #76b900;
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}


/* ============================================================
   SECTION 10 — FORM COMPONENTS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-hint  { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--danger); }


/* ============================================================
   SECTION 11 — SECTION BACKGROUNDS
   ============================================================ */

.bg-white      { background: var(--white); }
.bg-surface    { background: var(--surface); }
.bg-navy       { background: var(--navy); color: white; }
.bg-blue       { background: var(--blue); color: white; }
.bg-blue-light { background: var(--blue-light); }
.bg-gold-light { background: var(--gold-bg); }


/* ============================================================
   SECTION 12 — DIVIDERS & SEPARATORS
   ============================================================ */

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}

.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}


/* ============================================================
   SECTION 13 — CALLOUT / ALERT COMPONENTS
   ============================================================ */

.callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border-left: 4px solid;
}

.callout-gold    { background: var(--gold-bg); border-color: var(--gold); color: var(--text-secondary); }
.callout-blue    { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.callout-success { background: #f0fdf4; border-color: var(--success); color: #15803d; }
.callout-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }


/* ============================================================
   SECTION 14 — FOOTER COMPONENT
   ============================================================ */

.mav-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-12) 0 var(--space-8);
}

.mav-footer a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.mav-footer a:hover {
  color: white;
  text-decoration: none;
}

.mav-footer-logo img {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.mav-footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 13px;
}


/* ============================================================
   SECTION 15 — TRANSPARENCY BLOCK (MOVEMENT DESIGN)
   ============================================================ */

/* Used on survey Q5 and anywhere we explain data usage inline */
.transparency-block {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}

.transparency-block .tblock-label {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}

.transparency-block .tblock-text {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}


/* ============================================================
   SECTION 16 — INDIESCORE RING (REUSABLE)
   ============================================================ */

.score-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-ring-wrap svg {
  transform: rotate(-90deg);
}

.score-ring-track {
  fill: none;
  stroke: var(--border);
}

.score-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring-number {
  position: absolute;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--blue);
}

.score-ring-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}


/* ============================================================
   SECTION 17 — PRINT UTILITIES
   ============================================================ */

@media print {
  .no-print {
    display: none !important;
  }
  .mav-nav {
    display: none !important;
  }
  body {
    background: white;
  }
}
