/* ═══════════════════════════════════════
   EONAPP.ch — Base CSS (variables + reset)
   ═══════════════════════════════════════ */
:root {
  /* Brand colors */
  --clr-bg: #0b1020;
  --clr-bg2: #111827;
  --clr-surface: #1a2236;
  --clr-surface2: #232e45;
  --clr-border: #2a3550;
  --clr-text: #e2e8f0;
  --clr-text-muted: #a0aec0; /* was #94a3b8 — bumped for WCAG AA on dark surfaces */
  --clr-accent: #6366f1;
  --clr-accent2: #a855f7;
  --clr-gold: #f59e0b;
  --clr-green: #10b981;
  --clr-red: #ef4444;

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-w: 1200px;
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --radius-lg: 1.25rem;

  /* Transitions */
  --t: 0.2s ease;
}

/* Skip link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--clr-accent);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: bold;
}
.skip-to-content:focus {
  top: 0;
}

/* Light mode */
[data-theme="light"] {
  --clr-bg: #f8fafc;
  --clr-bg2: #f1f5f9;
  --clr-surface: #ffffff;
  --clr-surface2: #f1f5f9;
  --clr-border: #e2e8f0;
  --clr-text: #0f172a;
  --clr-text-muted: #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--clr-accent2); }
button { cursor: pointer; font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg2); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus */
:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }
