@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #06070a;
  --bg-secondary: #0c0e14;
  --bg-card: rgba(14, 17, 26, 0.75);
  --bg-card-hover: rgba(22, 27, 42, 0.9);
  --plasma-violet: #8b5cf6;
  --plasma-purple: #7c3aed;
  --plasma-cyan: #06b6d4;
  --plasma-amber: #f59e0b;
  --plasma-glow: rgba(139, 92, 246, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(139, 92, 246, 0.4);
}

/* Base custom styles */
body {
  background-color: var(--bg-primary);
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06070a;
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* Tokamak Magnetic Mesh Grid */
.tokamak-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glowing Elements & Badges */
.glass-panel {
  background: rgba(12, 15, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-active);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.15);
}

.glass-card-interactive {
  background: linear-gradient(135deg, rgba(16, 20, 32, 0.8) 0%, rgba(10, 12, 20, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card-interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
}

.glow-violet {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.glow-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.text-gradient-plasma {
  background: linear-gradient(135deg, #ffffff 15%, #c4b5fd 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffffff 20%, #fde68a 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, #a5f3fc 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Beacon Pulse Animation */
@keyframes beacon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.3;
  }
}

.beacon-pulse {
  animation: beacon 2.2s infinite ease-in-out;
}

@keyframes flux-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient-border {
  position: relative;
  background: linear-gradient(60deg, #7c3aed, #06b6d4, #f59e0b, #7c3aed);
  background-size: 300% 300%;
  animation: flux-drift 6s ease infinite;
  padding: 1px;
  border-radius: 0.75rem;
}

.animated-gradient-inner {
  background: #0a0d14;
  border-radius: calc(0.75rem - 1px);
}

/* Custom interactive simulator canvas styling */
#torusCanvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  background: radial-gradient(circle at center, #0f121d 0%, #050609 85%);
}

/* Subtle code badge */
.tech-tag {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  letter-spacing: 0.04em;
}

/* Pitch deck active slide animations */
.slide-active {
  display: block;
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-hidden {
  display: none;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
