/* ============================================================
   base.css — design tokens, reset, typography
   evo marketing site
   ============================================================ */

:root {
  --bg-primary:     #060D08;
  --bg-surface:     #0A1A0E;
  --bg-elevated:    #0F2414;
  --bg-card:        #0C1E10;

  --accent-yellow:  #FFD600;
  --accent-yellow-dim: #6B5A00;
  --accent-emerald: #00D68F;
  --accent-orange:  #FF8A00;
  --accent-red:     #FF4B6E;

  /* Legacy aliases for components that use old names */
  --accent-cyan:    var(--accent-yellow);
  --accent-cyan-dim:var(--accent-yellow-dim);
  --accent-green:   var(--accent-emerald);
  --accent-magenta: var(--accent-orange);

  --text-primary:   #E8F0EC;
  --text-secondary: #A8C4B0;
  --text-muted:     #3D5E48;
  --text-inverse:   #060D08;

  --border:         rgba(255, 214, 0, 0.10);
  --border-bright:  rgba(255, 214, 0, 0.25);
  --glow-yellow:    0 0 24px rgba(255, 214, 0, 0.25);
  --glow-emerald:   0 0 16px rgba(0, 214, 143, 0.25);
  --glow-cyan:      var(--glow-yellow);
  --glow-green:     var(--glow-emerald);
  --glow-magenta:   0 0 16px rgba(255, 138, 0, 0.2);

  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:  'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --z-nav:      100;
  --z-modal:    200;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-emerald); }

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

ul, ol { list-style: none; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.875em; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
}

/* ── Utility ────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-cyan      { color: var(--accent-yellow); }
.text-green     { color: var(--accent-emerald); }
.text-magenta   { color: var(--accent-orange); }
.text-mono      { font-family: var(--font-mono); }
.text-center    { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--bg-primary);
  box-shadow: 0 2px 16px rgba(255,214,0,0.35);
}
.btn-primary:hover {
  background: #FFE033;
  box-shadow: 0 4px 24px rgba(255,214,0,0.55);
  transform: translateY(-1px);
  color: var(--bg-primary);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(255,214,0,0.06);
}

.btn-lg { padding: 15px 36px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── Badge / pill ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255,214,0,0.10);
  color: var(--accent-yellow);
  border: 1px solid rgba(255,214,0,0.20);
}

.badge-green {
  background: rgba(0,214,143,0.1);
  color: var(--accent-emerald);
  border-color: rgba(0,214,143,0.25);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-yellow-dim); border-radius: 3px; }

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(255,214,0,0.3);
  color: var(--text-primary);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
