/* Tailwind CSS Reset */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
  overflow-x: hidden;
}

/* Mobile-first responsive breakpoints */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Ensure clean header rendering */
header {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

header * {
  position: relative;
  z-index: 1;
}

/* Prevent unwanted overlays and inspector elements */
body::after,
body::before,
html::after,
html::before,
[class*="inspector"],
[class*="debug"],
[class*="dev-tools"],
[data-inspector],
[data-debug] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Ensure no floating white elements */
div:empty:not([class]):not([id]),
span:empty:not([class]):not([id]) {
  display: none !important;
}

/* Remove white squares and boxes */
div[style*="background: white"],
div[style*="background-color: white"],
div[style*="background: #fff"],
div[style*="background-color: #fff"],
div[style*="background: rgb(255, 255, 255)"],
div[style*="background-color: rgb(255, 255, 255)"] {
  display: none !important;
}

/* Hide any white square elements in header */
header div:not([class]):not([id]) {
  display: none !important;
}

/* Additional white element prevention */
*[style*="background: white"]:not(.logo-crisp):not([class*="text-white"]):not([class*="bg-white"]) {
  display: none !important;
}

/* Enhanced white square removal for persistent elements */
div[style*="position: fixed"][style*="background"],
div[style*="position: absolute"][style*="background"],
div:not([class]):not([id])[style],
span:not([class]):not([id])[style] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Additional protection against browser extensions/overlays */
[style*="position: fixed"],
[style*="position: absolute"]:not([class*="absolute"]) {
  z-index: -1 !important;
}

/* Hide unwanted white overlays and squares */
div:not([class]):not([id])[style*="background"],
span:not([class]):not([id])[style*="background"] {
  display: none !important;
  visibility: hidden !important;
}

/* Clean header background enforcement */
header {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px) !important;
}

/* Blast Vision Variables */
:root {
  --blast-orange: #FF6B35;
  --blast-blue: #2563EB;
  --blast-dark: #0F172A;
}

/* Custom Styles */
.logo-glow {
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
  /* Preserve glow while maintaining sharpness */
  -webkit-filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: block !important;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-nav {
    display: block;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .mobile-nav.active {
    transform: translateX(0);
  }
  
  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
  }
  
  .mobile-nav a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
  }
  
  .mobile-nav a:hover {
    color: var(--blast-orange);
    background: rgba(255, 107, 53, 0.1);
  }
}

