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

:root {
  --navy-950: #061526;
  --navy-900: #0a1f35;
  --navy-800: #0f2d4a;
  --navy-700: #163e64;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --bg-page: #f0f5fa;
  --bg-card: #ffffff;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--navy-900);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. GŁĘBOKI, WYRAZISTY NAGŁÓWEK INSTYTUCJONALNY (STYL 1 + POŚWIATA STYLU 4)
   ========================================================================== */
.top-navbar {
  background: linear-gradient(90deg, #07192b 0%, #0c2540 50%, #07192b 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 10px 30px -10px rgba(6, 21, 38, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #10b981 35%, #22d3ee 65%, transparent 100%);
  opacity: 0.75;
}

/* ==========================================================================
   2. TŁO HERO: JASNY BŁĘKIT INSTYTUCJONALNY + NOWOCZESNA SIATKA I AURA
   ========================================================================== */
.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 32%, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 32%, transparent 68%),
    linear-gradient(180deg, #e8f1fa 0%, #f4f8fc 55%, #f0f5fa 100%);
  overflow: hidden;
}

.hero-tech-grid {
  background-image:
    linear-gradient(to right, rgba(15, 45, 74, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 45, 74, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}

/* ==========================================================================
   3. CENTRALNA KARTA SKANERA (STYL 1 + EFEKTY LASEROWE I HUD ZE STYLU 4)
   ========================================================================== */
.scanner-outer-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 74, 0.12);
  box-shadow:
    0 25px 60px -15px rgba(10, 31, 53, 0.14),
    0 0 0 1px rgba(16, 185, 129, 0.12),
    0 0 40px -10px rgba(16, 185, 129, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scanner-outer-card:hover {
  box-shadow:
    0 30px 70px -15px rgba(10, 31, 53, 0.18),
    0 0 0 1.5px rgba(16, 185, 129, 0.35),
    0 0 50px -8px rgba(6, 182, 212, 0.22);
}

.scanner-dropzone {
  position: relative;
  background: linear-gradient(180deg, #f5f9fd 0%, #edf5fc 100%);
  border: 2px dashed #93b8d8;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.scanner-dropzone:hover,
.scanner-dropzone.drag-active {
  background: linear-gradient(180deg, #eefaf6 0%, #e6f4fe 100%);
  border-color: #10b981;
}

/* Narożniki HUD ze Stylu 4 */
.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #10b981;
  pointer-events: none;
  opacity: 0.85;
}
.hud-tl { top: 12px; left: 12px; border-top: 3px solid #10b981; border-left: 3px solid #10b981; border-top-left-radius: 8px; }
.hud-tr { top: 12px; right: 12px; border-top: 3px solid #06b6d4; border-right: 3px solid #06b6d4; border-top-right-radius: 8px; }
.hud-bl { bottom: 12px; left: 12px; border-bottom: 3px solid #06b6d4; border-left: 3px solid #06b6d4; border-bottom-left-radius: 8px; }
.hud-br { bottom: 12px; right: 12px; border-bottom: 3px solid #10b981; border-right: 3px solid #10b981; border-bottom-right-radius: 8px; }

/* Wiązka skanująca ze Stylu 4 (delikatna, nowoczesna animacja) */
.laser-beam-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #06b6d4 30%, #10b981 50%, #06b6d4 70%, transparent 95%);
  box-shadow: 0 0 18px 2px rgba(16, 185, 129, 0.55);
  animation: laserSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes laserSweep {
  0%, 100% {
    top: 14%;
    opacity: 0.35;
  }
  50% {
    top: 84%;
    opacity: 0.9;
  }
}

/* Pulsująca tarcza w centrum skanera */
.shield-hub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shield-hub::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(6, 182, 212, 0.12) 55%, transparent 75%);
  animation: pulseAura 3s ease-in-out infinite;
}

@keyframes pulseAura {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ==========================================================================
   4. PRZYCISKI I KARTY NARZĘDZI — WYSOKI KONTRAST + NOWOCZESNY HOVER
   ========================================================================== */
.btn-emerald-glow {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px -6px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-emerald-glow:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(5, 150, 105, 0.65), 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-navy-solid {
  background: linear-gradient(135deg, #0c2540 0%, #07192b 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(10, 31, 53, 0.35);
  transition: all 0.2s ease;
}

.btn-navy-solid:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(5, 150, 105, 0.45);
}

.tool-card-vivid {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #dbe6f2;
  box-shadow: 0 10px 28px -10px rgba(10, 31, 53, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tool-card-vivid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c2540 0%, #10b981 60%, #06b6d4 100%);
  opacity: 0.85;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.tool-card-vivid:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  box-shadow:
    0 24px 48px -12px rgba(10, 31, 53, 0.16),
    0 0 0 1px rgba(16, 185, 129, 0.3),
    0 0 28px -6px rgba(16, 185, 129, 0.2);
}

.tool-card-vivid:hover::before {
  opacity: 1;
  height: 5px;
}

.icon-box-vivid {
  background: linear-gradient(135deg, #0c2540 0%, #153c63 100%);
  color: #34d399;
  box-shadow: 0 8px 18px -4px rgba(12, 37, 64, 0.3), inset 0 1px 1px rgba(52, 211, 153, 0.3);
}

.quick-pill-btn {
  background: #ffffff;
  border: 1.5px solid #cbdceb;
  color: #0a1f35;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quick-pill-btn:hover {
  border-color: #10b981;
  background: #f0fdf9;
  color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.2);
}

.locked-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.35s ease;
}

.locked-blur.unlocked {
  filter: blur(0);
  user-select: auto;
  pointer-events: auto;
}
