/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 510;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}
.nav-logo-text .b { color: var(--red); }

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--gray);
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-snap);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--white); }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: none;
}
@media (min-width: 901px) {
  .nav-cta { display: inline-flex; }
}

.nav-burger {
  display: none;
  width: 28px; height: 20px;
  position: relative;
  z-index: 510;
}
.nav-burger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease-snap), opacity 0.3s ease;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 9px; }
.nav-burger span:nth-child(3) { top: 18px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 505;
    background: var(--void);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 22px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.6s var(--ease-snap);
  }
  .nav-links.is-open { clip-path: circle(150% at 100% 0%); }
  .nav-burger { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: relative;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 90px 0 30px;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(232,0,13,0.12), transparent 70%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}
.footer-col a:hover { opacity: 1; color: var(--red); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-dim);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gray-dim); }
.footer-bottom a:hover { color: var(--red); }

.footer-social { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
