:root {
  --shell-accent: #2563eb;
  --shell-accent-dark: #1e40af;
  --shell-accent-light: #60a5fa;
  --shell-rgb: 37,99,235;
  --page-bg: #04040f;
  --page-ink: #ffffff;
  --page-muted: rgba(255,255,255,.58);
  --page-line-height: 1.65;
  --shell-orb-size: 420px;
  --shell-orb-top: auto;
  --shell-orb-right: -120px;
  --shell-orb-bottom: 40px;
  --shell-orb-left: auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--page-ink);
  line-height: var(--page-line-height);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--shell-rgb), .08), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(var(--shell-rgb), .08), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(var(--shell-rgb), .06), transparent 35%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: var(--shell-orb-size);
  height: var(--shell-orb-size);
  top: var(--shell-orb-top);
  right: var(--shell-orb-right);
  bottom: var(--shell-orb-bottom);
  left: var(--shell-orb-left);
  background: radial-gradient(circle, rgba(var(--shell-rgb), .18), transparent 70%);
  filter: blur(7px);
  pointer-events: none;
  z-index: 0;
  animation: shell-float-orb 8.5s ease-in-out infinite;
}

#site {
  position: relative;
  z-index: 2;
}

#page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8,8,32,.96), rgba(4,4,15,.99));
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity .35s ease;
}

#page-transition.on {
  opacity: 1;
  pointer-events: auto;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--shell-accent-light), var(--shell-accent));
  z-index: 1200;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 500;
  backdrop-filter: blur(14px);
  background: rgba(4,4,15,0.75);
  border-bottom: 1px solid rgba(var(--shell-rgb), 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-logo-svg {
  width: 34px;
  height: 34px;
}

.nav-logo-name {
  font-size: 20px;
  font-weight: 800;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav-links a {
  position: relative;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s, transform .3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shell-accent-light), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s;
}

.nav-links a:hover {
  color: var(--shell-accent-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: #fff;
  transform: translateY(-1px);
}

.nav-btn {
  padding: 10px 26px;
  background: var(--shell-accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .3s;
}

.nav-btn:hover {
  background: var(--shell-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--shell-rgb), .5);
}

footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 30px 0 40px;
  color: rgba(255,255,255,.38);
  font-size: 14px;
}

.footer-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
  font-size: 14px;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--shell-accent-light);
}

.crumb a {
  color: var(--shell-accent-light);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shell-float-orb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 980px) {
  nav {
    padding: 14px 22px;
  }

  .nav-links {
    display: none;
  }
}
