/* ============================================================
   AI Exploration Lab — Design Tokens & Type System  v1.0
   UPB Medellín · "La IA no era para ti. Hasta hoy."
   Source: AI_ExplorationLab_BrandBook_v1.0.pdf (§04, §07)
   ------------------------------------------------------------
   Fonts are Google Fonts (Plus Jakarta Sans, JetBrains Mono,
   Inter). Load this in HTML alongside:
   <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   ============================================================ */

:root {
  /* ---- Core palette ---------------------------------------- */
  --color-primary:        #00FFF0; /* Acid Cyan   — action, CTAs, interactivity */
  --color-secondary:      #8A2BE2; /* Electric Violet — depth, accents, subheads */
  --color-background:     #0A0F1E; /* Deep Space  — base dark bg (NEVER pure black as fill) */
  --color-surface:        #111827; /* Surfaces — code blocks, table headers */
  --color-surface-2:      #0D1530; /* Cards */

  /* ---- Text ----------------------------------------------- */
  --color-text-primary:   #FFFFFF;
  --color-text-secondary: #D0D0D0; /* softened white — body copy on dark */
  --color-text-muted:     #888888;
  --color-text-accent:    #00FFF0;

  /* ---- Semantic states ------------------------------------ */
  --color-success: #00FF88;
  --color-warning: #FFD700;
  --color-error:   #FF4444;
  --color-info:    #00B4D8;

  /* ---- Tints / borders (derived) -------------------------- */
  --border-subtle:  rgba(255,255,255,0.08);
  --border-cyan:    rgba(0,255,240,0.45);
  --border-violet:  rgba(138,43,226,0.45);
  --cyan-glow-10:   rgba(0,255,240,0.10);
  --violet-glow-12: rgba(138,43,226,0.12);

  /* ---- Type families -------------------------------------- */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif; /* titles / impact, 800 */
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;  /* labels, code, IDs, versions */
  --font-body:    "Inter", system-ui, sans-serif;             /* paragraphs */

  /* ---- Type scale ----------------------------------------- */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-hero: 5rem;      /* 80px */

  /* ---- Spacing (4px base) --------------------------------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ---- Radii ---------------------------------------------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* ---- Shadows / glow ------------------------------------- */
  --shadow-sm:   0 1px 3px rgba(0,255,240,0.08);
  --shadow-md:   0 4px 16px rgba(0,255,240,0.12);
  --shadow-glow: 0 0 24px rgba(0,255,240,0.35);
  --shadow-glow-violet: 0 0 24px rgba(138,43,226,0.35);
}

/* ============================================================
   SEMANTIC TYPE STYLES
   Rule from brand book: never combine all three families on
   one line. Each family owns a clear hierarchical role.
   ============================================================ */

.display, h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--color-text-primary);
}

/* Violet is the canonical subheading / "depth" accent */
.subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-secondary);
}

p, .body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Mono — labels, kickers, technical identifiers, versions */
.label, .kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

code, .code, pre {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-accent);
}

pre, .code-block {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  line-height: 1.55;
  overflow-x: auto;
}

/* Inline accents */
.accent-cyan   { color: var(--color-primary); }
.accent-violet { color: var(--color-secondary); }
