/* ---- Base dark theme ---- */
:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  background-color: #0f172a;
  color: #e2e8f0;
}

/* ---- Selection ---- */
::selection {
  background-color: #6366f1;
  color: #fff;
}

/* ---- Gradient text utility ---- */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glass card effect ---- */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1rem;
}

/* ---- Custom range slider ---- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #818cf8;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ---- Animated border for hero CTA ---- */
.cta-glow {
  position: relative;
  overflow: hidden;
}

.cta-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* ---- Mermaid diagram overrides ---- */
.mermaid-container svg {
  max-width: 100%;
  height: auto;
}

/* ---- Benchmark table ---- */
.benchmark-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.benchmark-table td:first-child {
  font-weight: 500;
}

.benchmark-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}
