/* ============ LAYOUT: BACKGROUND, NAV, FOOTER ============ */

/* ---------- AMBIENT BACKGROUND ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(255, 107, 44, 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(255, 107, 44, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #0b0b0f 50%, #08080a 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 19, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}

.nav.hide {
  transform: translate(-50%, -140%);
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav .brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.nav ul {
  display: flex;
  gap: 2px;
}

.nav a.link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.25s;
}

.nav a.link:hover,
.nav a.link.active {
  color: var(--text);
}

.nav a.link.active {
  background: rgba(255, 255, 255, 0.06);
}

.nav .cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 18px;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav ul,
  .nav .cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.open {
    border-radius: 22px;
  }

  .nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    padding: 10px;
  }

  .nav.open ul a.link {
    padding: 12px 16px;
  }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.foot .brand {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot .brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: var(--glow);
}

.foot ul {
  display: flex;
  gap: 18px;
}

.foot a:hover {
  color: var(--accent-2);
}