*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #04060d; color: #cbd5e1; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Typography */
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

.gradient-text { background: linear-gradient(135deg, #00e5ff 0%, #00e676 50%, #2979ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Grid BG - Clearer, tighter, more clinical terminal matrix */
.grid-bg { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 80%); }

/* Ambient Background slow shifting gradient */
@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.02) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.02) 0%, transparent 45%);
  background-size: 200% 200%;
  animation: bgShift 25s ease-in-out infinite;
  pointer-events: none;
}

/* Glowing background behind hero breathes slowly - High Performance & Safely blurred on load */
@keyframes glowBreathe {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50% { opacity: 0.12; transform: scale(1.15); }
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px); /* Static blur avoids solid color circles before animation begins */
  z-index: -1; /* Forces glow behind all text contents and dashboard images */
  will-change: transform, opacity;
  animation: glowBreathe 9s infinite ease-in-out;
}
.glow-orb-1 { width: 400px; height: 400px; background: #00e5ff; top: -5%; right: 5%; animation-delay: 0s; }
.glow-orb-2 { width: 350px; height: 350px; background: #00e676; bottom: -10%; left: 2%; animation-delay: 2s; }
.glow-orb-3 { width: 300px; height: 300px; background: #2979ff; top: 25%; left: 35%; animation-delay: 4s; }

/* Mask Clip Reveal for premium Section Titles */
.mask-title { overflow: hidden; display: inline-block; vertical-align: bottom; }
.mask-title-inner { display: inline-block; transform: translateY(105%); transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.fade-up.visible .mask-title-inner { transform: translateY(0); }

/* Horizontal glowing separators with energy sweeps */
.subtle-divider {
  position: relative;
  height: 1px;
  background: rgba(226, 232, 240, 0.03);
  overflow: hidden;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.subtle-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
  animation: dividerSweep 7s infinite linear;
}
@keyframes dividerSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* SCI-FI "TRANSFORMER ASSEMBLY" CORNER FRAGMENTS (Aperture Snap & Explode Model - Safe from overflow clipping) */
.assembly-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid #00e5ff;
  opacity: 0;
  transition: all 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 20;
}
.assembly-corner.top-left {
  top: 30px;
  left: 30px;
  border-right: none;
  border-bottom: none;
  transform: scale(0.1) rotate(-135deg);
}
.assembly-corner.top-right {
  top: 30px;
  right: 30px;
  border-left: none;
  border-bottom: none;
  transform: scale(0.1) rotate(135deg);
}
.assembly-corner.bottom-left {
  bottom: 30px;
  left: 30px;
  border-right: none;
  border-top: none;
  transform: scale(0.1) rotate(135deg);
}
.assembly-corner.bottom-right {
  bottom: 30px;
  right: 30px;
  border-left: none;
  border-top: none;
  transform: scale(0.1) rotate(-135deg);
}

/* Snap fragments into place upon section entrance visibility */
.visible .assembly-corner {
  opacity: 0.95;
}
.visible .assembly-corner.top-left {
  top: 0px;
  left: 0px;
  transform: scale(1) rotate(0deg);
}
.visible .assembly-corner.top-right {
  top: 0px;
  right: 0px;
  transform: scale(1) rotate(0deg);
}
.visible .assembly-corner.bottom-left {
  bottom: 0px;
  left: 0px;
  transform: scale(1) rotate(0deg);
}
.visible .assembly-corner.bottom-right {
  bottom: 0px;
  right: 0px;
  transform: scale(1) rotate(0deg);
}

/* Glass Cards - Completely Stable Flat Reveal (No competitive transform clashes or dizzy jumping) */
.glass {
  position: relative;
  overflow: hidden;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.05);
  border-radius: 8px;
  opacity: 0; /* Fully hidden before scroll viewport trigger */
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  will-change: opacity, transform;
}

/* Steady static fade-in to eliminate vertical card jumping */
.visible.glass {
  opacity: 1;
}

/* Elegant light sweep on flat hover */
.glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient( 90deg, transparent, rgba(0, 229, 255, 0.12), transparent );
  transform: rotate(30deg);
  transition: none;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 1025px) {
  .glass:hover {
    transform: translateY(-2.5px) scale(1.008);
    border-color: rgba(0, 229, 255, 0.35);
    background-color: rgba(12, 20, 38, 0.65);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.08);
  }
  .glass:hover::after {
    opacity: 1;
    left: 140%;
    transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .glass:hover .pulse-icon {
    animation: iconPulseFast 1s infinite ease-in-out;
  }
}

/* Beautiful micro flat tactile feedback on mobile devices */
@media (max-width: 1024px) {
  .glass {
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease;
  }
  .glass:active {
    transform: scale(0.985);
    border-color: rgba(0, 229, 255, 0.25);
  }
}

/* Slow-floating cards in hero section */
.float-card { background: rgba(4, 6, 13, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(226, 232, 240, 0.09); border-radius: 4px; padding: 8px 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.6); animation: floatSlow 7s ease-in-out infinite; position: absolute; letter-spacing: 0.02em; transition: transform 0.3s ease; }
.float-card .dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin-right: 5px; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Beautiful Animated Live AI Terminal Card */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 229, 255, 0.15); box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 229, 255, 0.04); }
  50% { border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.1); }
}
.animated-terminal {
  border: 1px solid rgba(0, 229, 255, 0.15);
  animation: borderGlow 5s infinite ease-in-out;
  position: relative;
  overflow: hidden;
  background: rgba(3, 5, 10, 0.88) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.animated-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.25;
}
@media (min-width: 1025px) {
  .animated-terminal:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 229, 255, 0.15);
  }
}

