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

/* ==========================================================================
   ALPHALABS NFC - DARK HIGH-TECH & CRISTAL ACRÍLICO DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-canvas: #07090e;
  --bg-surface: rgba(13, 19, 33, 0.75);
  --bg-surface-elevated: rgba(20, 29, 51, 0.88);
  --bg-surface-card: rgba(15, 23, 42, 0.70);
  
  --border-specular: rgba(255, 255, 255, 0.08);
  --border-specular-highlight: rgba(255, 255, 255, 0.18);
  --border-specular-glow: rgba(6, 182, 212, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.28);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.28);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
}

/* Global Smooth Scrolling and Base Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

/* Sleek High-Tech Dark Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #07090e;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  border: 1px solid #07090e;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) #07090e;
}

/* High-Tech Blueprint Grid & Ambient Studio Lighting */
body {
  position: relative;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    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);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
}

/* Frosted Dark Acrylic Cards (Cristal Acrílico Fumê) */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-specular);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-specular-highlight);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px var(--accent-cyan-glow), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

/* Specular Highlight Header Bar */
.glass-nav {
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-specular);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 -1px 0 0 rgba(255, 255, 255, 0.03);
}

/* High-Tech Form Inputs */
.input-tech {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-tech:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), 0 0 15px rgba(6, 182, 212, 0.15);
}

.input-tech::placeholder {
  color: #64748b;
}

/* High-Tech Buttons */
.btn-primary-tech {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-tech:hover {
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.40);
  transform: translateY(-1px);
}

.btn-primary-tech:active {
  transform: scale(0.98);
}

.btn-secondary-tech {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.btn-secondary-tech:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Floating 3D Acrylic Hardware Plaque */
@keyframes floatProduct {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

.floating-plaque {
  animation: floatProduct 5s ease-in-out infinite;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.7)) drop-shadow(0 10px 15px rgba(6, 182, 212, 0.18));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.floating-plaque:hover {
  transform: translateY(-14px) rotate(1.5deg) scale(1.03);
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.8)) drop-shadow(0 15px 25px rgba(6, 182, 212, 0.30));
}

/* Radar NFC Pulse Animation */
@keyframes radarPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.20);
    opacity: 0.15;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.85;
  }
}

.radar-glow {
  animation: radarPulse 3s ease-in-out infinite;
}

/* Floating Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 19, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(6, 182, 212, 0.4);
}

#back-to-top:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 640px) {
  #back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
