/* ==========================================================================
   THE MONEY LIFT - Global Design System & Dark Theme CSS
   Domain: themoneylift.com | Support: support@themoneylift.com
   Palette: Rich Black, Dark Slate & Emerald/Neon Green
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color System */
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(16, 22, 34, 0.75);
  --bg-card-hover: rgba(22, 31, 48, 0.9);
  --bg-input: #121927;
  
  --primary-green: #10b981;
  --primary-hover: #059669;
  --emerald-neon: #00ff87;
  --emerald-glow: rgba(0, 255, 135, 0.25);
  --accent-light: #a7f3d0;
  --accent-dark: #064e3b;
  
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(16, 185, 129, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 135, 0.4);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-neon: 0 0 20px rgba(0, 255, 135, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 255, 135, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

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

a:hover {
  color: var(--emerald-neon);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--emerald-neon) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.25rem;
  box-shadow: var(--shadow-neon);
}

.logo span.accent {
  color: var(--emerald-neon);
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-neon);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald-neon);
  border-radius: 2px;
  box-shadow: var(--shadow-neon);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
  color: #021810;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-neon) 0%, var(--primary-green) 100%);
  color: #000;
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(16, 185, 129, 0.06);
  color: var(--text-white);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-neon);
  color: var(--emerald-neon);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.15rem 2.25rem;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--emerald-neon);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-neon);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Glass Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-fast);
}

.card-glass:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-glow);
}

.card-glass-interactive {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.card-glass-interactive:hover {
  transform: translateY(-5px);
  border-color: var(--primary-green);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
  background: var(--bg-card-hover);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-white) 30%, var(--emerald-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Loan Calculator Slider Widget */
.calc-card {
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--emerald-neon));
}

.calc-amount-display {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-amount-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calc-amount-val {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--emerald-neon);
  text-shadow: 0 0 25px rgba(0, 255, 135, 0.4);
  line-height: 1;
}

.slider-container {
  margin-bottom: 2.5rem;
}

.loan-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: #192334;
  outline: none;
  transition: opacity 0.2s;
  cursor: pointer;
  position: relative;
}

.loan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--emerald-neon);
  cursor: pointer;
  box-shadow: 0 0 15px var(--emerald-neon);
  border: 3px solid #000;
  transition: transform 0.1s ease;
}

.loan-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.calc-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(8, 12, 20, 0.7);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.calc-detail-item {
  text-align: center;
}

.calc-detail-item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.calc-detail-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.calc-detail-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
}

.calc-detail-val.highlight {
  color: var(--emerald-neon);
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-neon);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Process Steps */
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--border-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.step-num {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--emerald-neon) 100%);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neon);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-color);
  background: rgba(18, 25, 39, 0.9);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--emerald-neon);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-neon);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--emerald-neon);
  color: #000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Footer & Financial Disclaimers */
.footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--emerald-neon);
}

.footer-disclaimer-box {
  background: rgba(12, 17, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-disclaimer-box h5 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--emerald-neon);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: var(--text-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #080c14;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .calc-amount-val {
    font-size: 3rem;
  }
  
  .calc-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .calc-detail-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
