/* ============================================
   CRACKTRADERS - GLOBAL STYLES & DESIGN SYSTEM
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES - DARK THEME COLOR PALETTE
   ============================================ */
:root {
  /* â”€â”€ LIGHT THEME PALETTE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --bg-main: #F9FAFB;
  --bg-surface: #FFFFFF;
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --accent: #6366F1;
  --accent-dark: #4F46E5;
  --text-main: #111827;
  --text-sub: #4B5563;
  --border-soft: #E5E7EB;
  --glow-blue: rgba(139, 92, 246, 0.2);
  --glow-pink: rgba(99, 102, 241, 0.2);

  /* â”€â”€ LEGACY ALIASES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --primary-cyan: #8B5CF6;
  --primary-purple: #6366F1;
  --primary-pink: #6366F1;
  --primary-blue: #7C3AED;
  --bg-dark: #F3F4F6;
  --bg-darker: #E5E7EB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9FAFB;

  /* â”€â”€ TEXT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  /* â”€â”€ STATUS COLORS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --accent-success: #16A34A;
  --accent-warning: #D97706;
  --accent-error: #DC2626;

  /* â”€â”€ GRADIENTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  --gradient-mixed: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);

  /* â”€â”€ SHADOWS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --glow-cyan: 0 0 20px rgba(139, 92, 246, 0.18);
  --glow-purple: 0 0 20px rgba(99, 102, 241, 0.18);

  /* â”€â”€ SPACING â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* â”€â”€ RADII â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* â”€â”€ TRANSITIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* â”€â”€ Z-INDEX â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  --z-header: 1000;
  --z-popup: 2000;
  --z-modal: 3000;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background â€” clean light pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 75%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 900px;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.glass-strong {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.35); transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #E5E7EB;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #E5E7EB;
  color: #374151;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
}

/* Glow Effect */
.glow {
  position: relative;
}

.glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  filter: blur(20px);
}

.glow:hover::before {
  opacity: 1;
}

/* Cards */
.card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
}

.card:hover {
  background: rgba(17, 24, 39, 0.92);
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12), 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* Spacing Utilities */
.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mt-2xl {
  margin-top: var(--spacing-2xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}

.pt-sm {
  padding-top: var(--spacing-sm);
}

.pt-md {
  padding-top: var(--spacing-md);
}

.pt-lg {
  padding-top: var(--spacing-lg);
}

.pt-xl {
  padding-top: var(--spacing-xl);
}

.pt-2xl {
  padding-top: var(--spacing-2xl);
}

.pb-sm {
  padding-bottom: var(--spacing-sm);
}

.pb-md {
  padding-bottom: var(--spacing-md);
}

.pb-lg {
  padding-bottom: var(--spacing-lg);
}

.pb-xl {
  padding-bottom: var(--spacing-xl);
}

.pb-2xl {
  padding-bottom: var(--spacing-2xl);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Section Spacing */
section {
  padding: var(--spacing-2xl) 0;
}

/* Form Elements */
input,
textarea,
select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(17, 24, 39, 0.95);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  section {
    padding: var(--spacing-xl) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* ================================================
   LIGHT THEME GLOBAL OVERRIDES
   ================================================ */

/* Inputs & Textareas */
input, select, textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: var(--radius-md);
}
input:focus, select:focus, textarea:focus {
  border-color: #8B5CF6 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
input::placeholder, textarea::placeholder { color: #4B5563; }

/* All card-like surfaces */
.card, .feature-card, .plan-card, .pricing-card,
.result-card, .profile-card, .blog-card {
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
.card:hover, .feature-card:hover, .plan-card:hover,
.result-card:hover, .profile-card:hover {
  box-shadow: 0 8px 30px rgba(59,130,246,0.12) !important;
  transform: translateY(-3px);
}

/* Sections with dark backgrounds */
section { background: transparent; }

/* Result value — use dark ink instead of white gradient */
.result-value {
  background: linear-gradient(135deg, #1e40af 0%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Hero section text */
.hero-title, .section-title, h1, h2, h3, h4 {
  color: #111827;
}
.hero-subtitle, .section-subtitle, .hero-description {
  color: #6B7280 !important;
}

/* Gradient text stays vibrant */
.gradient-text {
  background: linear-gradient(90deg, #8B5CF6, #6366F1) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Tables */
table { background: #ffffff; }
th { background: #F3F4F6; color: #374151; }
td { color: #374151; border-color: #E5E7EB; }

/* Scrollbar (light) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F9FAFB; }
::-webkit-scrollbar-thumb { background: #9CA3AF; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4B5563; }

/* ================================================
   CONTRAST BOOST — ensure text is always readable
   on white backgrounds
   ================================================ */
p                          { color: #4B5563; }
li                         { color: #374151; }
label                      { color: #374151; font-weight: 500; }
.plan-features li          { color: #374151 !important; }
.plan-name                 { color: #0f172a !important; }
.plan-description          { color: #4B5563 !important; }
.plan-price span           { color: #6B7280 !important; }
.pricing-card h3           { color: #0f172a; }

/* Popup text readability */
.popup-content h4          { color: #0f172a !important; font-size: 1rem; font-weight: 700; }
.popup-content p           { color: #4B5563 !important; }
.popup-close               { color: #4B5563; }
.popup-close:hover         { color: #111827; }

/* Nav links */
.nav-links a               { color: #374151 !important; font-weight: 500; }
.nav-links a:hover         { color: #8B5CF6 !important; }
.nav-links a.active        { color: #8B5CF6 !important; }

/* Feature/blog/card bodies */
.feature-card p, .blog-card p,
.card p, .info-card p      { color: #4B5563; }
.feature-card h3, .blog-card h3,
.card h3                   { color: #0f172a; }
