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

:root {
  --bg-primary: #070a11;
  --bg-secondary: #0d1322;
  --bg-card: rgba(16, 24, 40, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(52, 211, 153, 0.4);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #e2e8f0;
  overflow-x: hidden;
  selection-background-color: #10b981;
  selection-color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070a11;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography Headings */
h1, h2, h3, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

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

/* Glassmorphism Card Style */
.glass-panel {
  background: var(--bg-card);
  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: rgba(255, 255, 255, 0.16);
}

.glass-panel-glow {
  position: relative;
  background: rgba(13, 20, 36, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
}

/* Hero Background Gradients */
.hero-glow-emerald {
  background: radial-gradient(circle 500px at 50% 10%, rgba(16, 185, 129, 0.15), transparent 70%);
}

.hero-glow-cyan {
  background: radial-gradient(circle 400px at 80% 30%, rgba(6, 182, 212, 0.1), transparent 70%);
}

/* Background Grid Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Shimmer / Pulse Effects */
.pulse-indicator {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.pulse-indicator-red {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring-red 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring-red {
  to {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* Canvas Particle Layer */
#ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Copy IP Button Tactile Animation */
.copy-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.copy-pill:active {
  transform: scale(0.98);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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