/* The website's shared header and footer (filled by site.js). Every page
   loads this; the page's own styles only cover its content. Colours fall
   back to the site palette when a page doesn't define the variable. */

/* Header: a glass pill that stays at the top while scrolling. */
.nav { position: sticky; top: 16px; z-index: 50; padding-top: 8px; }
/* In-page links (#features...) stop below the sticky menu, not under it. */
html { scroll-padding-top: 96px; }
/* Always keep the scrollbar's space, so a short page (Trial) with no scrollbar
   doesn't shift the menu sideways against the long ones (Home, Pricing). */
html { scrollbar-gutter: stable; }
.nav > .wrap {
  position: relative; width: calc(100% - 32px); max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
  background: rgba(10, 16, 30, 0.65);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav-cta {
  text-decoration: none; font: 600 0.8125rem var(--font-body, "IBM Plex Sans", system-ui, sans-serif); color: #fff;
  padding: 8px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan, #3dd6f5), var(--violet, #9d84ff));
  box-shadow: 0 0 20px rgba(61, 214, 245, 0.4);
  transition: all 0.3s ease; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(61, 214, 245, 0.6); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { display: block; width: 58px; height: 32px; overflow: visible; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45)); }
.brand-name { font: 800 1.45rem/1 var(--font-display, "Bricolage Grotesque", system-ui, sans-serif); letter-spacing: -0.02em; color: #fff; }
.brand-name i, .foot-brand i {
  font-style: italic; padding-right: 2px;
  background: linear-gradient(100deg, #2f8bff 0%, #4f6bff 45%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 0.8125rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted, #9ca3af); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 0.8125rem var(--font-body, "IBM Plex Sans", system-ui, sans-serif); color: var(--fg, #f3f4f6); cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 6px 14px;
  transition: all 0.2s;
}
.lang svg { width: 14px; height: 14px; flex: none; }
.lang .ln-short { display: none; }
.lang:hover, .lang[aria-expanded="true"] { border-color: var(--cyan, #3dd6f5); background: rgba(61, 214, 245, 0.1); }
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 140px;
  display: grid; gap: 2px; padding: 6px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(8, 14, 28, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 500 0.8125rem var(--font-body, "IBM Plex Sans", system-ui, sans-serif); color: var(--muted, #9ca3af); text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 8px; padding: 8px 12px;
}
.lang-menu button:hover, .lang-menu button:focus-visible { color: #fff; background: rgba(61, 214, 245, 0.12); outline: none; }
.lang-menu button[aria-checked="true"] { color: #fff; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; color: var(--cyan, #3dd6f5); }
@media (max-width: 1180px) { .nav-links .nl-why, .nav-links .nl-data { display: none; } }
@media (max-width: 900px) { .nav-links { display: none; } .lang-wrap { margin-left: auto; } }
@media (max-width: 480px) {
  .lang .ln-long { display: none; } .lang .ln-short { display: inline; }
  .nav > .wrap { gap: 12px; padding: 10px 14px; } .nav-cta { padding: 8px 14px; }
  .brand-mark svg { width: 46px; height: 25px; } .brand-name { font-size: 1.3rem; }
}

/* Footer */
#site-footer {
  position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 36px;
  color: var(--dim, #6b7280); font-size: 0.8125rem; background: rgba(0, 0, 0, 0.4);
}
#site-footer > .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
}
#site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
#site-footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
#site-footer a:hover, #site-footer a[aria-current="page"] { color: #fff; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand svg { width: 40px; height: 22px; }
.foot-brand b { color: #fff; }

/* Light pages: <html class="theme-light">. Same layout, light glass and dark text. */
.theme-light .nav > .wrap {
  border-color: rgba(15, 23, 42, 0.08); background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.theme-light .brand-name, .theme-light .foot-brand b { color: #0f172a; }
.theme-light .brand-mark svg { filter: none; }
.theme-light .nav-links a { color: #475569; }
.theme-light .nav-links a:hover, .theme-light .nav-links a[aria-current="page"] { color: #0f172a; text-shadow: none; }
.theme-light .nav-cta { background: linear-gradient(135deg, #0891b2, #7c3aed); box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3); }
.theme-light .nav-cta:hover { box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4); }
.theme-light .lang { color: #0f172a; background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.12); }
.theme-light .lang:hover, .theme-light .lang[aria-expanded="true"] { border-color: #0891b2; background: rgba(8, 145, 178, 0.08); }
.theme-light .lang-menu { background: #fff; border-color: rgba(15, 23, 42, 0.1); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.theme-light .lang-menu button { color: #475569; }
.theme-light .lang-menu button:hover, .theme-light .lang-menu button:focus-visible { color: #0f172a; background: rgba(8, 145, 178, 0.08); }
.theme-light .lang-menu button[aria-checked="true"] { color: #0f172a; }
.theme-light .lang-menu button[aria-checked="true"]::after { color: #0891b2; }
.theme-light #site-footer { border-top-color: rgba(15, 23, 42, 0.08); background: #eef2f7; color: #64748b; }
.theme-light #site-footer a:hover, .theme-light #site-footer a[aria-current="page"] { color: #0f172a; }
