/* ============================================================
   GLOBAL — AI for Fintech
   Variables, reset, typography, nav and footer
   Shared across every page of the hub
   ============================================================ */

:root {
  --paper: #F0EDE6;
  --paper-dark: #E8E4DB;
  --ink: #1C1C1C;
  --ink-soft: #3D3D38;
  --accent: #1B2A4A;
  --accent-light: #263d6e;
  --meta: #8A8880;
  --rule: #D0CCC3;
  --rule-strong: #1C1C1C;
  --white: #FAFAF8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* NAV */
nav {
  border-bottom: 1px solid var(--rule-strong);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--white);
  font-weight: 500;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 13.5px;
  color: var(--meta);
  text-decoration: none;
  transition: color .12s;
}

.nav-link:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  text-decoration: none;
  transition: background .15s;
}

.nav-cta:hover { background: var(--accent-light); }

/* SHARED BUTTONS — used across hero, playbook, and other CTAs */
.btn-primary {
  background: var(--white);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 22px;
  text-decoration: none;
  transition: opacity .15s;
}

.btn-primary:hover { opacity: .88; }

.btn-ghost {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 2px;
  transition: color .12s;
}

.btn-ghost:hover { color: rgba(255,255,255,.85); }

/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,.1);
  background: var(--accent);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.22);
}

/* RESPONSIVE — shared rules */
@media (max-width: 800px) {
  nav, footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-right .nav-link { display: none; }
}