/* Enhanced Financial UX - MoneyChoice Capital */

:root {
  /* Professional Financial Color Palette */
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #0ea5e9;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Neutral Colors */
  --light-color: #f8fafc;
  --dark-color: #0f172a;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --gray-color: #94a3b8;
  --light-gray: #e2e8f0;
  --border-color: #cbd5e1;
  
  /* Enhanced Shadows & Effects */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  --gradient-warning: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Enhanced Typography */
* {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 400;
}

/* Enhanced Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.header .logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.header .logo i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.header .logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

/* Enhanced Hero Section */
.supply-hero {
  background: var(--gradient-primary);
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.supply-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Enhanced Hero Metrics */
.hero-metrics {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: var(--box-shadow-xl);
}

.hero-metrics h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-metrics .punchline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 0;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg), var(--glow-shadow);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* Enhanced Financial Metrics */
.financial-metrics {
  margin: 4rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.financial-metric {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.financial-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.financial-metric:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.metric-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto;
}

.metric-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.metric-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

/* Enhanced Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Enhanced Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-shadow);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Enhanced Sections */
.key-features {
  padding: 6rem 0;
  background: white;
}

.challenges-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.algorithms-section {
  padding: 6rem 0;
  background: white;
}

.manipulation-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.history-section {
  padding: 6rem 0;
  background: white;
}

.recognition-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.ahf-section {
  padding: 6rem 0;
  background: white;
}

/* Enhanced Algorithm Cards */
.algorithms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.algorithm-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.algorithm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-success);
  transform: scaleX(0);
  transition: var(--transition);
}

.algorithm-card:hover::before {
  transform: scaleX(1);
}

.algorithm-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.algorithm-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-success);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  transition: var(--transition);
}

.algorithm-card:hover .algorithm-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-shadow);
}

.algorithm-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.algorithm-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Enhanced Content Blocks */
.content-block {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.content-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.manipulation-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.manipulation-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Enhanced Demand Cards */
.demand-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.demand-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.demand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.demand-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.demand-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.demand-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Enhanced Reports Section */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.report-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.report-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.report-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Standardized Report Cards */
.report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.report-card h4 {
  margin: 0.25rem 0 0.25rem 0;
}

.report-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--box-shadow);
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.report-tag {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.report-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.report-actions {
  margin-top: auto;
  width: 100%;
}

.report-btn {
  width: 100%;
  justify-content: center;
}

.report-card:hover .report-icon {
  box-shadow: var(--box-shadow-lg);
}

/* Enhanced Recognition List */
.recognition-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.recognition-list li {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.recognition-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow-lg);
}

.recognition-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.recognition-list a:hover {
  color: var(--primary-dark);
}

/* Enhanced AHF Section */
.ahf-content {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  text-align: center;
}

.ahf-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.ahf-link {
  margin: 2rem 0;
}

.ahf-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.ahf-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Enhanced Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-metrics h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .algorithms-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .demand-types {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .content-block {
    padding: 2rem;
  }
  
  .ahf-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-metrics h2 {
    font-size: 1.75rem;
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.financial-metric:hover .metric-value {
  animation: pulse 1s ease-in-out;
}

/* Enhanced Scroll Animations */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Loading States */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced History Section with Timeline */
.history-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 6rem 0;
  position: relative;
}

.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

/* Timeline Container */
.history-timeline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Timeline Header */
.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-badge {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: var(--box-shadow-xl);
  position: relative;
}

.timeline-badge::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.timeline-badge i {
  font-size: 2rem;
  color: white;
}

.timeline-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 1px;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition-slow);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline Markers */
.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 4px solid white;
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.marker-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.marker-dot.success {
  background: var(--success-color);
  transform: scale(1.2);
}

.marker-dot.milestone {
  background: var(--warning-color);
  transform: scale(1.2);
}

.marker-dot.predictive {
  background: var(--accent-color);
  transform: scale(1.2);
}

.marker-dot.peak {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.marker-dot.current {
  background: var(--gradient-primary);
  transform: scale(1.2);
}

.marker-dot.app {
  background: var(--success-color);
  transform: scale(1.2);
}

.marker-dot.security {
  background: var(--warning-color);
  transform: scale(1.2);
}

.marker-dot.foundation {
  background: var(--accent-color);
  transform: scale(1.2);
}

.marker-dot.pause {
  background: var(--gray-color);
  transform: scale(1.2);
}

.marker-dot.restart {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.marker-line {
  width: 2px;
  height: 4rem;
  background: var(--light-gray);
  margin-top: 0.5rem;
}

.timeline-item:last-child .marker-line {
  display: none;
}

/* Timeline Content */
.timeline-content {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
  border-left-color: var(--accent-color);
}

.timeline-date {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Timeline Highlights */
.timeline-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  font-weight: 500;
  color: var(--text-color);
}

.timeline-highlight.success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success-color);
  color: var(--success-color);
}

