/* PERKLY Design System - High-End French HR-Tech & B2B SaaS (Style Swile) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --color-brand-dark: #090E17;
  --color-brand-navy: #151D2A;
  --color-brand-teal: #10B981;
  --color-brand-teal-light: #34D399;
  --color-brand-coral: #F43F5E;
  --color-brand-yellow: #F59E0B;
  --color-brand-bg: #FAF9F6;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  background-color: #FAF9F6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-script {
  font-family: 'Caveat', cursive;
}

.font-mono-num {
  font-family: 'Space Grotesk', 'Inter', monospace;
  font-feature-settings: "tnum";
}

/* Subtle dot grid pattern */
.bg-dot-pattern {
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glassmorphism & Modern Shadows */
.glass-nav {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.card-hover {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
}

/* Gradient Mesh Backgrounds */
.hero-mesh {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.05) 35%, rgba(244, 63, 94, 0.03) 70%, transparent 90%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.06) 45%, transparent 70%);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

/* Realistic Phone Mockup Chrome */
.device-phone {
  background: #0B111E;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 0 2px rgba(0, 0, 0, 0.6);
  position: relative;
}

.device-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 30;
}

/* Desktop Window Mockup Chrome */
.device-window {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 20px 40px -15px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.window-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic-dots {
  display: flex;
  gap: 6px;
}
.traffic-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Custom Range Slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #E2E8F0;
  border-radius: 9999px;
  transition: background 0.2s ease;
}
input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #10B981;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #059669;
}

/* Tab active indicator */
.tab-btn.active {
  background-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Subtle Floating Animations */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

.animate-float-subtle {
  animation: float-subtle 6s ease-in-out infinite;
}
.animate-float-reverse {
  animation: float-reverse 7s ease-in-out infinite 1s;
}

/* Pulse radar ring */
@keyframes radar-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.radar-ring {
  animation: radar-pulse 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Modal animation */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}
