/* ===== base.css — Premium Fintech Design ===== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;700&display=swap');

:root {
  /* Premium Palette - Modern Fintech */
  --primary: #6366F1;       /* Indigo */
  --primary-hover: #4F46E5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --secondary: #0F172A;     /* Slate Dark */
  --accent: #10B981;        /* Emerald */
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.1);
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  
  /* Backgrounds */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-soft: #1E293B;

  /* Typography */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-inverse: #F8FAFC;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  --grad-dark: linear-gradient(180deg, #111827 0%, #0F172A 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
}

/* Resets & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Heebo', sans-serif;
  line-height: 1.1;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: white; }

.bg-dark { background-color: var(--bg-dark); color: var(--text-inverse); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-inverse); }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Spacing */
section {
  padding: 100px 0;
}

@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .container { padding: 0 24px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 16px; }
  
  .hide-mobile { display: none !important; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}
