/* global.css — Shared foundation for all marketing & content pages */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --bg: #0d0f14;
  --surface: #161920;
  --surface2: #1e2128;
  --surface3: #252830;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0f2f7;
  --text2: #9ba3b8;
  --text3: #5c6478;
  --c-income: #6ee7b7;
  --c-expense: #f87171;
  --c-invest: #a78bfa;
  --c-bills: #f0a860;
  --c-grocery: #6ee7b7;
  --c-dining: #fbbf24;
  --c-entertainment: #818cf8;
  --c-subs: #67e8f9;
  --c-other: #94a3b8;
  --accent: #d4a843;
  --gold: #d4a843;
  --danger: #f87171;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* ---- BASE TYPOGRAPHY ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 28px; height: 28px; border-radius: 6px;
  object-fit: contain;
  background: transparent;
}
.nav-logo-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text3);
  margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; color: var(--text2); font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: #e8b931; color: #0d0f14; border: none;
  padding: 8px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: opacity 0.15s ease;
}
.nav-cta:hover { opacity: 0.85; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--text);
  font-size: 24px; padding: 4px;
}

/* ---- FOOTER (full — index) ---- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text2); max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px; transition: all 0.15s ease;
}
.footer-social a:hover { background: var(--surface3); color: var(--text); }

/* ---- FOOTER (simple — blog/legal) ---- */
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- MOBILE NAV DROPDOWN ---- */
@media (max-width: 600px) {
  .nav-links.show {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(13,15,20,0.97); backdrop-filter: blur(16px);
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.show .nav-cta {
    text-align: center; display: block; padding: 12px;
  }
}
