:root {
  /* Backgrounds */
  --bg-primary: #030303;
  --bg-secondary: #070707;
  --bg-tertiary: #0B0B0B;
  --bg-elevated: #111111;

  /* Glass */
  --glass-bg: rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);

  /* Text */
  --text-primary: #FAFAFA;
  --text-secondary: #D4D4D8;
  --text-muted: #71717A;

  /* Brand */
  --accent-purple: #8B5CF6;
  --accent-blue: #3B82F6;
  --accent-cyan: #22D3EE;

  /* Glow */
  --glow-purple: rgba(139,92,246,.45);
  --glow-blue: rgba(59,130,246,.35);
}

body {
  background: radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 35%),
              radial-gradient(circle at bottom left, rgba(59,130,246,.10), transparent 35%),
              #030303;
  color: var(--text-primary);
  background-attachment: fixed;
}

/* ══════════════════════════════════════════════════
   SKIP TO CONTENT (accessibility)
   ══════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 100000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ══════════════════════════════════════════════════
   GLASS CARD (shared)
   ══════════════════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: background 0.3s ease;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
}

.glass-border {
  border: 1px solid var(--glass-border);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--glow-purple);
}

.hero-glow {
  background: radial-gradient(circle, var(--glow-purple), transparent 70%);
}

.section-shader {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
}

.section-shader canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════════════
   MOBILE NAVIGATION
   ══════════════════════════════════════════════════ */

/* Hamburger button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  margin-bottom: 5px;
}

.mobile-menu-btn span:nth-child(2) {
  margin-bottom: 5px;
}

/* Active hamburger → X */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay a {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 16px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a:focus {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-overlay a.active {
  color: white;
}

.mobile-nav-overlay .mobile-cta {
  margin-top: 24px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE TABLE WRAPPER
   ══════════════════════════════════════════════════ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 32px;
}

@media (max-width: 639px) {
  .table-responsive table {
    min-width: 500px;
  }
}

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR & SPOTLIGHT (universal)
   ══════════════════════════════════════════════════ */
@media (pointer: fine) {
  body {
    cursor: none !important;
  }
  a, button, [role="button"], input, select, textarea, .cursor-pointer {
    cursor: none !important;
  }
  
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
  }
  
  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  }
  
  .cursor-ring.hover {
    width: 60px;
    height: 60px;
    opacity: 0.5;
  }
  
  .spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
  }
}
