:root {
  --bg: #080808;
  --surface: #111111;
  --border: rgba(255,255,255,0.07);
  --text: #e8e4de;
  --muted: rgba(232,228,222,0.4);
  --accent: #B4FF32; /* Lime Green */
  --sky: #7FD4FF; /* Sky Blue */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 999;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 3rem;
  transition: background 0.4s, border-bottom 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.logo-slashes { display: flex; font-size: 1.4rem; letter-spacing: -4px; margin-right: 4px; }
.logo-slashes span:first-child { color: white; }
.logo-slashes span:last-child { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul li a {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--text); }
nav ul li a.active { color: var(--accent); }

.nav-btn {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1.3rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.85; }

/* MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-menu ul a {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu ul a:hover { color: var(--accent); }
.mobile-menu .mobile-cta {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2.8rem;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.close-menu:hover { background: rgba(255,255,255,0.05); }

/* FOOTER */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: auto;
  width: 100%;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
footer p {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  nav { padding: 1.4rem 2rem; }
}

@media (max-width: 800px) {
  nav ul { display: none; }
  .nav-btn { display: none; }
  .hamburger { display: flex; }
  footer { padding: 3rem 1.2rem; flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.8rem; align-items: center; }
}

@media (max-width: 640px) {
  nav { padding: 1.2rem 1.2rem; }
}