/* Vertical glowing laser scanner */
.laser-scanner {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.1), transparent);
  pointer-events: none;
  animation: laserScan 4s linear infinite;
  z-index: 5;
}
@keyframes laserScan {
  0% { top: -25%; }
  100% { top: 125%; }
}

/* Pulsing updated value class */
.pulse-glow-value {
  animation: valuePulse 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes valuePulse {
  0% { text-shadow: 0 0 10px rgba(0, 229, 255, 0.9); color: #00e5ff; font-weight: bold; }
  100% { text-shadow: none; }
}

/* Terminal logs styles */
.log-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #64748b;
  animation: logFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(6px);
}
.log-line .timestamp { color: #334155; margin-right: 6px; }
.log-line .arrow { color: #00e676; margin-right: 6px; }
.log-line .message { color: #94a3b8; }
@keyframes logFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Blinking terminal caret cursor */
.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #00e5ff;
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: middle;
  margin-left: 3px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Buttons with sleek sliding motion and arrow transformations */
.btn-p {
  background: #ffffff;
  color: #04060d;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 15px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}
.btn-p span.arrow-symbol {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1025px) {
  .btn-p:hover {
    background-color: #00e5ff;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
  }
  .btn-p:hover span.arrow-symbol {
    transform: translateX(4px);
  }
}
.btn-p:active {
  transform: translateY(1px) scale(0.97);
  transition: transform 0.1s ease;
}

.btn-s {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  border: 1.5px solid rgba(226, 232, 240, 0.18);
  border-radius: 6px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (min-width: 1025px) {
  .btn-s:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  }
}
.btn-s:active {
  transform: translateY(1px) scale(0.97);
  transition: transform 0.1s ease;
}

/* Dashboard Frame - Matte glass feel */
.dash-frame { background: rgba(4, 6, 13, 0.4); backdrop-filter: blur(12px); border: 1px solid rgba(226, 232, 240, 0.06); border-radius: 12px; overflow: hidden; box-shadow: 0 0 50px rgba(0,229,255,0.02), 0 25px 50px rgba(0,0,0,0.6); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); transform-style: preserve-3d; will-change: transform; }
.scanline { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.2), transparent); animation: scan 6s linear infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Topbar navigation */
.topbar { background: rgba(4, 6, 13, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226, 232, 240, 0.04); }

/* Trust dot indicators */
.trust-dot { width: 5px; height: 5px; background: #00e676; border-radius: 50%; box-shadow: 0 0 8px #00e676; flex-shrink: 0; margin-top: 5px; }

/* Slow Pulse Glow on Icon Holders */
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.05), inset 0 0 8px rgba(0, 229, 255, 0.02); border-color: rgba(226, 232, 240, 0.08); }
  50% { box-shadow: 0 0 12px rgba(0, 229, 255, 0.15), inset 0 0 12px rgba(0, 229, 255, 0.05); border-color: rgba(0, 229, 255, 0.25); }
}
@keyframes iconPulseFast {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.08), inset 0 0 8px rgba(0, 229, 255, 0.03); border-color: rgba(0, 229, 255, 0.2); }
  50% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.25), inset 0 0 16px rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.4); }
}
.pulse-icon { animation: iconPulse 4s infinite ease-in-out; }

/* General steady fade-up for normal text elements - Safe 8px glide prevents dizziness */
.fade-up { opacity: 0; transform: translateY(8px); transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Reduce motions if prefers-reduced-motion is active */
@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none !important; opacity: 1 !important; transform: none !important; }
  .float-card { animation: none !important; }
  .laser-scanner { display: none !important; }
  .subtle-divider::after { display: none !important; }
  .assembly-corner { display: none !important; }
}

/* Stagger delays sequentially */
.delay-100 { transition-delay: 80ms; }
.delay-200 { transition-delay: 160ms; }
.delay-300 { transition-delay: 240ms; }
.delay-400 { transition-delay: 320ms; }
.delay-500 { transition-delay: 400ms; }

/* Featured Packages styling */
.prod-card { transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); border-color: rgba(226, 232, 240, 0.04); }
.prod-card.featured { border-color: rgba(0,229,255,0.2); box-shadow: 0 12px 35px rgba(0,0,0,0.6), inset 0 0 15px rgba(0,229,255,0.01); }

/* Code and JSON syntax coloring */
.json-key { color: #94a3b8; }
.json-str { color: #00e5ff; }
.json-num { color: #00e676; }

/* Particles Canvas background layer - Highly visible and vibrant energy particles on mobile and desktop */
#neuralCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45; /* Increased opacity so energy lines and particle nodes shine clearly on mobile devices */
}

@media (max-width: 1024px) {
  .dash-frame { transform: none !important; }
  .fade-up { transition: opacity 600ms ease-out, transform 600ms ease-out; transform: translateY(12px) scale(1); }
  .fade-up.visible { transform: translateY(0) scale(1); }
}
