/* Enqueue Soft - Modern Green Energy Industrial IoT Dark Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #070b12;
  --bg-secondary: #0c121d;
  --bg-tertiary: #121a29;
  --bg-card: rgba(18, 26, 41, 0.75);
  --bg-card-hover: rgba(24, 35, 56, 0.85);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(16, 185, 129, 0.35);
  --color-green-primary: #10b981;
  --color-green-glow: #00F59B;
  --color-green-dark: #065f46;
  --color-cyan: #06b6d4;
  --color-purple: #a855f7;
  --color-purple-light: #c084fc;
  --color-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 50% 50% at 15% 40%, rgba(168, 85, 247, 0.06), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle Industrial Cyber Grid Background */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15);
}

/* Neon Glow Utilities */
.glow-green {
  text-shadow: 0 0 20px rgba(0, 245, 155, 0.5);
}

.box-glow-green {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.box-glow-purple {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.box-glow-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* Gradient Text */
.gradient-text-green {
  background: linear-gradient(135deg, #f8fafc 20%, #34d399 70%, #00F59B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Pulsing Dots & Signals */
.pulse-indicator {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
}
.pulse-indicator span:first-child {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--color-green-primary);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-indicator span:last-child {
  position: relative;
  border-radius: 9999px;
  height: 8px;
  width: 8px;
  background-color: var(--color-green-glow);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Animated Flow Paths (SVG Architecture) */
.flow-line {
  stroke-dasharray: 8 6;
  animation: dashAnimation 1.2s linear infinite;
}

.flow-line-reverse {
  stroke-dasharray: 8 6;
  animation: dashAnimationReverse 1.2s linear infinite;
}

@keyframes dashAnimation {
  from {
    stroke-dashoffset: 28;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashAnimationReverse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 28;
  }
}

/* Glowing energy pulse animation for SVG nodes */
@keyframes nodePulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(0, 245, 155, 0.8));
  }
}

.animate-node-glow {
  animation: nodePulse 3s ease-in-out infinite;
}

/* Live Terminal Log Box */
.terminal-code {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  background: #06090f;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  color: #34d399;
}

/* Button Shimmers */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: rotate(30deg);
  transition: transform 0.6s;
}
.btn-shimmer:hover::after {
  transform: translate(30%, 30%) rotate(30deg);
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

/* Clean Tag Styling */
.badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

/* Interactive Simulator Gauge Bar */
.gauge-track {
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #00F59B);
  transition: width 0.5s ease-out;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
  }
}


/* 13-column layout for Heatmap (Day Label + 12 Time Slots) */
.grid-cols-13 {
  display: grid;
  grid-template-columns: 32px repeat(12, minmax(0, 1fr));
}
