:root {
  --bg-obsidian: #030712;
  --cyan-neon: #00F0FF;
  --bio-emerald: #10B981;
  --deep-indigo: #6366F1;
}

html, body {
  background-color: var(--bg-obsidian);
  color: #F8FAFC;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom thin scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00F0FF 0%, #6366F1 100%);
  border-radius: 9999px;
}

/* Fixed 3D WebGL Background Canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Ambient radial gradients */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.07) 0%, transparent 45%);
}

/* Glassmorphism Cards */
.glass-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.68) 0%, rgba(3, 7, 18, 0.78) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
  border-color: rgba(0, 240, 255, 0.42);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
  transform: translateY(-3px);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(100deg, #FFFFFF 10%, #00F0FF 52%, #10B981 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fluid clamp headings */
.hero-title {
  font-size: clamp(2rem, 4.6vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Range Sliders (Touch-friendly >= 44px hit area) */
input[type="range"].cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.2);
  outline: none;
  cursor: pointer;
}
input[type="range"].cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00F0FF;
  border: 3px solid #030712;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"].cyber-slider::-webkit-slider-thumb:hover,
input[type="range"].cyber-slider::-webkit-slider-thumb:active {
  transform: scale(1.18);
}
input[type="range"].cyber-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00F0FF;
  border: 3px solid #030712;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.8);
  cursor: pointer;
}

/* Typing dots animation */
@keyframes blinkDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.15); }
}
.typing-dot {
  animation: blinkDot 1.3s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Accordion smooth height */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}
.faq-inner {
  overflow: hidden;
}
