/*
 * FinTechCo "Data Velocity" Design System
 * A unique theme for modern financial technology
 * Distinctive color palette: Deep Indigo, Electric Cyan, Vibrant Magenta, Warm Amber
 */

/* ==================== Design Tokens ==================== */

:root {
  /* Primary Color Palette - Unique to FinTechCo */
  --color-deep-indigo: #1a1f3a;
  --color-indigo-dark: #0f1225;
  --color-indigo-light: #2a3255;

  --color-electric-cyan: #00e5ff;
  --color-cyan-bright: #00ffff;
  --color-cyan-dim: #00b8d4;

  --color-vibrant-magenta: #ff00aa;
  --color-magenta-bright: #ff33bb;
  --color-magenta-dim: #cc0088;

  --color-warm-amber: #ffb300;
  --color-amber-bright: #ffc947;
  --color-amber-dim: #ff8f00;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-light-gray: #e0e4e8;
  --color-medium-gray: #6b7280;
  --color-dark-gray: #2d3748;

  /* Semantic Colors */
  --color-success: #00e676;
  --color-warning: var(--color-warm-amber);
  --color-error: #ff1744;
  --color-info: var(--color-electric-cyan);

  /* Background System */
  --bg-primary: var(--color-deep-indigo);
  --bg-secondary: var(--color-indigo-light);
  --bg-dark: var(--color-indigo-dark);
  --bg-light: var(--color-off-white);

  /* Glassmorphic Background */
  --glass-bg: rgba(26, 31, 58, 0.7);
  --glass-border: rgba(0, 229, 255, 0.2);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing System (8px base) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);

  /* Glow Effects - Unique to FinTechCo */
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.5);
  --glow-magenta: 0 0 20px rgba(255, 0, 170, 0.5);
  --glow-amber: 0 0 20px rgba(255, 179, 0, 0.5);
  --glow-cyan-strong: 0 0 30px rgba(0, 229, 255, 0.8), 0 0 60px rgba(0, 229, 255, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
}

/* ==================== Base Styles ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-white);
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* ==================== Typography Components ==================== */

.heading-1 {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  background: linear-gradient(135deg, var(--color-electric-cyan), var(--color-vibrant-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading-2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.heading-3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-electric-cyan);
}

.heading-4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.text-gradient-cyan-magenta {
  background: linear-gradient(135deg, var(--color-electric-cyan), var(--color-vibrant-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-magenta-amber {
  background: linear-gradient(135deg, var(--color-vibrant-magenta), var(--color-warm-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-electric-cyan);
}

/* ==================== Layout Components ==================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-12) 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-light {
  background: var(--bg-secondary);
}

/* ==================== Card Components ==================== */

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--glow-cyan);
}

.card-solid {
  background: var(--color-indigo-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 2px solid transparent;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.card-solid:hover {
  border-color: var(--color-electric-cyan);
  transform: translateY(-2px);
}

.card-metric {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 0, 170, 0.1));
  border: 2px solid var(--color-electric-cyan);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-metric::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 229, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.metric-value {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-electric-cyan);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: var(--font-size-lg);
  color: var(--color-medium-gray);
  margin-top: var(--space-2);
}

/* ==================== Button Components ==================== */

.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-electric-cyan), var(--color-vibrant-magenta));
  color: var(--color-white);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-electric-cyan);
  border: 2px solid var(--color-electric-cyan);
}

.btn-secondary:hover {
  background: var(--color-electric-cyan);
  color: var(--color-deep-indigo);
  box-shadow: var(--glow-cyan);
}

.btn-accent {
  background: var(--color-warm-amber);
  color: var(--color-deep-indigo);
  font-weight: var(--font-weight-bold);
}

.btn-accent:hover {
  background: var(--color-amber-bright);
  box-shadow: var(--glow-amber);
  transform: translateY(-2px);
}

/* ==================== Data Visualization Components ==================== */

.stat-bar {
  height: 8px;
  background: var(--color-indigo-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-electric-cyan), var(--color-vibrant-magenta));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  box-shadow: var(--glow-cyan);
}

.data-pill {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--color-electric-cyan);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-electric-cyan);
}

.data-pill-magenta {
  background: rgba(255, 0, 170, 0.1);
  border-color: var(--color-vibrant-magenta);
  color: var(--color-vibrant-magenta);
}

.data-pill-amber {
  background: rgba(255, 179, 0, 0.1);
  border-color: var(--color-warm-amber);
  color: var(--color-warm-amber);
}

/* ==================== Navigation Components ==================== */

.nav-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-electric-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-electric-cyan), var(--color-vibrant-magenta));
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ==================== Utility Classes ==================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

/* ==================== Animations ==================== */

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-cyan); }
  50% { box-shadow: var(--glow-cyan-strong); }
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
  .heading-1 { font-size: var(--font-size-4xl); }
  .heading-2 { font-size: var(--font-size-3xl); }
  .heading-3 { font-size: var(--font-size-2xl); }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-8) 0;
  }
}
