/* ============================================================
   SHARED DESIGN SYSTEM — Finsight
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --primary:        #3EBD8C;
  --primary-dark:   #2A9A71;
  --primary-darker: #1D7A57;
  --primary-light:  #E8F7F0;
  --primary-soft:   #C5EDDA;
  --primary-glow:   rgba(62, 189, 140, 0.18);

  --bg:             #F3F6F3;
  --bg-alt:         #EAEFEA;
  --surface:        #FFFFFF;
  --surface-glass:  rgba(255, 255, 255, 0.75);

  --text-dark:      #0F1A14;
  --text-body:      #374151;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;

  --border:         #E5EBE5;
  --border-light:   #F0F4F0;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.12);
  --shadow-green:   0 12px 40px rgba(62, 189, 140, 0.22);

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      36px;
  --radius-pill:    999px;

  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
ul, ol { list-style: none; }

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

/* ── Typography ── */
.display-xl { font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.display-md { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.display-sm { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.heading     { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.body-lg     { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }
.body-sm     { font-size: 0.9rem;  line-height: 1.6; color: var(--text-muted); }
.label       { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Color accents in text ── */
.text-green  { color: var(--primary); }
.text-dark   { color: var(--text-dark); }
.text-muted  { color: var(--text-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(62, 189, 140, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-soft);
}
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Badge / Label tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-green {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-soft);
}
.badge-dark {
  background: var(--text-dark);
  color: white;
}
.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-md);
}

/* ── Section layout ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-label { margin-bottom: 16px; }
.section-header { margin-bottom: 56px; }
.section-header-split {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 56px;
}
.section-header-split .left { flex: 0 0 auto; max-width: 480px; }
.section-header-split .right { flex: 1; padding-top: 8px; }

/* ── Icon box ── */
.icon-box {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.icon-box svg { width: 20px; height: 20px; }

/* ── Divider ── */
.divider {
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px 0 20px;
}

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ── Flex helpers ── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ── Animation classes ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Decorative elements ── */
.deco-cross {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
}
.deco-cross::before,
.deco-cross::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}
.deco-cross::before { width: 100%; height: 3px; top: 50%; transform: translateY(-50%); }
.deco-cross::after  { width: 3px; height: 100%; left: 50%; transform: translateX(-50%); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section-header-split { flex-direction: column; gap: 24px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .display-xl { font-size: 2.2rem; }
  .display-lg { font-size: 1.9rem; }
  .display-md { font-size: 1.5rem; }
}
