/* Kredena Website - Pure White vs Pure Black System Theme Engine */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light dark;

  /* Default Light Mode CSS Variables: PURE WHITE */
  --bg-main: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --color-azure: #0284c7;
  --color-cyan: #06b6d4;
  --color-navy: #0f172a;
  --color-text: #0f172a;
}

html {
  color-scheme: light dark;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #ffffff !important;
  color: #0f172a !important;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Force all section backgrounds to Pure White in Light Mode */
section, div, header, footer {
  background-color: transparent;
}

.bg-slate-50, .bg-slate-50\/80, .bg-slate-100 {
  background-color: #ffffff !important;
}

/* Brand Name Typography - Cormorant Garamond */
.font-brand-name {
  font-family: 'Cormorant Garamond', serif !important;
  letter-spacing: 0.18em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
  transition: color 0.4s ease;
}

/* Oceanic Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 15px 40px rgba(2, 132, 199, 0.14);
  transform: translateY(-4px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
  color: #0369a1;
}

/* Dynamic Pulse Badge Callouts */
.pulse-badge {
  background: #e0f2fe !important;
  border: 2px solid #0284c7 !important;
  color: #0369a1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
  transition: all 0.3s ease;
}

/* Agent Tab Buttons */
.agent-tab-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  border: 2px solid #0284c7 !important;
  font-weight: 800 !important;
}

.agent-tab-inactive {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 2px solid #94a3b8 !important;
  font-weight: 800 !important;
}

.agent-tab-inactive:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.3);
  border-radius: 4px;
}

/* ====================================================
   SYSTEM DARK MODE OVERRIDES: PURE BLACK (#000000)
   ==================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #000000;
    --bg-card: rgba(10, 10, 15, 0.9);
    --color-azure: #38bdf8;
    --color-cyan: #22d3ee;
    --color-navy: #ffffff;
    --color-text: #ffffff;
  }

  body {
    background-color: #000000 !important;
    color: #ffffff !important;
  }

  #main-header {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border-bottom-color: rgba(38, 38, 38, 0.8) !important;
  }

  .font-brand-name {
    color: #ffffff !important;
  }

  .nav-link {
    color: #f1f5f9 !important;
  }
  .nav-link:hover {
    color: #38bdf8 !important;
  }

  .glass-card {
    background: rgba(12, 12, 18, 0.9) !important;
    border-color: rgba(38, 38, 38, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  }

  .text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Force all background surface utilities to Pure Black in Dark Mode */
  .bg-white, .bg-white\/90, .bg-white\/95, .bg-slate-50, .bg-slate-50\/80, .bg-slate-100 {
    background-color: #000000 !important;
  }

  .border-slate-200, .border-slate-300 {
    border-color: rgba(38, 38, 38, 0.8) !important;
  }

  .text-slate-900, .text-slate-950, .text-slate-800, .text-slate-700, .text-slate-600 {
    color: #ffffff !important;
  }

  .pulse-badge {
    background: rgba(14, 165, 233, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
  }

  .agent-tab-inactive {
    background: rgba(24, 24, 30, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(50, 50, 60, 0.9) !important;
  }

  select#calc-industry {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
  }

  ::-webkit-scrollbar-track {
    background: #000000;
  }
}


/* Canvas Particle Visibility & Section Translucency */
#particles-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 1 !important;
}

header, section, footer {
  position: relative;
  z-index: 2;
}

body {
  background-color: #ffffff !important;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #000000 !important;
  }
}


/* Mobile Navigation Overlay Drawer Fix for iOS Safari & Touch Devices */
#mobile-menu-toggle {
  cursor: pointer !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  z-index: 60 !important;
}

/* Drawer visibility is driven by the .is-open class only (see main.js).
   No inline styles, so nothing can get out of sync on iOS Safari. */
#mobile-menu-toggle .icon-close { display: none; }
#mobile-menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
#mobile-menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }

#mobile-menu-drawer {
  display: none;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu-drawer.is-open {
  display: block;
}

#mobile-menu-drawer a {
  touch-action: manipulation;
}

@media (min-width: 768px) {
  #mobile-menu-drawer,
  #mobile-menu-drawer.is-open {
    display: none !important;
  }
}

/* 80% Transparent Human Employees & Skyscraper Background Overlay */
.transparent-bg-container {
  position: relative;
  overflow: hidden;
}

.bg-transparent-employees {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.20; /* Exactly 80% transparent (20% visible) */
  filter: contrast(1.1) brightness(1.05);
  pointer-events: none;
  z-index: 0;
}

.bg-transparent-employees-dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18; /* 82% transparent */
  filter: contrast(1.15) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}

.transparent-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.90) 100%);
  pointer-events: none;
  z-index: 1;
}

.dark .transparent-bg-overlay {
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.88) 0%, rgba(7, 9, 14, 0.40) 50%, rgba(7, 9, 14, 0.95) 100%);
}

