/* AI Cash Account - Institutional Investment Platform */
:root {
  /* Institutional Color Palette */
  --navy-primary: #1a2332;
  --navy-secondary: #2a3441;
  --navy-light: #3a4451;
  --slate-primary: #475569;
  --slate-secondary: #64748b;
  --slate-light: #94a3b8;
  
  /* Accent Colors */
  --gold-primary: #d4af37;
  --gold-secondary: #b8941f;
  --blue-primary: #2563eb;
  --green-primary: #059669;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-6) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--navy-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: var(--space-24) 0 var(--space-20);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-primary);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Investment Calculator */
.investment-calculator {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-12);
  margin: var(--space-16) auto;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.calculator-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: var(--space-3);
}

.calculator-subtitle {
  color: var(--slate-primary);
  font-size: 1.125rem;
}

.slider-container {
  margin: var(--space-8) 0;
  position: relative;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-primary);
  cursor: pointer;
  transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(26, 35, 50, 0.1);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-primary);
  cursor: pointer;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--slate-secondary);
  font-weight: 500;
}

.investment-display {
  text-align: center;
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.investment-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.qualified-tier {
  margin-top: var(--space-4);
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-primary);
  margin-bottom: var(--space-2);
}

.monthly-return {
  font-size: 1.125rem;
  color: var(--green-primary);
  font-weight: 600;
}

/* Proceed Button */
.proceed-section {
  text-align: center;
  margin: var(--space-12) 0;
}

.proceed-button {
  background: var(--navy-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 280px;
}

.proceed-button:hover {
  background: var(--navy-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.proceed-subtitle {
  margin-top: var(--space-4);
  color: var(--slate-secondary);
  font-size: 0.875rem;
}

/* Performance Dashboard */
.performance-dashboard {
  margin: var(--space-20) 0;
}

.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.dashboard-header h3 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: var(--space-3);
}

.dashboard-subtitle {
  color: var(--slate-primary);
  font-size: 1.125rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: var(--space-8);
  transition: var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.metric-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.metric-icon {
  width: 24px;
  height: 24px;
  color: var(--slate-secondary);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

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

.metric-change {
  color: var(--green-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Portfolio Timeline */
.portfolio-timeline {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: var(--space-8);
  margin: var(--space-12) 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.timeline-controls {
  display: flex;
  gap: var(--space-2);
}

.timeline-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  color: var(--slate-primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}

.timeline-btn:hover,
.timeline-btn.active {
  background: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
}

.timeline-chart {
  height: 300px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
}

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

/* Investment Tiers */
.investment-tiers {
  margin: var(--space-20) 0;
}

.tiers-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.tiers-header h3 {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: var(--space-3);
}

.tiers-subtitle {
  color: var(--slate-primary);
  font-size: 1.125rem;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.tier-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-10);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.tier-card:hover {
  border-color: var(--navy-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.tier-card.highlighted {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px var(--gold-primary), var(--shadow-xl);
}

.tier-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--navy-primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.tier-card.gold .tier-badge {
  background: var(--gold-primary);
  color: var(--navy-primary);
}

.tier-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: var(--space-4);
}

.tier-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
}

.tier-period {
  color: var(--slate-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-6);
}

.tier-return {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: var(--space-4);
  margin: var(--space-6) 0;
}

.return-rate {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: var(--space-1);
}

.return-label {
  color: var(--slate-secondary);
  font-size: 0.875rem;
}

.tier-description {
  color: var(--slate-primary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Shared Features */
.shared-features {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: var(--space-12);
  margin: var(--space-16) 0;
  text-align: center;
}

.shared-features h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: var(--space-8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--green-primary);
  flex-shrink: 0;
}

.feature-text {
  color: var(--slate-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--navy-primary);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--gold-primary);
}

.trust-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.trust-description {
  color: var(--slate-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .investment-calculator,
  .metric-card,
  .portfolio-timeline,
  .tier-card,
  .shared-features {
    padding: var(--space-6);
  }
  
  .metrics-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: var(--space-4);
    align-items: stretch;
  }
  
  .timeline-controls {
    justify-content: center;
  }
  
  .investment-amount,
  .metric-value,
  .tier-amount {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .calculator-header h2,
  .dashboard-header h3,
  .tiers-header h3 {
    font-size: 1.75rem;
  }
  
  .proceed-button {
    width: 100%;
  }
  
  .timeline-stats {
    grid-template-columns: 1fr;
  }
}


/* Chart Styling */
.timeline-chart {
  height: 300px;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  position: relative;
}

.timeline-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .timeline-chart {
    height: 250px;
    margin: 1.5rem 0;
    padding: 0.75rem;
  }
}

