/* NetGrid Empleados IA — Design Tokens */
:root {
  /* Dark palette */
  --ink-900: #07080B;
  --ink-800: #0A0B0F;
  --ink-700: #12141A;
  --ink-600: #1A1D26;
  --ink-500: #262A36;
  --ink-400: #3A3F4E;
  --ink-300: #5C6271;
  --ink-200: #8B909C;
  --ink-100: #B8BCC6;

  /* Light palette */
  --paper-50: #FDFDFB;
  --paper-100: #FAFAF7;
  --paper-200: #F2F2ED;
  --paper-300: #E6E6DF;
  --paper-400: #D1D1C8;

  /* Accents */
  --lime: oklch(0.89 0.19 135);
  --lime-soft: oklch(0.89 0.19 135 / 0.14);
  --lime-ink: oklch(0.45 0.18 140);
  --violet: oklch(0.68 0.22 295);
  --violet-soft: oklch(0.68 0.22 295 / 0.18);
  --amber: oklch(0.82 0.17 75);
  --cyan: oklch(0.82 0.14 210);
  --rose: oklch(0.72 0.20 25);

  /* Typography */
  --font-display: 'Geist', 'Inter', -apple-system, system-ui, sans-serif;
  --font-body: 'Geist', 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--ink-800); color: var(--paper-100); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
img { display: block; max-width: 100%; }

/* Utility base classes */
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* Section tones */
.tone-dark { background: var(--ink-800); color: var(--paper-100); }
.tone-ink { background: var(--ink-900); color: var(--paper-100); }
.tone-light { background: var(--paper-100); color: var(--ink-900); }
.tone-paper { background: var(--paper-50); color: var(--ink-900); }

/* Containers */
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .2s var(--ease-out-quart), background .2s, color .2s, border-color .2s;
  position: relative;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--lime);
  color: var(--ink-900);
}
.btn-primary:hover { background: oklch(0.93 0.19 135); }
.btn-ghost-dark {
  background: transparent;
  color: var(--paper-100);
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn-ghost-light {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-ghost-light:hover { border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.02); }

.btn-dark {
  background: var(--ink-900);
  color: var(--paper-100);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-400); border-radius: 4px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Noise texture helper */
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Grid pattern */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grid-bg-light {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.status-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 0 var(--lime);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 oklch(0.89 0.19 135 / 0.7); }
  100% { box-shadow: 0 0 0 8px oklch(0.89 0.19 135 / 0); }
}
