/* ============================================================
   FQintel — Shared theme styles
   Design tokens, resets, and the shared chrome (utility bar,
   nav, buttons, footer, reveal animation) used by the header
   and footer global partials and every page template.
   Loaded site-wide via templates/layouts/base.html.
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --paper-tint: #F5F5F2;
  --ink: #0E0E0F;
  --ink-soft: #2A2A2C;
  --ink-mute: #6F6B62;
  --rule: rgba(14, 14, 15, 0.10);
  --rule-strong: rgba(14, 14, 15, 0.22);

  --navy: #14256B;
  --navy-deep: #0B173F;
  --sky: #2EA7E0;
  --sky-soft: #BFE2F4;
  --success: #2BB673;
  --alert: #B91C1C;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--navy); color: var(--paper); }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── UTILITY BAR ──────────────────────────────────────────── */
.util {
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.util .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.util .live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.75px;
  letter-spacing: 0.05em;
}
.util .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2BB673;
  box-shadow: 0 0 0 3px rgba(43,182,115,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43,182,115,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(43,182,115,0.05); }
}
.util .right { display: flex; gap: 16px; align-items: center; }
.util .right a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 20px;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.util .right a:hover { background: var(--navy); color: var(--paper); }
.util a:hover { color: var(--ink); }

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 108px;
}
.logo img {
  height: 100%;
  width: auto;
}
/* Text fallback shown when the logo image fails to load */
.logo-fallback {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.logo-fallback .q-mark { color: var(--navy); }
.logo-fallback .intel { font-weight: 500; }
.nav-links {
  display: flex;
  gap: 44px;
  font-size: 22px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy); }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-primary .arrow {
  width: 14px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center/contain no-repeat;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--sky); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--paper);
  color: var(--ink-mute);
  padding: 70px 0 60px;
  border-top: 1px solid var(--rule);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-left .logo {
  height: 108px;
}
.footer-left .logo img {
  height: 100%;
  width: auto;
}
.footer-left p {
  margin-top: 24px;
  font-size: 14px;
  max-width: 38ch;
  line-height: 1.55;
  color: var(--ink-soft);
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: right;
  color: var(--ink-mute);
}
.footer-meta div + div { margin-top: 6px; }

/* ─── SHARED RESPONSIVE (chrome only) ──────────────────────── */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  footer .container { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