.timeline-highlight.milestone {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning-color);
  color: var(--warning-color);
}

.timeline-highlight.predictive {
  background: rgba(14, 165, 233, 0.1);
  border-left-color: var(--accent-color);
  color: var(--accent-color);
}

.timeline-highlight.peak {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--secondary-color);
  color: var(--secondary-color);
}

.timeline-highlight.current {
  background: rgba(30, 64, 175, 0.1);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.timeline-highlight.app {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success-color);
  color: var(--success-color);
}

.timeline-highlight.security {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning-color);
  color: var(--warning-color);
}

.timeline-highlight.foundation {
  background: rgba(6, 182, 212, 0.1);
  border-left-color: var(--accent-color);
  color: var(--accent-color);
}

.timeline-highlight.pause {
  background: rgba(148, 163, 184, 0.1);
  border-left-color: var(--gray-color);
  color: var(--gray-color);
}

.timeline-highlight.restart {
  background: rgba(14, 165, 233, 0.1);
  border-left-color: var(--secondary-color);
  color: var(--secondary-color);
}

.timeline-highlight i {
  font-size: 1.25rem;
}

/* Insights Section */
.history-insights {
  margin-top: 5rem;
  padding: 3rem 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.insight-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.insight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.insight-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--box-shadow);
}

.insight-icon i {
  font-size: 1.5rem;
  color: white;
}

.insight-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.insight-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Call to Action */
.history-cta {
  margin-top: 5rem;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--gradient-glass);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
}

.cta-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons .btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--box-shadow);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

.cta-buttons .btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-buttons .btn-primary:hover::before {
  left: 100%;
}

/* Enhanced Button Styling */
.enhanced-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  min-width: 200px;
  margin: 0 10px;
  text-decoration: none;
  display: inline-block;
}

.enhanced-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.enhanced-btn .btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 2;
}

.enhanced-btn .btn-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.enhanced-btn:hover .btn-icon {
  transform: scale(1.1);
}

.enhanced-btn .btn-text {
  flex: 1;
  text-align: left;
}

