/* 
 * Veteran Property Network - Premium Homepage Design System
 * Ultra-modern animations, glassmorphism, and WOW effects
 * Version 2.0 - Premium Landing Experience
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES - PREMIUM THEME
   ============================================================================ */
:root {
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
  --gradient-hero-alt: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, hsla(228, 100%, 74%, 0.3) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.2) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsla(355, 85%, 93%, 0.3) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.2) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 0.3) 0px, transparent 50%),
                   radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.2) 0px, transparent 50%),
                   radial-gradient(at 0% 0%, hsla(343, 100%, 76%, 0.2) 0px, transparent 50%);
  
  /* Animation Timings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  
  /* Premium Shadows */
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.4), 0 0 80px rgba(59, 130, 246, 0.2);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
  --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  --shadow-elevation: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   PREMIUM HERO SECTION
   ============================================================================ */
.premium-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #0061ff 70%, #00c6ff 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated Grid Pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center top;
  opacity: 0.5;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 24s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 21s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 23s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 17s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 25s; }
.particle:nth-child(10) { left: 5%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(11) { left: 15%; animation-delay: 3s; animation-duration: 22s; }
.particle:nth-child(12) { left: 25%; animation-delay: 5s; animation-duration: 18s; }
.particle:nth-child(13) { left: 35%; animation-delay: 7s; animation-duration: 24s; }
.particle:nth-child(14) { left: 45%; animation-delay: 9s; animation-duration: 19s; }
.particle:nth-child(15) { left: 55%; animation-delay: 11s; animation-duration: 21s; }
.particle:nth-child(16) { left: 65%; animation-delay: 13s; animation-duration: 23s; }
.particle:nth-child(17) { left: 75%; animation-delay: 15s; animation-duration: 17s; }
.particle:nth-child(18) { left: 85%; animation-delay: 17s; animation-duration: 25s; }
.particle:nth-child(19) { left: 95%; animation-delay: 19s; animation-duration: 20s; }
.particle:nth-child(20) { left: 50%; animation-delay: 0s; animation-duration: 26s; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Glowing Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(96, 239, 255, 0.3);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.3);
  bottom: -50px;
  left: -50px;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(251, 146, 60, 0.3);
  top: 50%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 10px) scale(1.05); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, #60efff 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

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

/* Premium Search Bar */
.hero-search-container {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.premium-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 100px rgba(96, 239, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s var(--ease-out-expo);
}

.premium-search-bar:focus-within {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 120px rgba(96, 239, 255, 0.3);
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.search-input-wrapper i {
  color: #6b7280;
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  color: #1f2937;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #9ca3af;
}

.search-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #006AFF 0%, #0052CC 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0, 106, 255, 0.4);
}

.search-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 106, 255, 0.5);
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
  animation-delay: 1s;
  opacity: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
}

.cta-btn-primary {
  background: white;
  color: #006AFF;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

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

.cta-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.cta-btn-success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
  animation-delay: 2s, 2s;
  opacity: 0;
}

.scroll-indicator-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  position: relative;
}

.scroll-indicator-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s var(--ease-out-expo);
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ============================================================================
   PREMIUM STATS SECTION
   ============================================================================ */
.premium-stats-section {
  background: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.premium-stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 239, 255, 0.1) 0%, transparent 70%);
  animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 50px); }
}

.premium-stat-card {
  text-align: center;
  padding: 2rem;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

.premium-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
  border-radius: 100px;
}

.premium-stat-card:hover::after {
  width: 60px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Animated Counter */
.counter-animate {
  display: inline-block;
}

/* ============================================================================
   PREMIUM FEATURE CARDS
   ============================================================================ */
.premium-section {
  padding: 6rem 0;
  position: relative;
}

.premium-section-light {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.premium-section-gradient {
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 50%, #ede9fe 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 100px;
  color: #10b981;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
}

/* 3D Tilt Card Effect */
.premium-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

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

.premium-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  transition: all 0.4s var(--ease-out-expo);
}

.premium-card:hover .premium-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.icon-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.icon-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.icon-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
}

.icon-orange {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #ea580c;
}

.icon-pink {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #db2777;
}

.icon-teal {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  color: #0d9488;
}

.premium-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.premium-card-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ============================================================================
   ASSUMABLE LOANS SPOTLIGHT SECTION
   ============================================================================ */
.loans-spotlight {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #e0f2fe 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.loans-spotlight::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite;
}

.loans-spotlight::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  animation: floatOrb 25s ease-in-out infinite reverse;
}

.loan-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.5s var(--ease-out-expo);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.loan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, #10b981);
}

.loan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.loan-card-green { --card-accent: #10b981; }
.loan-card-blue { --card-accent: #3b82f6; }
.loan-card-purple { --card-accent: #8b5cf6; }

.loan-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  transition: all 0.4s var(--ease-out-expo);
}

.loan-card:hover .loan-icon {
  transform: scale(1.1) rotate(-3deg);
}

.loan-icon-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
}

.loan-icon-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.loan-icon-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
}

.loan-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
}

.loan-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  flex-grow: 1;
}

.loan-highlight-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  margin-top: auto;
}

.loan-highlight-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.loan-highlight-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.2;
}

/* Savings Calculator Card */
.savings-calculator-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.savings-calculator-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.savings-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.savings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.savings-row-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
}

.savings-row-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #10b981;
}

.savings-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.savings-value {
  font-size: 1.375rem;
  font-weight: 800;
  white-space: nowrap;
}

.savings-value-red { color: #dc2626; }
.savings-value-green { color: #059669; }

.savings-result {
  background: linear-gradient(135deg, #006AFF 0%, #0052CC 100%);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  color: white;
}

.savings-result-label {
  font-size: 0.8125rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.savings-result-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.savings-result-sub {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 0.375rem;
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */
.how-it-works-section {
  background: white;
  padding: 6rem 0;
}

/* Clean Horizontal Step Card Layout */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.step-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Step Number Badge - inline positioned */
.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Step Icon - inline after number */
.step-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  color: #3b82f6;
  font-size: 1.125rem;
}

/* Step Content Area */
.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.step-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Vertical connector between cards */
.step-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
}

.step-cards-container::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  z-index: 0;
  border-radius: 2px;
}

.step-card {
  position: relative;
  z-index: 1;
  background: white;
}

/* Responsive adjustments for step cards */
@media (max-width: 768px) {
  .step-card {
    padding: 1.25rem;
    gap: 0.875rem;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-title {
    font-size: 0.9375rem;
  }
  
  .step-description {
    font-size: 0.8125rem;
  }
  
  .step-cards-container::before {
    left: 15px;
  }
}

/* ============================================================================
   PREMIUM CTA SECTION
   ============================================================================ */
.premium-cta-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 50%, #fce7f3 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.premium-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
}

.premium-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.premium-cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
}

.premium-cta-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

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

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #006AFF 0%, #0052CC 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 30px rgba(0, 106, 255, 0.3);
  text-decoration: none;
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 106, 255, 0.4);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: white;
  color: #006AFF;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid #006AFF;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background: #006AFF;
  color: white;
  transform: translateY(-3px);
}

/* ============================================================================
   PREMIUM FOOTER
   ============================================================================ */
.premium-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-description {
  color: #94a3b8;
  max-width: 300px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #006AFF;
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: #64748b;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 768px) {
  .premium-hero {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .premium-search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
  }
  
  .search-btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .premium-stat-card {
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .steps-connector::before {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================================
   UTILITY ANIMATIONS
   ============================================================================ */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-pulse-soft {
  animation: pulseSoft 3s ease-in-out infinite;
}

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

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glass effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
