/* Trackit site — shared components */

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(5, 6, 42, 0.85);
  backdrop-filter: var(--backdrop-nav);
  -webkit-backdrop-filter: var(--backdrop-nav);
  border-bottom: 1px solid var(--border-default);
}
.nav-inner { overflow: visible !important; }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.nav-logo {
  position: relative;
  display: block;
  width: 220px;
  height: 100%;
  flex-shrink: 0;
  overflow: visible;
}
.nav-logo .nav-lockup {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
  height: 132px !important;
  width: auto !important;
  max-height: 132px !important;
  z-index: 2;
}
.nav-logo .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--color-lime); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-lime);
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
}

/* === MOBILE NAV === */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 8px 9px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 1100px) {
  .nav-hamburger { display: flex; }
}
body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 99;
  background: var(--color-deep-blue);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  padding: 40px 24px 40px;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.nav-open .nav-mobile {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
body.nav-open { overflow: hidden; }
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.nav-mobile-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-default);
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mobile-links a:hover { color: var(--text-primary); padding-left: 8px; }
.nav-mobile-links a .arr { color: var(--color-lime); font-size: 20px; opacity: 0; transition: opacity 0.15s ease; }
.nav-mobile-links a:hover .arr { opacity: 1; }
.nav-mobile-cta {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile-cta .btn { width: 100%; justify-content: center; height: 52px; font-size: 15px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  line-height: 1.2;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-lime);
  color: var(--color-deep-blue);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--color-lime); color: var(--color-lime); }
.btn-ghost {
  background: transparent;
  color: var(--color-lime);
  padding: 0;
  height: auto;
}
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 15px;
}

/* === STATUS PIP === */
.pip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pip::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-lime);
  /* Square per brand */
}
.pip.live::before { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === SECTIONS === */
.sec {
  padding: var(--space-16) 0;
  position: relative;
}
@media (max-width: 768px) {
  .sec { padding: var(--space-12) 0; }
}
.sec-divider {
  border-top: 1px solid var(--border-default);
}
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.sec-eyebrow .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-lime);
  letter-spacing: 0.16em;
}
.sec-eyebrow .label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sec-eyebrow .rule {
  flex: 1;
  height: 1px;
  background: var(--border-default);
  max-width: 200px;
}

/* === TAG / CHIP === */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: rgba(195, 237, 4, 0.10);
  color: var(--color-lime);
  border: 1px solid rgba(195, 237, 4, 0.25);
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
.tag.solid {
  background: var(--color-lime);
  color: var(--color-deep-blue);
  border-color: var(--color-lime);
}
.tag.muted {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

/* === FOOTER === */
.footer {
  background: var(--color-deep-blue);
  border-top: 1px solid var(--border-default);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .footer { padding: 48px 0 24px; }
  .footer-brand .logo-block .footer-lockup { height: 64px; }
}
.footer-brand .logo-block {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.footer-brand .logo-block img { height: 32px; }
.footer-brand .logo-block .footer-lockup { height: 96px; width: auto; max-width: 100%; }
.footer-brand .logo-block .word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: 0.12em;
}
.footer-brand p {
  max-width: 32ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin: 0 0 24px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--color-lime); }
.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === GRID OVERLAY (subtle) === */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(236, 236, 236, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 236, 236, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-deep-blue); }
::-webkit-scrollbar-thumb { background: var(--border-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--color-lime); }