.enhanced-btn .btn-main-text {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.enhanced-btn .btn-sub-text {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 400;
}

.enhanced-btn .btn-arrow {
  font-size: 0.9rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.enhanced-btn:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Primary button specific styling */
.enhanced-btn.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  animation: pulse-glow 2s infinite;
}

.enhanced-btn.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* Outline button specific styling */
.enhanced-btn.btn-outline {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.enhanced-btn.btn-outline:hover {
  background: #3b82f6;
  color: white;
}

/* Desktop notice styling */
.desktop-notice {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Market Vision button special styling */
.cta-buttons .btn-primary {
  animation: pulse-glow 2s infinite;
  flex-direction: column;
  text-align: center;
  min-height: auto;
  padding: 1rem 1.5rem;
}

.cta-buttons .btn-primary span {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
  margin-top: 0.25rem;
  line-height: 1.2;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--box-shadow), 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: var(--box-shadow), 0 0 20px rgba(59, 130, 246, 0.6);
  }
}

.cta-buttons .btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-buttons .btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 2rem;
  }
  
  .timeline-container::before {
    left: 1rem;
  }
  
  .timeline-marker {
    left: -2rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .timeline-header h3 {
    font-size: 2rem;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .insight-card {
    padding: 2rem;
  }
  
  .cta-content h3 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .cta-buttons .btn-primary {
    flex-direction: column;
    padding: 1rem;
  }
  
  .cta-buttons .btn-primary span {
    font-size: 0.7rem;
  }
  
  /* Mobile responsive styles for enhanced buttons */
  .enhanced-btn {
    min-width: auto;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
  }
  
  .enhanced-btn .btn-content {
    padding: 0.8rem 1rem;
  }
  
  .enhanced-btn .btn-main-text {
    font-size: 1rem;
  }
  
  .enhanced-btn .btn-sub-text {
    font-size: 0.75rem;
  }
  
  .desktop-notice {
    font-size: 0.8rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .timeline-container {
    padding-left: 1.5rem;
  }
  
  .timeline-container::before {
    left: 0.75rem;
  }
  
  .timeline-marker {
    left: -1.5rem;
  }
  
  .marker-dot {
    width: 16px;
    height: 16px;
  }
  
  .timeline-content {
    padding: 1.25rem;
  }
  
  .timeline-header h3 {
    font-size: 1.75rem;
  }
  
  .timeline-content h4 {
    font-size: 1.25rem;
  }
  
  .cta-content h3 {
    font-size: 1.75rem;
  }
  
  .cta-content p {
    font-size: 1.125rem;
  }
}

/* Animation for timeline items */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item.animate {
  animation: slideInLeft 0.8s ease-out forwards;
}

/* Enhanced hover effects */
.timeline-item:hover .marker-dot {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.timeline-highlight:hover {
  transform: translateX(8px);
  box-shadow: var(--box-shadow);
}

.insight-card:hover .insight-icon {
  transform: rotate(5deg) scale(1.1);
}

/* Enhanced hover states */
.timeline-content.hovered {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-xl);
  border-left-color: var(--accent-color);
}

/* Loading animations for insight cards */
.insight-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.insight-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced timeline item animations */
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item.animate {
  animation: slideInLeft 0.8s ease-out forwards;
}

/* Pulse animation for timeline badge */
@keyframes timelinePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.timeline-badge::before {
  animation: timelinePulse 3s ease-in-out infinite;
}

/* Enhanced marker dot animations */
.marker-dot {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .marker-dot {
  transform: scale(1.4);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

/* Gradient text animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.timeline-header h3,
.cta-content h3 {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Enhanced button hover effects */
.cta-buttons .btn {
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-buttons .btn:hover::before {
  left: 100%;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .timeline-item.animate {
    animation: slideInLeft 0.6s ease-out forwards;
  }
  
  .insight-card.loaded {
    animation: fadeInUp 0.5s ease-out forwards;
  }
}

/* Enhanced Algorithm Process Section */
.algorithm-process-section {
  margin-top: 4rem;
  padding: 3rem 0;
}

/* Process Header */
.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: var(--box-shadow-xl);
  position: relative;
}

.process-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.process-icon i {
  font-size: 2rem;
  color: white;
}

.process-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.process-step {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: white;
  transition: var(--transition);
}

.process-step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-shadow);
}

.process-step h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-metric {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  border-left: 4px solid var(--success-color);
}

.metric-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Multi-Angle Analysis */
.multi-angle-analysis {
  margin: 4rem 0;
  text-align: center;
}

.multi-angle-analysis h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.multi-angle-analysis > p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.angle-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.angle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-warning);
  transform: scaleX(0);
  transition: var(--transition);
}

.angle-card:hover::before {
  transform: scaleX(1);
}

.angle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.angle-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  position: relative;
}

.angle-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: var(--gradient-warning);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s infinite;
}

.angle-card:hover .angle-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-shadow);
}

.angle-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.angle-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.angle-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--warning-color);
  font-weight: 500;
  color: var(--warning-color);
}

.angle-highlight i {
  font-size: 1.25rem;
}

/* Validation Process */
.validation-process {
  margin: 4rem 0;
  text-align: center;
}

.validation-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.validation-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.validation-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.validation-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 768px) {
  .validation-timeline::before {
    display: none;
  }
}

.validation-step {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.validation-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.validation-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
  transition: var(--transition);
}

.validation-step:hover .validation-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-shadow);
}

.validation-step h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.validation-step p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Responsive Design for Algorithm Process */
@media (max-width: 768px) {
  .process-header h3,
  .multi-angle-analysis h3,
  .validation-header h3 {
    font-size: 2rem;
  }
  
  .process-steps,
  .angle-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .validation-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-step,
  .angle-card,
  .validation-step {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .process-header h3,
  .multi-angle-analysis h3,
  .validation-header h3 {
    font-size: 1.75rem;
  }
  
  .process-header p,
  .multi-angle-analysis > p,
  .validation-header p {
    font-size: 1.125rem;
  }
  
  .step-icon,
  .angle-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .validation-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Animation for algorithm process */
@keyframes processPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

.process-icon::before,
.angle-icon::before {
  animation: processPulse 3s ease-in-out infinite;
}

/* Staggered animation for process steps */
.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced hover effects */
.process-step:hover .step-metric {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.angle-card:hover .angle-highlight {
  transform: translateX(5px);
  box-shadow: var(--box-shadow);
}

.validation-step:hover .validation-icon {
  animation: pulse 1s ease-in-out;
}

/* ===== ENHANCED SUCCESS STORY CARD ===== */
.success-story-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--box-shadow-xl);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.success-story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-success);
  z-index: 1;
}