/* Override glow filter for crisp logos - maintain glow without blur */
.logo-crisp.logo-glow {
  filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
  -webkit-filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.logo-responsive {
  width: 200px;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

/* High-resolution logo rendering - native dimensions, no scaling */
.logo-crisp {
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* fallback */
  image-rendering: -webkit-crisp-edges;
  image-rendering: -moz-crisp-edges;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  transform: translateZ(0);
  /* Display at native resolution - no scaling */
  max-width: 400px; /* Native width of high-res logo */
  max-height: 400px; /* Native height of high-res logo */
  width: auto;
  height: auto;
  /* Prevent any blur effects */
  filter: none;
  /* Maintain aspect ratio */
  object-fit: contain;
  object-position: center;
}

/* Mobile responsive logo sizing */
@media (max-width: 768px) {
  .logo-crisp {
    max-width: 200px;
    max-height: 200px;
    width: 200px;
  }
}

@media (max-width: 480px) {
  .logo-crisp {
    max-width: 180px;
    max-height: 180px;
    width: 180px;
  }
}

/* Responsive grid improvements */
@media (max-width: 1024px) {
  .grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-cols-1.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile button and form improvements */
@media (max-width: 640px) {
  .px-8 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .space-y-4 > * + * {
    margin-top: 1rem;
  }
}

@media (min-width: 640px) {
  .logo-responsive {
    width: 250px;
  }
}

@media (min-width: 768px) {
  .logo-responsive {
    width: 300px;
  }
}

@media (min-width: 1024px) {
  .logo-responsive {
    width: 350px;
  }
}

.logo-transparent {
  mix-blend-mode: multiply;
  filter: brightness(1.2) contrast(1.1);
}

.section-hidden {
  display: none;
}

.chart-animate {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Essential Tailwind Utilities */
.min-h-screen { min-height: 100vh; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-slate-900 { --tw-gradient-from: #0f172a; --tw-gradient-to: rgba(15, 23, 42, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-blue-900 { --tw-gradient-to: rgba(30, 58, 138, 0); --tw-gradient-stops: var(--tw-gradient-from), #1e3a8a, var(--tw-gradient-to); }
.to-slate-800 { --tw-gradient-to: #1e293b; }
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.border-b { border-bottom-width: 1px; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.hidden { display: none; }
.md\:flex { display: flex; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.text-white { color: rgb(255 255 255); }
.text-gray-300 { color: rgb(209 213 219); }
.text-gray-200 { color: rgb(229 231 235); }
.text-gray-400 { color: rgb(156 163 175); }
.hover\:text-blue-300:hover { color: rgb(147 197 253); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }
.text-5xl { font-size: 3rem; line-height: 1; }
.md\:text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-clip-text { background-clip: text; }
.text-transparent { color: transparent; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.flex-col { flex-direction: column; }
.sm\:flex-row { flex-direction: row; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.justify-center { justify-content: center; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.border { border-width: 1px; }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-80 { height: 20rem; }
.h-64 { height: 16rem; }
.h-12 { height: 3rem; }
.h-6 { height: 1.5rem; }
.h-3 { height: 0.75rem; }
.w-12 { width: 3rem; }
.w-6 { width: 1.5rem; }
.w-3 { width: 0.75rem; }
.p-2 { padding: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.text-center { text-align: center; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Mobile Menu */
/* Mobile navigation completely disabled */
.mobile-menu-hidden,
.mobile-menu-visible,
#mobile-menu {
  display: none !important;
  visibility: hidden !important;
}

/* Enhanced analytics button visibility */
.analytics-enhanced {
  background: rgba(37, 99, 235, 0.2) !important;
  border: 2px solid #2563EB !important;
  font-weight: bold !important;
  font-size: 1.125rem !important;
}
.object-cover { object-fit: cover; }
.absolute { position: absolute; }
.inset-0 { inset: 0px; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/60 { --tw-gradient-from: rgba(0, 0, 0, 0.6); --tw-gradient-to: rgba(0, 0, 0, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.bottom-6 { bottom: 1.5rem; }
.bottom-4 { bottom: 1rem; }
.left-6 { left: 1.5rem; }
.left-4 { left: 1rem; }
.ml-3 { margin-left: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.fill-none { fill: none; }
.stroke-current { stroke: currentColor; }
.stroke-2 { stroke-width: 2; }
.bg-green-500 { background-color: rgb(34 197 94); }
.bg-yellow-500 { background-color: rgb(234 179 8); }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.block { display: block; }
.w-full { width: 100%; }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.pl-8 { padding-left: 2rem; }
.pr-4 { padding-right: 1rem; }
.placeholder-gray-400::placeholder { color: rgb(156 163 175); }
.rows-3 { rows: 3; }
.left-3 { left: 0.75rem; }
.top-3 { top: 0.75rem; }

/* Blast Vision Brand Colors */
.bg-blast-orange { background-color: var(--blast-orange); }
.text-blast-orange { color: var(--blast-orange); }
.hover\:text-blast-orange:hover { color: var(--blast-orange); }
.from-blast-orange { --tw-gradient-from: var(--blast-orange); --tw-gradient-to: rgba(255, 107, 53, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blast-blue { --tw-gradient-to: var(--blast-blue); }
.from-blast-orange { --tw-gradient-from: var(--blast-orange); --tw-gradient-to: rgba(255, 107, 53, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-orange-600 { --tw-gradient-to: #ea580c; }
.hover\:from-orange-600:hover { --tw-gradient-from: #ea580c; --tw-gradient-to: rgba(234, 88, 12, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.hover\:to-orange-700:hover { --tw-gradient-to: #c2410c; }
.bg-blast-blue { background-color: var(--blast-blue); }
.text-blast-blue { color: var(--blast-blue); }
.border-blast-blue { border-color: var(--blast-blue); }
.hover\:bg-blast-blue\/20:hover { background-color: rgba(37, 99, 235, 0.2); }
.bg-blast-dark { background-color: var(--blast-dark); }