/* Import base styles and variables from homepage CSS */
:root {
  /* Primary color scheme */
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #fbbf24;
  --accent-dark: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Light mode colors */
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --border: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* Shadows */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Border radius */
  --radius: 0.5rem;

  /* Timeline specific */
  --bg: #0e1523;
  --fg: #e8eefc;
  --muted: #a6b3cf;
  --accent1: #6b8afe;
  --accent2: #9a63f6;
  --line: #2b3752;
  --glow: 0 0 30px rgba(107, 138, 254, 0.35);
  --badge: #ffd44d;
}

/* Dark mode variables */
/* @media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --surface: #1e293b;
    --surface-elevated: #334155;
    --border: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --line: #2b3752;
    --badge: #ffd44d;
  }

  .milestone-card {
    background: #0f1a2d !important;
    border: 1px solid #1f2b46 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }
} */

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-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="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-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.gradient-text {
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  color: white;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-button.primary {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.cta-button.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* AI Assistant Demo - Account Loading Animation */
.ai-assistant-demo {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.account-loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.account-display {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  min-width: 280px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  color: #fcd34d;
}

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  font-family: "Inter", monospace;
}

.loading-indicator {
  margin-bottom: 1rem;
}

.money-flow {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.money-particle {
  width: 8px;
  height: 8px;
  background: #fcd34d;
  border-radius: 50%;
  animation: moneyFlow 2s ease-in-out infinite;
}

.money-particle:nth-child(2) {
  animation-delay: 0.3s;
}

.money-particle:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes moneyFlow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

.account-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--surface);
  transition: background-color 0.3s ease;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
  width: 32px;
  height: 32px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works Section - Timeline */
.how-it-works-section {
  padding: 6rem 0;
  background: var(--background);
  transition: background-color 0.3s ease;
}

/* Timeline styles adapted from homepage CSS */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  margin-bottom: 4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 70px;
  bottom: 0;
  width: 4px;
  background: var(--line);
  transform: translateX(-50%);
}

.milestones {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
}

.milestone {
  position: relative;
  display: flex;
  justify-content: center;
}

.milestone .milestone-dot {
  min-width: 38px;
  min-height: 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--badge);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 3.5rem;
}

.milestone-card {
  position: absolute;
  width: 320px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.milestone-card .milestone-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.milestone-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent1), var(--accent2));
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.milestone-disc i {
  width: 32px;
  height: 32px;
  color: white;
}

.milestone-label {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.milestone-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.top .milestone-card {
  right: calc(50% + 30px);
  top: 0;
}

.bottom .milestone-card {
  left: calc(50% + 30px);
  top: 0;
}

/* Timeline numbering */
.timeline .milestones .milestone:nth-child(1) .milestone-dot::after {
  content: "1";
}
.timeline .milestones .milestone:nth-child(2) .milestone-dot::after {
  content: "2";
}
.timeline .milestones .milestone:nth-child(3) .milestone-dot::after {
  content: "3";
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .timeline::before{
    bottom:55px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 1rem;
  }

  .ai-assistant-demo {
    padding: 1rem;
  }

  .account-display {
    min-width: 240px;
    padding: 1.5rem;
  }

  .amount {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline responsive */
  .timeline::before {
    left: 17px;
    transform: none;
  }

  .milestone {
    align-items: flex-start;
  }

  .milestone .milestone-dot {
    margin-left: 0;
  }

  .milestone-card {
    position: relative;
    width: 100%;
    margin-left: 60px;
  }

  .top .milestone-card,
  .bottom .milestone-card {
    left: auto;
    right: auto;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}
