.nf {
  --bg: #0c0f0e;
  --ink: #e8efe9;
  --muted: #8a9a90;
  --accent: #3dd68c;
  --accent-dim: rgba(61, 214, 140, 0.16);
  --line: rgba(232, 239, 233, 0.1);
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #101614 0%, var(--bg) 55%, #0a0c0b 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}

.nf-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.nf-glow-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -12%;
  left: -8%;
  background: var(--accent-dim);
  animation: nf-drift 12s ease-in-out infinite;
}
.nf-glow-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  right: -6%;
  bottom: 8%;
  background: rgba(70, 120, 100, 0.18);
  animation: nf-drift 14s ease-in-out infinite reverse;
}

.nf-rail {
  position: absolute;
  inset: 18% -10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), var(--accent), var(--line), transparent);
  transform: rotate(-4deg);
  z-index: 0;
  opacity: 0.7;
}
.nf-rail-home {
  inset: 28% -10% auto;
  transform: rotate(-3deg);
}
.nf-rail::after {
  content: "";
  position: absolute;
  left: 58%;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: nf-slide 7s linear infinite;
}

.nf-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.nf-brand {
  margin: 0 0 1.75rem;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.nf-brand span {
  color: var(--muted);
  font-weight: 600;
}

.nf-code {
  margin: 0;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #ffffff 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf-title {
  margin: 1rem 0 0.85rem;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.nf-title-home {
  margin-top: 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf-sub {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.nf-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(61, 214, 140, 0.35);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  background: rgba(61, 214, 140, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nf-link:hover {
  background: rgba(61, 214, 140, 0.16);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nf-link::after {
  content: "→";
  color: var(--accent);
}

@keyframes nf-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3%, 4%); }
}

@keyframes nf-slide {
  0% { left: 12%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 82%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-glow, .nf-rail::after { animation: none; }
}

@media (max-width: 640px) {
  .nf-main { padding: 2.5rem 1.2rem 3rem; }
  .nf-rail { inset: 22% -20% auto; }
  .nf-rail-home { inset: 30% -20% auto; }
}
