/* =====================================================
   EXTRACS MASTER STYLES & RESPONSIVE COMPATIBILITY FIX
   ===================================================== */

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

/* Global Font & Reset */
:root {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color-scheme: dark;
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0A0A0C !important;
  color: #E2E8F0 !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  overflow-x: hidden !important;
  margin: 0;
  padding-top: 70px !important;
  -webkit-font-smoothing: antialiased;
}

/* Universal Button Reset */
button, input, select, textarea {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  font-family: inherit !important;
  outline: none;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0A0C;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* =====================================================
   HEADER & NAVIGATION DIRECT STYLES
   ===================================================== */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background-color: rgba(10, 10, 12, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Logo sizing constraint */
header img, img[alt*="logo"], svg.scale-95 {
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Navigation buttons reset & styling */
header button, nav button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  color: #CBD5E1 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

header button:hover, nav button:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Active Nav Button */
header button.bg-blue-600, nav button.bg-blue-600 {
  background: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

/* Download ZIP Button */
button[title*="Download"], a[href*="Extracs.zip"] {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34D399 !important;
  border-radius: 9999px !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* Activate Package Button */
button[title*="Activate"], button[class*="from-blue-600"] {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%) !important;
  color: #FFFFFF !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
  border: none !important;
}

/* Desktop Navigation rules */
@media (min-width: 1024px) {
  header nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  button[aria-label="Toggle navigation menu"] {
    display: none !important;
  }
}

/* Mobile Navigation rules */
@media (max-width: 1023px) {
  header nav {
    display: none !important;
  }
  button[aria-label="Toggle navigation menu"] {
    display: flex !important;
    visibility: visible !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Mobile Backdrop Overlay */
  .fixed.inset-0.top-\\[60px\\], .fixed.inset-0 {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9998 !important;
  }

  /* Mobile Slide-down Menu Container */
  .animate-in[class*="inset-x-0"], div.fixed.inset-x-0 {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #0D0D11 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    z-index: 99999 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95) !important;
  }

  .animate-in[class*="inset-x-0"] button, div.fixed.inset-x-0 button {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    color: #F1F5F9 !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }
}

/* Mobile responsive layout scaling */
@media (max-width: 639px) {
  body, #root {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }

  p {
    font-size: 0.925rem !important;
    line-height: 1.5 !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(19, 19, 26, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15) !important;
}
