/* global.css
   Shared stylesheet for fintech site
   - Place this file at: /assets/css/global.css (or adjust path)
   - Link from your HTML: <link rel="stylesheet" href="/assets/css/global.css">
   - Fonts: keep the Google Fonts <link> in <head> of each HTML page.

   Note: Update :root variables to tweak brand colors, spacing, and typographic scale.
*/

:root{
  --brand-red: #cb0000; /* primary brand color */
  --brand-grad-start: #e8272a; /* linear gradient start */
  --brand-grad-end: #ff914d;   /* linear gradient end
  */

  /* Derived/utility colors */
  --bg: #0f1724; /* deep navy for hero (optional) */
  --surface: #ffffff;
  --muted: #6b7280;
  --glass: rgba(255,255,255,0.06);
  --card-shadow: 0 6px 24px rgba(12, 15, 20, 0.12);

  --radius: 12px;
  --container-width: 1100px;

  /* Accessibility: high contrast CTAs */
  --cta-contrast: 255,255,255;

  /* Typography scale */
  --base-font-size: 16px;
}

/* -------------------------
   Global reset / base
   ------------------------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size:var(--base-font-size);
  color:#0b1220;
  background: #f8fafc;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* Utility container */
.container{max-width:var(--container-width);margin:0 auto;padding:0 20px}

a{color:inherit;text-decoration:none}

/* -------------------------
   Header / Nav
   ------------------------- */
header{
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  backdrop-filter: blur(6px);
  position:sticky;top:0;z-index:60;border-bottom:1px solid rgba(11,17,32,0.04);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.brand{display:flex;align-items:center;gap:12px}
.logo{display:inline-flex;align-items:center;gap:10px}
.logo-mark{
  width:44px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  background: linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-end));
  box-shadow: 0 6px 20px rgba(232,39,42,0.12);
  color:var(--cta-contrast);font-weight:700;font-family:'Poppins',sans-serif
}
.brand-title{font-weight:700;font-size:1rem}
nav ul{display:flex;gap:20px;align-items:center;margin:0;padding:0;list-style:none}
nav a{color:var(--muted);font-weight:500}

.actions{display:flex;gap:12px;align-items:center}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;font-weight:600;border:0;cursor:pointer}
.btn-ghost{background:transparent;color:var(--muted)}
.btn-primary{
  background:linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-end));
  color:var(--cta-contrast);box-shadow: 0 6px 18px rgba(232,39,42,0.16)
}

/* Mobile nav */
.mobile-toggle{display:none}
@media (max-width:880px){
  nav ul{display:none}
  .mobile-toggle{display:inline-flex}
}

/* -------------------------
   Hero
   ------------------------- */
.hero{padding:76px 0 56px;background: linear-gradient(180deg, rgba(232,39,42,0.06), rgba(255,145,77,0.02));}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:36px;align-items:center}
.hero h1{font-family:'Poppins',sans-serif;font-size:40px;margin:0 0 12px}
.hero p{margin:0 0 22px;color:var(--muted)}

.hero-card{background:linear-gradient(180deg,rgba(255,255,255,0.98),#fff);border-radius:16px;padding:20px;box-shadow:var(--card-shadow)}
.hero-keys{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.key{background:var(--glass);padding:8px 10px;border-radius:10px;font-weight:600;color:#0b1220}

.cta-row{display:flex;gap:12px;margin-top:18px}

@media (max-width:880px){
  .hero-grid{grid-template-columns:1fr;}
  .hero h1{font-size:28px}
}

/* -------------------------
   Product cards
   ------------------------- */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}
.card{background:#fff;border-radius:12px;padding:20px;box-shadow:var(--card-shadow);min-height:180px;display:flex;flex-direction:column;gap:12px}
.card h3{margin:0}
.card p{margin:0;color:var(--muted);font-size:0.95rem}
.card .tag{margin-top:auto;display:inline-block;padding:8px 12px;border-radius:10px;background:linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-end));color:#fff;font-weight:700}

@media (max-width:1100px){
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .cards{grid-template-columns:1fr}
}

/* -------------------------
   Sections (About, Team, Compliance)
   ------------------------- */
section{padding:56px 0}
.section-head{display:flex;align-items:center;justify-content:space-between}
.muted{color:var(--muted)}

.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:18px}
.teammate{background:#fff;padding:16px;border-radius:12px;box-shadow:var(--card-shadow);text-align:center}
.avatar{width:96px;height:96px;border-radius:16px;margin:0 auto 12px;background:linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-end));display:grid;place-items:center;color:white;font-weight:700}

@media (max-width:1100px){.team-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.team-grid{grid-template-columns:1fr}}

/* -------------------------
   Footer
   ------------------------- */
footer{padding:36px 0;background:#07080a;color:#cbd5e1}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 220px;gap:18px}
.footer a{color:#cbd5e1}
.legal{font-size:0.9rem;color:#9aa3b2;margin-top:18px}

@media (max-width:880px){.footer-grid{grid-template-columns:1fr;}}

/* -------------------------
   Small helpers
   ------------------------- */
.muted-small{color:var(--muted);font-size:0.95rem}
.kbd{background:#0b1220;color:white;padding:4px 8px;border-radius:6px;font-size:0.9rem}
.center{text-align:center}
