/* ==========================================================================
   CHECK PLEASE! - MODERN B2B FINTECH MARKETING DESIGN SYSTEM
   Theme: Crisp Architectural Financial Grid, Deep Slate Navy (#0f172a / #1e3a5f),
          Polished Typography (Plus Jakarta Sans & Inter), Fully Responsive & Mobile Friendly
   ========================================================================== */

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

:root {
  /* Brand Palette */
  --app-navy-dark: #0f172a;
  --app-navy-primary: #1e3a5f;
  --app-navy-hover: #152943;
  --app-navy-light: #2d5584;
  --app-blue-accent: #2563eb;
  
  /* Financial Monochromes & Slates */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-navy-section: #0b1120;
  --bg-dark-card: #0f172a;
  
  /* Borders & Gridlines */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #334155;
  --border-navy: #1e293b;
  --border-active: #1e3a5f;

  /* Accent Colors */
  --accent-gold: #b45309;
  --accent-amber: #d97706;
  --accent-green: #15803d;
  --accent-green-bg: #dcfce7;
  --accent-red: #b91c1c;
  --accent-red-bg: #fee2e2;
  --accent-blue: #2563eb;
  --accent-blue-bg: #dbeafe;

  /* Typography Colors */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light-muted: #94a3b8;
  --text-white: #ffffff;

  /* SUBTLE MICRO-RADIUS TOKENS (Main Elements only, Badges remain 0px) */
  --radius-card: 4px;
  --radius-btn: 3px;
  --radius-input: 3px;
  --radius-badge: 0px;

  /* Clean Shadows */
  --shadow-flat: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-heavy: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -4px rgba(15, 23, 42, 0.04);

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-digits: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1240px;
  --transition-fast: 0.15s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.font-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Sharp Badges (Explicitly 0px radius) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-badge) !important;
}

.badge-navy {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.badge-slate {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.badge-green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-color: #bbf7d0;
}

.badge-red {
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border-color: #fecaca;
}

.badge-blue {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border-color: #bfdbfe;
}

/* Cards (Subtle micro-radius) */
.fin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-flat);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fin-card:hover {
  border-color: var(--app-navy-primary);
  box-shadow: var(--shadow-card);
}

.fin-card-dark {
  background: var(--bg-dark-card);
  color: var(--text-white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-card);
}

/* Buttons - Responsive & Touch Friendly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-btn);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--app-navy-primary);
  color: #ffffff;
  border-color: var(--app-navy-primary);
  box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}

.btn-primary:hover {
  background: var(--app-navy-hover);
  border-color: var(--app-navy-hover);
  box-shadow: 0 4px 8px rgba(30, 58, 95, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-pdf {
  background: #ffffff;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 600;
}

.btn-pdf:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-btn);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius-btn);
}

/* Header & Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f172a;
  border-bottom: 2px solid #1e3a5f;
  color: #ffffff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid #ffffff;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: #1e3a5f;
  color: #93c5fd;
  border: 1px solid #3b82f6;
  font-weight: 700;
  margin-left: 6px;
  border-radius: 0 !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: #ffffff;
  border-bottom-color: #38bdf8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Section Common */
.section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: #0b1120;
  color: #f1f5f9;
  border-bottom: 1px solid #1e293b;
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #94a3b8;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--text-dark);
  text-align: center;
}

.section-dark .section-header h2 {
  color: #ffffff;
}

.section-header p {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Responsive System */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-container { height: 60px; }
  .brand-logo { font-size: 1.15rem; }
  .brand-logo .logo-icon { width: 28px; height: 28px; font-size: 1rem; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 42px 0; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}
