/* ==========================================================================
   AJ DIGITAL - HIGH-PERFORMANCE EXECUTIVE WHITE DESIGN SYSTEM
   Focus: SEO, AEO, GEO, Performance Marketing, High-ROI Ads
   Clean, Crisp, Ultra-Fast (<50ms), Pixel-Perfect Alignment & Impeccable Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;900&display=swap');

:root {
  /* Crisp White Palette */
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-surface: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.94);
  --bg-modal: #FFFFFF;

  /* Typography */
  --text-heading: #0F172A;
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-accent: #2563EB;

  /* Borders & Dividers */
  --border-card: #E2E8F0;
  --border-card-hover: #3B82F6;
  --border-divider: #E2E8F0;

  /* Shadows */
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --card-shadow-hover: 0 16px 36px -4px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.5);

  /* Brand Accents */
  --blue-primary: #2563EB;
  --cyan-neon: #00F0FF;
  --emerald-live: #10B981;
  --indigo-accent: #4F46E5;
  --brand-gradient: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #2563EB 100%);

  /* Form Controls */
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
  --input-focus: #2563EB;
  --input-text: #0F172A;
  --input-placeholder: #94A3B8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono-tech {
  font-family: 'Space Grotesk', monospace, sans-serif;
}

/* ==========================================================================
   CRITICAL BRANDING: Text-Only Typography (NO Graphic Logo)
   Clean sleek text-only typography with electric neon glowing accent dot
   ========================================================================== */
.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  position: relative;
  font-weight: 900;
}

.brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--cyan-neon);
  border-radius: 50%;
  margin-left: 5px;
  box-shadow: 0 0 8px var(--cyan-neon), 0 0 16px rgba(0, 240, 255, 0.6);
  animation: neonPulse 2s infinite ease-in-out;
}

@keyframes neonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--cyan-neon), 0 0 12px rgba(0, 240, 255, 0.4);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--cyan-neon), 0 0 20px rgba(0, 240, 255, 0.8);
  }
}

/* ==========================================================================
   CARDS & CONTAINERS - PIXEL PERFECT ALIGNMENT
   ========================================================================== */
.white-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--card-shadow);
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.white-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

/* Top Subtle Clean Geometric Grid (Lightweight, pure CSS, Zero CPU Lag) */
.light-grid-pattern {
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 70%),
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-position: center center;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-blue-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-blue-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-white-secondary {
  background: #FFFFFF;
  color: #0F172A !important;
  border: 1px solid #CBD5E1;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.btn-white-secondary:hover {
  background: #F8FAFC;
  border-color: #2563EB;
  color: #2563EB !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input::placeholder {
  color: var(--input-placeholder);
}

/* Range Sliders */
input[type=range] {
  -webkit-appearance: none;
  background: #E2E8F0;
  border-radius: 6px;
  height: 6px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Dynamic Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  background-color: #2563EB;
  vertical-align: middle;
  margin-left: 4px;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   MODALS & TOAST NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2);
  transform: scale(0.97) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content-box {
  transform: scale(1) translateY(0);
}

#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: slideToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 400px;
}

@keyframes slideToastIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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