/* ==========================================================================
   ZIGBMAX TECHNOLOGY - INDUSTRIAL HIGH-TECH STYLESHEET
   Aesthetics: Semiconductor + Embedded Systems + LPWAN + Computer Vision AI
   ========================================================================== */

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

:root {
  --bg-dark: #07090e;
  --bg-card: #0d121c;
  --bg-card-hover: #131a28;
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 240, 255, 0.35);
  --cyan-core: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.15);
  --emerald-signal: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --amber-warn: #f59e0b;
  --violet-ai: #8b5cf6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography elements */
.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

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

/* Tech grid & scanline backgrounds */
.bg-circuit-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);
}

.bg-dot-matrix {
  background-image: radial-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism & High-Tech Cards */
.tech-card {
  background: linear-gradient(135deg, rgba(16, 23, 37, 0.75) 0%, rgba(10, 15, 25, 0.85) 100%);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.tech-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 240, 255, 0.12);
}

.tech-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
}

/* Glowing circuit border accents */
.tech-border-glow {
  position: relative;
}

.tech-border-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), transparent 40%, rgba(16, 185, 129, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Corner bracket marks for industrial blueprint feel */
.corner-bracket {
  position: relative;
}
.corner-bracket::before, .corner-bracket::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.corner-bracket::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid rgba(0, 240, 255, 0.6);
  border-left: 2px solid rgba(0, 240, 255, 0.6);
}
.corner-bracket::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid rgba(0, 240, 255, 0.6);
  border-right: 2px solid rgba(0, 240, 255, 0.6);
}

/* Neon Glow utilities */
.glow-cyan {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}
.glow-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}
.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 15%, #00f0ff 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 15%, #10b981 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Custom Pulsing and animations */
@keyframes signalPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6)); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.animate-signal {
  animation: signalPulse 3s infinite ease-in-out;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-radar {
  animation: radarSweep 10s linear infinite;
  transform-origin: center center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090c12;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Interactive Tabs & Pipeline Pills */
.pipeline-step {
  transition: all 0.25s ease;
  cursor: pointer;
}
.pipeline-step.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Computer vision overlay box styling */
.cv-box {
  position: absolute;
  border: 2px solid;
  pointer-events: none;
  transition: all 0.3s ease-out;
}

.cv-box-label {
  position: absolute;
  top: -24px;
  left: -2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem !important;
    line-height: 2.75rem !important;
  }
}
