/* ==========================================================================
   LC CLOUD - High-Impact Enterprise UI/UX Stylesheet
   Design Inspiration: Stripe, Linear, Vercel (Industrial B2B Tech)
   ========================================================================== */

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

:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette Tokens */
  --bg-slate-canvas: #f8fafc;
  --navy-dark-primary: #0a2540;
  --navy-dark-deep: #06182c;
  --navy-dark-card: #0f2d4e;
  --cyan-brand: #0284c7;
  --cyan-vibrant: #0ea5e9;
  --cyan-electric: #38bdf8;
  --emerald-active: #16a34a;
  --emerald-glow: #22c55e;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: #1e293b;
  background-color: var(--bg-slate-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection Color */
::selection {
  background-color: rgba(14, 165, 233, 0.25);
  color: #0369a1;
}

/* Background Grids & Technical Patterns */
.bg-grid-tech-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
}

.bg-grid-tech-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
}

.bg-radial-hero {
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

.bg-radial-dark {
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.2) 0%, rgba(10, 37, 64, 0) 65%);
}

/* Linear & Stripe Style Borders & Glows */
.border-subtle-glow {
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.05), 0 0 0 1px rgba(2, 132, 199, 0.03);
}

.border-subtle-glow:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.dark-card-border {
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dark-card-border:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Glassmorphism Classes */
.glass-panel-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-panel-dark {
  background: rgba(15, 45, 78, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease;
}

.btn-shimmer:hover::before {
  transform: rotate(25deg) translateY(100%);
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes dataPacketFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes liveRadarPing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.beacon-online {
  animation: liveRadarPing 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

/* Custom Interactive Bento Grid Highlights */
.bento-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* Architecture Layer Connector */
.arch-flow-line {
  position: relative;
}

.arch-flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #0284c7, #38bdf8, #16a34a);
  opacity: 0.6;
}

/* Form Styles */
.custom-input {
  transition: all 0.2s ease;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}

.custom-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Range Slider */
input[type="range"] {
  accent-color: #0284c7;
}

/* Modal Animations */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-exit {
  opacity: 1;
  transform: scale(1);
}

.modal-exit-active {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(120%);
  opacity: 0;
}

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