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

:root {
  --bg-deep: #030712;
  --bg-card: #080E1E;
  --bg-surface: #0E172E;
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-ghost: rgba(0, 245, 160, 0.22);
  --ghost-mint: #00F5A0;
  --ghost-cyan: #00D9F5;
  --ghost-violet: #8B5CF6;
  --text-main: #F8FAFC;
  --text-dim: #94A3B8;
  --text-muted: #64748B;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  selection-background-color: #00F5A0;
  selection-color: #030712;
}

::selection {
  background: rgba(0, 245, 160, 0.3);
  color: #00F5A0;
}

/* Typography Helpers */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

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

/* Cyber & Hologram Grid Backgrounds */
.ghost-grid-bg {
  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);
}

.ghost-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 160, 0.12) 0%, rgba(0, 217, 245, 0.05) 35%, transparent 70%);
}

.ghost-bottom-glow {
  background: radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.1) 0%, rgba(0, 245, 160, 0.04) 40%, transparent 80%);
}

/* Glass & Card Surfaces */
.glass-panel {
  background: rgba(8, 14, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  border-color: rgba(0, 245, 160, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 245, 160, 0.15);
}

.glass-panel-cyan:hover {
  border-color: rgba(0, 217, 245, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 217, 245, 0.15);
}

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

/* Button Variants */
.btn-spectral {
  background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 100%);
  color: #030712;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-spectral:hover {
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.45);
  transform: translateY(-1px);
}

.btn-spectral::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(30deg);
  transition: transform 0.6s ease;
}

.btn-spectral:hover::after {
  transform: rotate(30deg) translate(50%, 50%);
}

.btn-ghost-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  transition: all 0.2s ease;
}

.btn-ghost-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 160, 0.4);
  color: #00F5A0;
}

/* Live Beacon Pulse */
.live-beacon {
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7);
  }
  50% {
    opacity: .6;
    box-shadow: 0 0 0 6px rgba(0, 245, 160, 0);
  }
}

/* Code Snippet Previews */
.terminal-window {
  background: #050A15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.8);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00F5A0;
}

/* Pricing Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1E293B;
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #00F5A0;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.6);
}

input:checked + .toggle-slider {
  background-color: rgba(0, 245, 160, 0.2);
  border-color: #00F5A0;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion Styling */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Interactive Simulator Node Pulse */
.node-active {
  stroke: #00F5A0;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(0, 245, 160, 0.8));
}
