/* ========================================
   MINTBRIDGE MODERN DESIGN SYSTEM
   Complete Visual Redesign - 2025
   ======================================== */

:root {
  /* Modern Color Palette */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-modern: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   MODERN NAVIGATION
   ======================================== */

.modern-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.modern-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.logo-bridge {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-modern);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient-modern);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ========================================
   MODERN HERO SECTION
   ======================================== */

.modern-hero {
  position: relative;
  padding: 8rem 2rem;
  background: var(--gradient-modern);
  color: white;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.modern-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: white;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-3px);
}

/* ========================================
   MODERN STATS SECTION
   ======================================== */

.modern-stats {
  background: white;
  padding: 4rem 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-modern);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========================================
   MODERN FEATURE CARDS
   ======================================== */

.modern-features {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-modern);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-modern);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-modern);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========================================
   MODERN BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* btn-sm moved to smart compact buttons section */

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

/* ========================================
   COMPACT MODERN CARDS
   ======================================== */

.feature-card-compact {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
  overflow: hidden;
}

.feature-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon-compact {
  width: 48px;
  height: 48px;
  background: var(--gradient-modern);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.feature-icon-compact svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* ========================================
   SMART COMPACT BUTTONS
   ======================================== */

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  line-height: 1.2;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-primary.btn-sm {
  background: var(--gradient-modern);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary.btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary.btn-sm {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-sm);
}

.btn-secondary.btn-sm:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  transition: transform 0.3s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block !important;
}

.mobile-menu-toggle[aria-expanded="false"] .menu-icon-open {
  display: block;
}

.mobile-menu-toggle[aria-expanded="false"] .menu-icon-close {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-logo {
    font-size: 1.375rem;
    min-width: fit-content;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
  }

  .nav-logo-text {
    font-size: 1.375rem !important;
    font-weight: 900;
    letter-spacing: -0.01em;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--primary) !important;
  }

  .logo-bridge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .logo-bridge {
    font-weight: 900;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .modern-hero {
    min-height: 50vh !important;
    padding: 2rem 1rem !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-cta-group {
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }

  .hero-cta-group .btn-sm {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  .modern-hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .modern-stats {
    margin-top: -2rem;
    padding: 2rem 1rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .feature-card-compact {
    padding: 1.25rem;
  }

  .feature-icon-compact {
    width: 40px;
    height: 40px;
  }

  .feature-icon-compact svg {
    width: 20px;
    height: 20px;
  }

  .btn-sm {
    padding: 0.4375rem 1rem;
    font-size: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.625rem 0.75rem;
  }

  .nav-logo {
    font-size: 1.25rem;
    min-width: fit-content;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
  }

  .nav-logo-text {
    font-size: 1.25rem !important;
    font-weight: 900;
    letter-spacing: -0.01em;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--primary) !important;
  }

  .logo-bridge {
    font-weight: 900;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-container {
    gap: 0.75rem;
  }

  .mobile-menu-toggle {
    margin-left: auto;
  }

  .modern-hero {
    min-height: 45vh !important;
    padding: 1.5rem 0.75rem !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.9375rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem !important;
  }

  .hero-cta-group .btn-sm {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.8125rem !important;
  }

  .modern-stats {
    padding: 1.5rem 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .feature-card-compact {
    padding: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Logo should always be visible */
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */

.mb-footer,
footer.bg-gray-900 {
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .mb-footer,
  footer.bg-gray-900 {
    padding: 1.5rem 0.75rem;
    font-size: 0.75rem;
  }

  footer.bg-gray-900 .max-w-7xl {
    padding: 0;
  }

  footer.bg-gray-900 .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  footer.bg-gray-900 h3,
  footer.bg-gray-900 h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  footer.bg-gray-900 ul {
    font-size: 0.75rem;
  }

  footer.bg-gray-900 .border-t {
    padding-top: 1rem;
  }

  footer.bg-gray-900 .flex.flex-col {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mb-footer,
  footer.bg-gray-900 {
    padding: 1rem 0.5rem;
    font-size: 0.6875rem;
  }

  footer.bg-gray-900 .grid {
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-modern);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-modern { box-shadow: var(--shadow-xl); }
.rounded-modern { border-radius: var(--radius-xl); }




