/* ============================================================
   BASE.CSS — Design Tokens, Reset, Typography
   ============================================================ */

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  /* Colors */
  --color-bg:           #050508;
  --color-bg-secondary: #0a0a12;
  --color-bg-card:      #0d0d1a;
  --color-bg-card-hover:#12122a;
  --color-border:       rgba(0, 245, 255, 0.12);
  --color-border-glow:  rgba(0, 245, 255, 0.35);

  --color-cyan:         #00f5ff;
  --color-cyan-dim:     rgba(0, 245, 255, 0.6);
  --color-cyan-ghost:   rgba(0, 245, 255, 0.08);
  --color-green:        #00ff88;
  --color-green-dim:    rgba(0, 255, 136, 0.6);
  --color-green-ghost:  rgba(0, 255, 136, 0.08);
  --color-purple:       #7b4fff;
  --color-purple-dim:   rgba(123, 79, 255, 0.6);
  --color-red:          #ff4444;
  --color-orange:       #ff8c00;

  --color-text:         #e0e6ff;
  --color-text-muted:   #8892aa;
  --color-text-dim:     #4a5266;

  /* Typography */
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  --font-normal: 400;
  --font-medium: 500;
  --font-bold:   700;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows / Glows */
  --glow-cyan:   0 0 20px rgba(0, 245, 255, 0.25), 0 0 40px rgba(0, 245, 255, 0.1);
  --glow-green:  0 0 20px rgba(0, 255, 136, 0.25), 0 0 40px rgba(0, 255, 136, 0.1);
  --glow-purple: 0 0 20px rgba(123, 79, 255, 0.25), 0 0 40px rgba(123, 79, 255, 0.1);
  --glow-sm:     0 0 10px rgba(0, 245, 255, 0.2);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    64px;
  --section-py:    var(--space-24);
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: #fff;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

/* Highlight spans */
.text-cyan   { color: var(--color-cyan); }
.text-green  { color: var(--color-green); }
.text-purple { color: var(--color-purple); }
.text-muted  { color: var(--color-text-muted); }
.text-dim    { color: var(--color-text-dim); }

/* Monospace label */
.label {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan-dim);
}

/* Section headings */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-full);
  background: var(--color-cyan-ghost);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: var(--leading-loose);
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
