* {
  box-sizing: border-box;
}
:root {
  /* Primary Colors - Modern & Trustworthy */
  --primary: #1b4332;
  --primary-dark: #2D6A4F;
  --primary-light: #F0f4f2;
  --primary-ultralight: #EEF2FF;
  
  /* Secondary Colors - Growth & Optimism */
  --secondary: #C5A059;
  --secondary-dark: #A68546;
  --secondary-light: #FCD34D;
  
  /* Semantic Colors */
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --error: #DC2626;
  --error-light: #FEE2E2;
  
  /* Neutral Palette - Warm Grays 
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --gray-900: #1C1917; */

  --ink: #141616;
    --paper: #FDFCFB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAF9;
  --bg-tertiary: #F5F5F4;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Text Colors */
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-tertiary: #78716C;
  --text-inverse: #FFFFFF;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  /* Spacing Scale (8px base) */
    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
    --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  
  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui , sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /*Animation */
  --transition: all 0.3s cubic-bexier(0.4, 0, 0.2, 1);
  --radius: 12px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ================== RESET & BASE STYLES ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/*body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}*/

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-600);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--ink);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ================== LAYOUT CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1024px;
}

section {
  padding: var(--space-4xl) 0;
}

/* ================== HEADER / NAVIGATION ================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-base);
}

.app-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: transform var(--transition-base);
}

.brand:hover {
  transform: scale(1.02);
}

.tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
  margin-left: var(--space-md);
}

.main-nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-link {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ================== HERO SECTION ================== */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--primary-ultralight) 0%, var(--bg-primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--leading-relaxed);
}

/* ================== TRUST BAR ================== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.trust-bar .stat {
  text-align: center;
}

.trust-bar .number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  font-family: var(--font-mono);
}

.trust-bar .label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* ================== CARDS ================== */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  border: 2px solid var(--gray-200);
  transition: all var(--transition-slow);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 100%;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.tool-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  display: block;
}

.tool-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  flex-grow: 1 1 ;
  margin-bottom: 0;
  ;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}


/* ================== FORMS ================== */
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ultralight);
  background: white;
}

.form-control::placeholder {
  color: var(--gray-400);
}

/* ================== SECTIONS ================== */
.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tools {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
}

/* ================== DISCLAIMER STRIP ================== */
.disclaimer-strip {
  background: linear-gradient(135deg, var(--primary-ultralight) 0%, var(--info-light) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-2xl) 0;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.disclaimer-title {
  font-weight: var(--font-bold);
  color: var(--primary-dark);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclaimer-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* ================== VALUE DISPLAY ================== */
.value-text {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-md);
}

.card-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

/* ================== FOOTER ================== */
.app-footer {
  background: var(--gray-900);
  color: white;
  padding: var(--s-24) 0 var(--s-12);
  text-align: center;
  margin-top: var(--space-4xl);
  border-top: 1px solid var(--gray-800);
}

.app-footer .brand {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  font-weight: var(--font-bold);
}

.app-footer a {
  color: var(--gray-400);
  transition: color var(--transition-base);
}

.app-footer a:hover {
  color: var(--primary-light);
}

.disclaimer {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-800);
}

/* ================== UTILITIES ================== */
.text-muted {
  color: var(--text-secondary) !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-20 { margin-top: var(--s-24); }
.mb-10 { margin-bottom: var(--s-12); }
.text-center { text-align: center; }
.full-width { width: 100%; }

.accent-text {
  color: var(--primary);
}



/* ================== ANIMATIONS ================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* ================== LOADING STATES ================== */
.spinner-border {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--gray-300);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
  }
  
  .header-inner {
    padding: var(--space-md) var(--space-lg);
  }
  
  .tagline {
    display: none;
  }
  
  .main-nav {
    gap: var(--space-md);
  }
  
  .nav-link {
    font-size: var(--text-sm);
  }
  
  .hero {
    padding: var(--space-3xl) 0;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .hero-subtext {
    font-size: var(--text-base);
  }
  
  .trust-bar {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .tool-card {
    padding: var(--space-xl);
  }
  
  .container {
    padding: 0 var(--space-md);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }
}

/* ================== ACCESSIBILITY ================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================== PRINT STYLES ================== */
@media print {
  .app-header,
  .app-footer,
  .btn,
  nav {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

.lesson-wrapper, .container {
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px;
}

.trust-ecosystem {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.trust-container {
    max-width: 1100px;
    margin: 0 auto;
}

.trust-container h2 {
    font-size: 1.6rem;
    color: #1e293b; /* Slightly darker for better readability */
    margin-bottom: 50px;
    font-weight: 600;
}

.logo-grid {
    display: grid;
    /* Keeps a balanced 5-column grid on desktop */
    grid-template-columns: repeat(5, 1fr); 
    gap: 40px;
    align-items: center;
}

.logo-box {
    height: 60px; /* Fixed height forces uniformity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    /* Secret sauce: prevents stretching while keeping logos proportional */
    object-fit: contain; 
    transition: transform 0.3s ease;
}

/* Adds a professional "pop" effect when users hover */
.logo-box img:hover {
    transform: scale(1.1);
}

.and-more {
    margin-top: 30px;
    color: #64748b;
    font-weight: 500;
}

.nj-disclaimer {
    margin-top: 60px;
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive: Swaps to 2 columns on mobile for better spacing */
@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .logo-box {
        height: 50px; /* Slightly smaller on mobile */
    }
}