.success-story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Story Header */
.story-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.story-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.story-title h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.story-date {
  display: inline-block;
  background: var(--light-gray);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Story Content */
.story-content {
  display: grid;
  gap: 2rem;
}

/* Highlight Boxes */
.story-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.highlight-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.highlight-box:hover::before {
  left: 100%;
}

.highlight-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.3);
}

.highlight-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Story Description */
.story-description {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--success-color);
}

.story-description p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.story-description p:last-child {
  margin-bottom: 0;
}

.story-conclusion {
  font-weight: 600;
  color: var(--dark-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--success-color);
}

/* Timeline */
.story-timeline {
  margin: 2rem 0;
  position: relative;
  padding-left: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--success-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--success-color);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 3px solid var(--primary-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow-lg);
}

.timeline-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Framework Section */
.framework-section {
  margin-top: 3rem;
}

.framework-section h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
}

.framework-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive Design for Success Story */
@media (max-width: 768px) {
  .success-story-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .story-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .story-title h3 {
    font-size: 1.5rem;
  }
  
  .story-highlight {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .highlight-box {
    padding: 1.25rem;
  }
  
  .highlight-number {
    font-size: 2rem;
  }
  
  .story-description {
    padding: 1.5rem;
  }
  
  .story-timeline {
    padding-left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-marker {
    left: -1.25rem;
  }
  
  .framework-section h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .success-story-card {
    padding: 1.5rem 1rem;
  }
  
  .story-title h3 {
    font-size: 1.25rem;
  }
  
  .highlight-box {
    padding: 1rem;
  }
  
  .highlight-number {
    font-size: 1.75rem;
  }
  
  .story-description {
    padding: 1rem;
  }
  
  .framework-section h3 {
    font-size: 1.5rem;
  }
}

/* Animation for success story elements */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-story-card {
  animation: slideInUp 0.8s ease-out;
}

.highlight-box {
  animation: slideInUp 0.8s ease-out;
}

.highlight-box:nth-child(1) { animation-delay: 0.1s; }
.highlight-box:nth-child(2) { animation-delay: 0.2s; }
.highlight-box:nth-child(3) { animation-delay: 0.3s; }

.timeline-item {
  animation: slideInUp 0.6s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.4s; }
.timeline-item:nth-child(2) { animation-delay: 0.5s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

/* ===== ENHANCED IQ ALGORITHMS SECTION ===== */
.algorithms-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.algorithms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.algorithms-section .container {
  position: relative;
  z-index: 1;
}

/* Enhanced Header */
.algorithms-header {
  text-align: center;
  margin-bottom: 4rem;
}

.header-content {
  margin-bottom: 3rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.header-badge i {
  font-size: 1rem;
}

.algorithms-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.algorithms-header h2 span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Key Differentiators */
.differentiators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.differentiator-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.differentiator-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
}

.diff-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
}

.diff-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.4rem;
}

.diff-content p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Enhanced IQ Grid */
.iq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.iq-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.iq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 1;
}

.iq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.iq-card:hover .iq-icon {
  transform: scale(1.05) rotate(3deg);
}

/* IQ Header */
.iq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.iq-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
  transition: var(--transition);
}

.iq-card:hover .iq-icon {
  transform: scale(1.1) rotate(5deg);
}

.iq-badge {
  background: var(--light-gray);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* IQ Content */
.iq-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.iq-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

/* IQ Features */
.iq-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem;
  background: var(--light-color);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--success-color);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: translateX(5px);
}

.feature i {
  color: var(--success-color);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .algorithms-header h2 {
    font-size: 2.25rem;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
  
  .differentiators {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .iq-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  
  .iq-card {
    padding: 1.5rem;
  }
  
  .iq-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .iq-card h3 {
    font-size: 1.125rem;
  }
  
  .iq-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .algorithms-header h2 {
    font-size: 2rem;
  }
  
  .iq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .iq-card {
    padding: 1.25rem;
  }
  
  .iq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .iq-badge {
    align-self: flex-start;
  }
  
  .iq-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Animation for IQ cards */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.iq-card {
  animation: fadeInScale 0.5s ease-out;
  cursor: pointer;
}

.iq-card:nth-child(1) { animation-delay: 0.1s; }
.iq-card:nth-child(2) { animation-delay: 0.2s; }
.iq-card:nth-child(3) { animation-delay: 0.3s; }
.iq-card:nth-child(4) { animation-delay: 0.4s; }
.iq-card:nth-child(5) { animation-delay: 0.5s; }
.iq-card:nth-child(6) { animation-delay: 0.6s; }
.iq-card:nth-child(7) { animation-delay: 0.7s; }

/* Hover effects for differentiators */
.differentiator-item:hover .diff-icon {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}