/* ===================================================================
   7art — shared site styles (nav, footer, mobile menu, theme, tokens)
   Loaded by every page. Page-specific rules live in each page's own
   <style> block or page CSS file.
   =================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #05080d;
  --bg-alt: #080c12;
  --bg-footer: #04060a;
  --text: #e8edf3;
  --text-dim: #9aa6b4;
  --text-dimmer: #7c8794;
  --text-faint: #5a6471;
  --border: rgba(56, 122, 194, .18);
  --blue: #387ac2;
  --blue-light: #8fbdf0;
  --blue-soft: #6aa6e6;
  --card-bg: #0b0f15;
  --surface: rgba(56, 122, 194, .10);
  --surface-border: rgba(56, 122, 194, .32);
  --nav-bg: rgba(5, 8, 13, .82);
}

body[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-footer: #eef2f7;
  --text: #11161c;
  --text-dim: #4b5560;
  --text-dimmer: #5d6772;
  --text-faint: #8b94a0;
  --border: rgba(56, 122, 194, .22);
  --card-bg: #0b0f15;
  --surface: rgba(56, 122, 194, .08);
  --surface-border: rgba(56, 122, 194, .35);
  --nav-bg: rgba(244, 247, 251, .86);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, sans-serif;
  overflow-x: clip;
  min-height: 100vh;
  transition: background .3s ease, color .3s ease;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

img, video { max-width: 100%; }
a { color: inherit; }
.accent-text { color: var(--blue); }

@keyframes marquee  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes logos    { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 122, 194, .55); }
  70%      { box-shadow: 0 0 0 9px rgba(56, 122, 194, 0); }
}

/* ===================== Nav ===================== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 38px; display: block; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s;
}
.nav__links > a:hover { color: var(--text); }
.nav__links > a.is-active {
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
}

.nav__controls { display: flex; align-items: center; gap: 9px; }
.icon-btn, .pill-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--blue-light);
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  font-family: Poppins, sans-serif;
}
.icon-btn { width: 38px; }
.pill-btn { padding: 0 13px; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.icon-btn:hover, .pill-btn:hover { background: var(--blue); color: #05080d; }

.btn-quote {
  font-size: 13px;
  font-weight: 700;
  color: #05080d;
  background: var(--blue);
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: box-shadow .25s;
  white-space: nowrap;
}
.btn-quote:hover { box-shadow: 0 0 0 4px rgba(56, 122, 194, .25); }
.btn-quote--lg { display: inline-block; padding: 17px 36px; border-radius: 10px; transition: transform .2s; }
.btn-quote--lg:hover { transform: translateY(-3px); box-shadow: none; }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
}

/* ===================== Mobile menu ===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 13, .98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 22px 28px;
}
body[data-theme="light"] .mobile-menu { background: rgba(244, 247, 251, .98); }
.mobile-menu.is-open { display: flex; }

.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 36px; display: block; }
.mobile-menu__close { background: none; border: none; cursor: pointer; color: var(--text); font-size: 30px; line-height: 1; padding: 6px; }

.mobile-menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mobile-menu__links a {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 9px 0;
  transition: color .2s;
}
.mobile-menu__links a:hover,
.mobile-menu__links a.is-active { color: var(--blue-soft); }

.mobile-menu__controls { display: flex; gap: 12px; margin-bottom: 14px; }
.mobile-toggle {
  flex: 1;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--blue-light);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.mobile-menu__quote {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #05080d;
  background: var(--blue);
  padding: 17px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: .04em;
}

/* ===================== Marquee ===================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
}
.marquee__track {
  display: inline-block;
  animation: marquee 24s linear infinite;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee__track .on  { color: var(--text); }
.marquee__track .off { color: #3a414c; }
.marquee__track .dot { color: var(--blue); margin: 0 20px; }

/* ===================== Partners ===================== */
.partners {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid rgba(56, 122, 194, .14);
  border-bottom: 1px solid rgba(56, 122, 194, .14);
}
.partners__label {
  text-align: center;
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.partners__viewport { overflow: hidden; white-space: nowrap; }
.partners__track { display: inline-flex; align-items: center; gap: 70px; animation: logos 26s linear infinite; }
.partners__track img { height: 54px; opacity: .7; }
.partners__track img:first-child, .partners__track img:nth-child(6) { height: 46px; }

/* ===================== Reveal ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================== Shared section helpers ===================== */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(56, 122, 194, .4);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
  animation: pulseDot 1.9s ease-in-out infinite;
}

/* ===================== Footer ===================== */
.footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: clamp(54px, 6vw, 72px) 28px 32px; }
.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer__brand { max-width: 340px; }
.footer__brand img { display: block; margin-bottom: 20px; height: 54px; }
.footer__brand p { margin: 0 0 22px; font-size: 14px; line-height: 1.7; color: var(--text-dimmer); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid rgba(56, 122, 194, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.footer__social a:hover { background: var(--blue); }
.footer__social img { width: 18px; height: 18px; }

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; color: var(--text-dimmer); text-decoration: none; transition: color .25s; }
.footer__links a:hover { color: var(--blue-soft); }
.footer__links--static span { font-size: 14px; color: var(--text-dimmer); }

.footer__bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__bottom p { margin: 0; font-size: 13px; color: var(--text-faint); }
.footer__top {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #05080d;
  transition: transform .2s;
}
.footer__top:hover { transform: translateY(-3px); }

/* ===================== Mobile polish ===================== */
@media (max-width: 600px) {
  .nav { padding: 13px 18px; }
  .nav__logo img { height: 32px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .marquee__track { font-size: 20px; }
  .mobile-menu__links a { font-size: 28px; }
  .badge { font-size: 11px; letter-spacing: .12em; }
}
@media (max-width: 380px) {
  .nav__logo img { height: 28px; }
  .btn-quote { padding: 10px 16px; }
}
