:root {
  --bt-bg: #020617;
  --bt-surface: #020617;
  --bt-surface-elevated: #020617;
  --bt-primary: #22d3ee;
  --bt-secondary: #a855f7;
  --bt-accent: #f97316;
  --bt-text: #e5e7eb;
  --bt-muted: #9ca3af;
}

body {
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
  color: var(--bt-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
}

/* Holographic grid background */
.bt-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.2) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.15) 1px, transparent 0);
  background-size: 80px 80px, 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

/* Animated neural haze */
.bt-neural-haze {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(34, 211, 238, 0.35), transparent 55%),
              radial-gradient(circle at 70% 100%, rgba(168, 85, 247, 0.35), transparent 55%);
  filter: blur(20px);
  opacity: 0.7;
  animation: bt-orbit 22s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes bt-orbit {
  0% { transform: translate3d(-40px, 40px, 0) rotate(0deg); }
  50% { transform: translate3d(40px, -40px, 0) rotate(180deg); }
  100% { transform: translate3d(-40px, 40px, 0) rotate(360deg); }
}

/* Floating particles */
.bt-particle {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle, rgba(248, 250, 252, 0.9), rgba(30, 64, 175, 0.1));
  backdrop-filter: blur(6px);
  opacity: 0.8;
  animation: bt-float 18s ease-in-out infinite;
}

@keyframes bt-float {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.7; }
  25% { transform: translate3d(20px, -30px, 0); opacity: 1; }
  50% { transform: translate3d(-10px, -10px, 0); opacity: 0.85; }
  75% { transform: translate3d(-25px, 20px, 0); opacity: 0.9; }
}

/* Rotating AI core ring */
.bt-ai-core-ring {
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
  animation: bt-core-spin 26s linear infinite;
  pointer-events: none;
}

@keyframes bt-core-spin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.9; }
  50% { transform: rotate(180deg) scale(1.03); opacity: 0.6; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.9; }
}

/* Brain orb */
.bt-brain-orb {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.6),
    0 0 80px rgba(168, 85, 247, 0.45);
  background: radial-gradient(circle at 20% 0%, #22d3ee, #0f172a 60%, #000 100%);
  isolation: isolate;
}

.bt-brain-orb::after {
  /* Glare */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(248, 250, 252, 0.55), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

/* Holographic graph overlay */
.bt-graph-lines {
  position: absolute;
  inset: 8%;
  border-radius: 1.5rem;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.bt-graph-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: bt-scan 18s linear infinite;
}

.bt-graph-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0, transparent 40%, rgba(56, 189, 248, 0.3) 48%, transparent 56%, transparent 100%);
  mix-blend-mode: screen;
  animation: bt-sweep 9s linear infinite;
}

@keyframes bt-scan {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-24px, -24px, 0); }
}

@keyframes bt-sweep {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(40%); }
  100% { transform: translateX(120%); }
}

/* Kubernetes chips */
.bt-kube-chip {
  border-radius: 999px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.8), rgba(15, 23, 42, 0.95));
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.6),
    0 0 40px rgba(15, 23, 42, 0.9);
  animation: bt-chip-float 14s ease-in-out infinite;
}

@keyframes bt-chip-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  40% { transform: translate3d(10px, -16px, 0) scale(1.03); opacity: 1; }
  70% { transform: translate3d(-12px, 10px, 0) scale(0.98); opacity: 0.85; }
}

/* Section divider line */
.bt-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(148, 163, 184, 0.7),
    transparent);
  opacity: 0.7;
}

/* Simple hover glow */
.bt-hover-glow:hover {
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.7),
    0 0 30px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.bt-badge {
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.4), rgba(22, 101, 52, 0.8));
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Larger touch targets for mobile */
  button, a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Reduce animation complexity on mobile for better performance */
  .bt-neural-haze {
    animation: none;
    opacity: 0.5;
  }

  .bt-particle {
    animation: none;
  }

  /* Optimize video for mobile */
  video {
    will-change: transform;
    transform: translateZ(0);
  }

  /* Prevent text size adjustment on mobile */
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Improve tap highlights */
* {
  -webkit-tap-highlight-color: rgba(34, 211, 238, 0.2);
  -webkit-touch-callout: none;
}

/* Ensure video is mobile-friendly */
video {
  max-width: 100%;
  height: auto;
}

