/* ==========================================================================
   DATA SCOUT - ELITE AWWWARDS-GRADE STYLESHEET (AWARD WINNING SAAS DESIGN)
   Aesthetic: Ultra Dark Neo-Glassmorphism + Crisp Apple Light Theme + Admin Suite
   ========================================================================== */

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

:root {
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dark Theme Palette */
  --bg-main: #030712;
  --bg-surface: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-solid: #0f172a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(34, 211, 238, 0.4);
  
  --text-main: #f9fafb;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #22d3ee;
  --text-accent-emerald: #34d399;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-emerald: #10b981;
}

/* ==========================================================================
   PERFECT HIGH-CONTRAST LIGHT THEME (Apple / Stripe Standards)
   ========================================================================== */
body.light-theme {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  --border-subtle: #e2e8f0;
  --border-highlight: #0284c7;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --text-accent: #0284c7;
  --text-accent-emerald: #059669;

  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.light-theme header {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .glass-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .glass-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .conic-border-box {
  background: #ffffff !important;
  box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.15) !important;
}

body.light-theme .bg-slate-950,
body.light-theme .bg-slate-950\/60,
body.light-theme .bg-slate-950\/70,
body.light-theme .bg-slate-950\/80,
body.light-theme .bg-slate-950\/90,
body.light-theme .bg-slate-950\/95 {
  background-color: #ffffff !important;
}

body.light-theme .bg-slate-900,
body.light-theme .bg-slate-900\/60,
body.light-theme .bg-slate-900\/70,
body.light-theme .bg-slate-900\/80,
body.light-theme .bg-slate-900\/90 {
  background-color: #f1f5f9 !important;
}

body.light-theme .border-white\/10,
body.light-theme .border-white\/5,
body.light-theme .border-white\/\[0\.08\],
body.light-theme .border-white\/\[0\.07\] {
  border-color: #e2e8f0 !important;
}

body.light-theme .text-white {
  color: #0f172a !important;
}

body.light-theme .text-slate-200,
body.light-theme .text-slate-300 {
  color: #334155 !important;
}

body.light-theme .text-slate-400 {
  color: #475569 !important;
}

body.light-theme .text-slate-500 {
  color: #64748b !important;
}

body.light-theme .text-cyan-400,
body.light-theme .text-cyan-300 {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

body.light-theme .text-emerald-400,
body.light-theme .text-emerald-300 {
  color: #059669 !important;
  font-weight: 700 !important;
}

body.light-theme .text-blue-400 {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

body.light-theme .text-amber-400 {
  color: #b45309 !important;
  font-weight: 700 !important;
}

body.light-theme .badge-glow-cyan {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

body.light-theme .badge-glow-emerald {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}

body.light-theme .bg-cyan-500\/10,
body.light-theme .bg-cyan-500\/15,
body.light-theme .bg-cyan-500\/20 {
  background-color: #e0f2fe !important;
}

body.light-theme .bg-emerald-500\/10,
body.light-theme .bg-emerald-500\/20 {
  background-color: #dcfce7 !important;
}

body.light-theme .text-gradient-cyan {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 60%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

body.light-theme .mac-terminal {
  background: #090d16 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .mac-terminal * {
  color-scheme: dark;
}
body.light-theme .mac-terminal-header {
  background: #0f172a !important;
}
body.light-theme #terminalBody {
  background: #090d16 !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   BASE & ADVANCED VISUAL EFFECTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg, video, canvas, table {
  max-width: 100%;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Ambient Radial Glows (Safe Dimensions) */
.aurora-glow-1 {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 850px);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.14) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.aurora-glow-2 {
  position: absolute;
  top: 40%;
  right: -30px;
  width: min(85vw, 600px);
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
}

/* Background Grid Pattern */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

body.light-theme .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Dynamic Interactive Spotlight on Cards */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Conic Border Gradient Box */
.conic-border-box {
  position: relative;
  background: var(--bg-surface);
  border-radius: 1.75rem;
  z-index: 1;
}

.conic-border-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(1.75rem + 2px);
  padding: 2px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #10b981, #06b6d4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-shimmer:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Glow Badges */
.badge-glow-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.badge-glow-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Text Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 45%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Floating Badges in Hero */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-1deg); }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

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

/* Terminal Styles */
.mac-terminal {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.mac-terminal-header {
  background: #0d1322;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.mac-dot-red { background: #ff5f56; }
.mac-dot-yellow { background: #ffbd2e; }
.mac-dot-green { background: #27c93f; }

/* File Preview Badges */
.file-preview-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  transition: all 0.25s ease;
}

body.light-theme .file-preview-badge {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.file-preview-badge:hover {
  border-color: #06b6d4;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.2);
}

/* FAQ Accordion Styling */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
body.light-theme .faq-item {
  border-bottom-color: #e2e8f0;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #06b6d4;
}

/* Floating WhatsApp Button with Enhanced Mobile Pill */
.whatsapp-float-btn {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bounceInEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bounceInEntrance {
  0% { transform: scale(0) translateY(30px); opacity: 0; }
  70% { transform: scale(1.08) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge-ping {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px #22c55e;
}

.whatsapp-badge-ping::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pingDot 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   ADMIN AUDIT SUITE MODAL
   ========================================================================== */
#adminModal {
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-card {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
}

.admin-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
body.light-theme ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

/* ==========================================================================
   DATA SCOUT STUDIO (UNIVERSAL PROFILER & MULTI-DOMAIN ANALYZER)
   ========================================================================== */
.studio-dropzone {
  border: 2px dashed rgba(6, 182, 212, 0.35);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.studio-dropzone:hover,
.studio-dropzone.dragover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.2);
  transform: scale-[1.005];
}
body.light-theme .studio-dropzone {
  background: #ffffff;
  border-color: #cbd5e1;
}
body.light-theme .studio-dropzone:hover,
body.light-theme .studio-dropzone.dragover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.studio-tab-btn {
  transition: all 0.2s ease;
}
.studio-tab-btn.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #030712;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.domain-pill-btn {
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
}
.domain-pill-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}
.domain-pill-btn.active {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  color: #ffffff;
}
body.light-theme .domain-pill-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}
body.light-theme .domain-pill-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

.sample-preset-btn {
  transition: all 0.2s ease;
}
.sample-preset-btn:hover {
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(6, 182, 212, 0.2);
}
.sample-preset-btn.active {
  border-color: #06b6d4 !important;
  background: rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3) !important;
}
body.light-theme .sample-preset-btn.active {
  border-color: #0284c7 !important;
  background: #e0f2fe !important;
}

/* Badges for Data Types */
.type-badge-currency { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.type-badge-date { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.type-badge-number { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.type-badge-category { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.type-badge-id { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.type-badge-text { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

body.light-theme .type-badge-currency { background: #dcfce7; color: #15803d; border-color: #86efac; }
body.light-theme .type-badge-date { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
body.light-theme .type-badge-number { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
body.light-theme .type-badge-category { background: #f3e8ff; color: #7e22ce; border-color: #d8b4fe; }
body.light-theme .type-badge-id { background: #fef3c7; color: #b45309; border-color: #fde68a; }
body.light-theme .type-badge-text { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

/* ==========================================================================
   MOBILE & LANDSCAPE RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

/* Universal Overflow & Layout Boundary Protection */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip !important;
}

main, section, header, footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Floating WhatsApp Button - Hardware Accelerated Layer */
.whatsapp-float-btn {
  position: fixed !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  right: calc(14px + env(safe-area-inset-right, 0px)) !important;
  z-index: 99999 !important;
  transform: translateZ(0);
}

/* Mobile Portrait Polish (< 640px) */
@media (max-width: 640px) {
  .conic-border-box,
  .spotlight-card {
    padding: 1.15rem !important;
    border-radius: 1.25rem !important;
  }
  
  .mac-terminal {
    border-radius: 1rem !important;
  }
  
  .font-display.text-4xl,
  .font-display.text-5xl,
  .font-display.text-6xl {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  p.text-base, p.text-xl {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
}

/* Mobile Landscape (< 600px height when rotated) */
@media (max-height: 600px) and (orientation: landscape) {
  header {
    height: 52px !important;
  }
  header .h-20 {
    height: 52px !important;
  }
  
  section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  .font-display.text-3xl,
  .font-display.text-4xl,
  .font-display.text-5xl,
  .font-display.text-6xl {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  p.text-base, p.text-xl {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .whatsapp-float-btn {
    bottom: 8px !important;
    right: 10px !important;
    padding: 6px 12px 6px 10px !important;
    gap: 6px !important;
  }
  
  .whatsapp-float-btn i {
    font-size: 18px !important;
  }

  .whatsapp-pill-text span.text-\[10px\] {
    font-size: 8px !important;
  }
  .whatsapp-pill-text span.text-xs {
    font-size: 10px !important;
  }

  .mac-terminal,
  .studio-dropzone {
    padding: 0.85rem !important;
  }

  .spotlight-card {
    padding: 0.85rem !important;
  }
}


