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

/* ==========================================
   COLORFUL FINTECH PALETTE (Ambak Inspired)
   ========================================== */
:root {
  /* Core brand colors */
  --primary: #1F2629;
  --primary-rgb: 31, 38, 41;
  --white: #FFFFFF;
  --text-dark: #2B2B2B;
  --text-muted: #667085;
  --border: #E6EAF0;
  
  /* Vibrant fintech accents (New Startup Palette) */
  --accent-purple: #6D4AFF;
  --accent-indigo: #9B7BFF;
  --accent-orange: #F6A76E;
  --accent-peach: #F6A76E;
  --accent-teal: #7DD3FC;
  --accent-green: #10B981;
  
  /* Rich gradients */
  --gradient-primary: linear-gradient(135deg, #6D4AFF 0%, #9B7BFF 100%);
  --gradient-orange: linear-gradient(135deg, #F6A76E 0%, #FF512F 100%);
  --gradient-teal: linear-gradient(135deg, #7DD3FC 0%, #0EA5E9 100%);
  --gradient-purple-light: linear-gradient(135deg, rgba(109, 74, 255, 0.05) 0%, rgba(155, 123, 255, 0.05) 100%);
  
  /* Soft pastel background panels */
  --bg-lavender: #F5F3FF;
  --bg-peach: #FFF5F2;
  --bg-blue: #EFF6FF;
  --bg-beige: #FAF7F2;
  --bg-green: #ECFDF5;
  --bg-pink: #FDF2F8;
  --bg-light: #F8FAFC;
  --bg-section: #FAFBFC;
  
  /* Shadows & Highlights */
  --shadow-sm: 0 4px 12px rgba(31, 38, 41, 0.02);
  --shadow-md: 0 12px 36px rgba(99, 102, 241, 0.06);
  --shadow-lg: 0 24px 60px rgba(99, 102, 241, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(124, 58, 237, 0.03);
  
  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-width: 1280px;
  --header-height: 80px;
}

/* ==========================================
   BASE & RESET RULES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: initial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 48px; /* Room for fixed bottom marquee */
}

/* Typography variables */
:root {
  --font-headings: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

/* ==========================================
   TYPOGRAPHY SYSTEM
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}

/* ==========================================
   LAYOUT MODULES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-header .badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--bg-lavender);
  color: var(--accent-purple);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.section-header p {
  font-size: 1.125rem;
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================
   PASTEL BACKGROUND CLASSES
   ========================================== */
.bg-lavender { background-color: var(--bg-lavender); }
.bg-peach { background-color: var(--bg-peach); }
.bg-blue { background-color: var(--bg-blue); }
.bg-beige { background-color: var(--bg-beige); }
.bg-green { background-color: var(--bg-green); }
.bg-pink { background-color: var(--bg-pink); }

/* Gradient Mesh Background */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  background-color: transparent;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.95;
  pointer-events: none;
}

.mesh-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.38) 0%, rgba(124, 58, 237, 0) 75%);
  top: -200px;
  right: -150px;
}

.mesh-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 126, 64, 0.32) 0%, rgba(255, 245, 242, 0) 75%);
  bottom: -150px;
  left: -150px;
}

.mesh-3 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(239, 246, 255, 0) 75%);
  top: 30%;
  left: 45%;
  transform: translate(-50%, -50%);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: var(--accent-purple);
}

.breadcrumb span {
  color: var(--text-dark);
  font-weight: 600;
}
